From 1e196d83fde19c68407d089da647ff878e7bfa92 Mon Sep 17 00:00:00 2001 From: liuzicheng1987 Date: Sat, 4 Nov 2023 12:53:01 +0100 Subject: [PATCH] Update patterns.md --- docs/patterns.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/patterns.md b/docs/patterns.md index 2a6e39f2..3f7a5256 100644 --- a/docs/patterns.md +++ b/docs/patterns.md @@ -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`