Update patterns.md

This commit is contained in:
liuzicheng1987
2023-11-04 12:53:01 +01:00
committed by GitHub
parent 0cc18b1d39
commit 1e196d83fd
+9
View File
@@ -16,3 +16,12 @@ therein will fit the pattern. This is a very strong safeguard against SQL inject
Note that use also have to give a reasonable name to the pattern. That is, because reflect-cpp emphasizes readable error messages and regex patterns can be somewhat hard to decipher at times.
To retrieve the underlying string, you can use the `.value()` method.
reflect-cpp currently contains the following predefined regex patterns:
- `rfl::Base64Encoded`
- `rfl::Email`
- `rfl::UUIDv1`
- `rfl::UUIDv2`
- `rfl::UUIDv3`
- `rfl::UUIDv4`