Skip to content

Commit faee8d6

Browse files
authored
Fix rogue brackets in regex tutorial (#1231)
Signed-off-by: Dave <[email protected]>
1 parent 44c4ca0 commit faee8d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/regex/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pi-hole regular expressions tutorial
22

3-
We provide a short but thorough introduction to our regular expressions implementation. This may come in handy if you are designing rules to deny or allow domains (see also our cheat sheet below!). In our implementation, all characters match themselves except for the following special characters: `.[{}()\*+?|^$`. If you want to match those, you need to escape them like `\.` for a literal period, but no rule without exception (see character groups below for further details).
3+
We provide a short but thorough introduction to our regular expressions implementation. This may come in handy if you are designing rules to deny or allow domains (see also our cheat sheet below!). In our implementation, all characters match themselves except for the following special characters: `.[]{}()\*+?|^$`. If you want to match those, you need to escape them like `\.` for a literal period, but no rule without exception (see character groups below for further details).
44

55
## Anchors (`^` and `$`)
66

@@ -104,7 +104,7 @@ Character class | Equivalent | Pi-hole specific | Interpretation
104104
`[[:space:]]` | `[ \f\n\r\t\v]` | Yes | white-space characters
105105
`[[:xdigit:]]` | `[0-9a-fA-F]` | Yes | hexadecimal digits
106106

107-
*) FTL matches case-insensitive by default as case does not matter in domain names
107+
\* FTL matches case-insensitive by default as case does not matter in domain names
108108

109109
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:]]`.
110110

0 commit comments

Comments
 (0)