From 49b07fca3a5b51ba203c27efd57640379bc8cfdf Mon Sep 17 00:00:00 2001 From: garry-ut99 <72945564+garry-ut99@users.noreply.github.com> Date: Sun, 3 Nov 2024 19:02:00 +0000 Subject: [PATCH] Minor rewording (previous commit) --- Static-filter-syntax.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Static-filter-syntax.md b/Static-filter-syntax.md index 446353e..1bbc545 100644 --- a/Static-filter-syntax.md +++ b/Static-filter-syntax.md @@ -615,9 +615,9 @@ Exclusions `~` and `|` operators are not supported, e.g. `ipaddress=~192.168.1.1 (...) ipaddress=/^((?!95\.216\.7\.22|9\.9\.9\.9).)*$/ ``` -but the above solution is not perfect: -- the first above filter doesn't match/include `95.216.7.22y` where `y` is any digit, for example `95.216.7.228` -- the second above filter even worse: doesn't match/include: `x95.216.7.22y` where `x` and/or `y` is any digit, for example `195.216.7.22` or `95.216.7.221` or `195.216.7.221`. +but the above regex solution is not perfect: +- the first above regex excludes too much: `95.216.7.22y` which is unwanted (where `y` is any digit, for example `95.216.7.228`) +- the second above regex even worse, exclude too much: `x95.216.7.22y` (where `x` and/or `y` is any digit, for example `195.216.7.22` or `95.216.7.221` or `195.216.7.221`) But still some users might find them useful.