Added size validation

This commit is contained in:
Patrick Urbanke
2023-11-02 22:53:58 +01:00
parent a2a6609466
commit fcaf2e8e23
7 changed files with 83 additions and 146 deletions
+3 -2
View File
@@ -6,10 +6,11 @@
namespace rfl {
// This pattern will match valid Base64 encoded strings with or without padding.
/// This pattern will match valid Base64 encoded strings with or without
/// padding.
using Base64Encoded = Pattern<R"(^[A-Za-z0-9+/]*(={0,2})?$)", "Base64Encoded">;
/// email
/// This pattern will match email addresses.
using Email =
Pattern<R"(^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$)", "Email">;