From f1da038fce1ff13e2574f3f4263daa65cb886591 Mon Sep 17 00:00:00 2001 From: Mark Drobnak Date: Mon, 10 Sep 2018 13:36:44 -0400 Subject: [PATCH] Fix incorrect regex example See https://discourse.pi-hole.net/t/12745 Signed-off-by: Mark Drobnak --- docs/ftldns/regex/tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ftldns/regex/tutorial.md b/docs/ftldns/regex/tutorial.md index c4ade87..dec7b28 100644 --- a/docs/ftldns/regex/tutorial.md +++ b/docs/ftldns/regex/tutorial.md @@ -39,9 +39,9 @@ To illustrate the usefulness of multipliers (and bounds), we provide a few examp Example | Interpretation --- | --- -`^r-*\.movie` | matches a domain like `r------movie.com` where the number of dashes can be arbitrary (also none) -`^r-?\.movie` | matches only the domains `rmovie.com` and `r-movie.com` but not those with more than one dash -`^r-+\.movie` | matches only the domains with at least one dash, i.e., not `rmovie.com` +`^r-*movie` | matches a domain like `r------movie.com` where the number of dashes can be arbitrary (also none) +`^r-?movie` | matches only the domains `rmovie.com` and `r-movie.com` but not those with more than one dash +`^r-+movie` | matches only the domains with at least one dash, i.e., not `rmovie.com` `^a?b+` | matches domains like `abbbb.com` (zero or one `a` at the beginning followed by one or more `b`) ### Character groups (`[]`)