Skip to content

Commit

Permalink
Update docs/regex/tutorial.md
Browse files Browse the repository at this point in the history
Co-authored-by: yubiuser <[email protected]>
Signed-off-by: Dominik <[email protected]>
  • Loading branch information
DL6ER and yubiuser authored Mar 10, 2025
1 parent c4438da commit b9eff53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/regex/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Character class | Equivalent | Pi-hole specific | Interpretation

*) 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 ia allowed to mix character classes with classical character groups. For example, `[a-z0-9]` is identical to `[a-z[:digit:]]`.
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:]]`.

# Advanced examples

Expand Down

0 comments on commit b9eff53

Please sign in to comment.