From 858d8e7823c1e44671d8fa7dae8d2ce31eb186a7 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Mon, 21 Apr 2025 13:29:08 -0300 Subject: [PATCH 1/2] Add proper footnotes to tutorial.md Signed-off-by: RD WebDesign --- docs/regex/tutorial.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/regex/tutorial.md b/docs/regex/tutorial.md index 107edadda..a86d34bb6 100644 --- a/docs/regex/tutorial.md +++ b/docs/regex/tutorial.md @@ -92,10 +92,10 @@ In addition to character groups, there are also some special character classes a Character class | Equivalent | Pi-hole specific | Interpretation --------------- | ---------------- | ---------------- | --------------- `[[:digit:]]` | `[0-9]` | No | digits -`[[:lower:]]` | `[a-z]` | No | lowercase letters* -`[[:upper:]]` | `[A-Z]` | No | uppercase letters* -`[[:alpha:]]` | `[A-Za-z]` | No | alphabetic characters* -`[[:alnum:]]` | `[A-Za-z0-9]` | No | alphabetic characters* and digits +`[[:lower:]]` | `[a-z]` | No | lowercase letters[^*] +`[[:upper:]]` | `[A-Z]` | No | uppercase letters[^*] +`[[:alpha:]]` | `[A-Za-z]` | No | alphabetic characters[^*] +`[[:alnum:]]` | `[A-Za-z0-9]` | No | alphabetic characters[^*] and digits `[[:blank:]]` | `[ \t]` | Yes | blank characters `[[:cntrl:]]` | N/A | Yes | control characters `[[:graph:]]` | N/A | Yes | all printable characters except space @@ -104,7 +104,7 @@ Character class | Equivalent | Pi-hole specific | Interpretation `[[:space:]]` | `[ \f\n\r\t\v]` | Yes | white-space characters `[[:xdigit:]]` | `[0-9a-fA-F]` | Yes | hexadecimal digits -\* FTL matches case-insensitive by default as case does not matter in domain names +[^*]: FTL matches case-insensitive by default as case does not matter in domain names Note that character classes are abbreviations, they need to be used in character groups, i.e., enclosed in `[]`. As such, the equivalent of `[0-9]` would be `[[:digit:]]`, *not* `[:digit:]`. It is allowed to mix character classes with classical character groups. For example, `[a-z0-9]` is identical to `[a-z[:digit:]]`. From 106633fe42d81dc77a5926c082489d2ba1b4c2de Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Fri, 25 Apr 2025 23:14:14 -0300 Subject: [PATCH 2/2] Changing footnotes placement Signed-off-by: RD WebDesign --- docs/regex/tutorial.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/regex/tutorial.md b/docs/regex/tutorial.md index a86d34bb6..15f390491 100644 --- a/docs/regex/tutorial.md +++ b/docs/regex/tutorial.md @@ -104,6 +104,8 @@ Character class | Equivalent | Pi-hole specific | Interpretation `[[:space:]]` | `[ \f\n\r\t\v]` | Yes | white-space characters `[[:xdigit:]]` | `[0-9a-fA-F]` | Yes | hexadecimal digits +///Footnotes Go Here/// + [^*]: FTL matches case-insensitive by default as case does not matter in domain names Note that character classes are abbreviations, they need to be used in character groups, i.e., enclosed in `[]`. As such, the equivalent of `[0-9]` would be `[[:digit:]]`, *not* `[:digit:]`. It is allowed to mix character classes with classical character groups. For example, `[a-z0-9]` is identical to `[a-z[:digit:]]`.