Skip to content

Add proper footnotes to tutorial.md #1235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/regex/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -104,7 +104,9 @@ 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
///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:]]`.

Expand Down