Change regex parsing to avoid runaway matches

This commit is contained in:
Pieter Vander Vennet 2022-10-11 01:01:24 +02:00
parent bdcedae003
commit d562e7fd7c
10 changed files with 255 additions and 223 deletions

View file

@ -89,7 +89,8 @@ Regex equals
------------
A tag can also be tested against a regex with `key~regex`. Note that this regex __must match__ the entire value. If the
value is allowed to appear anywhere as substring, use `key~.*regex.*`
value is allowed to appear anywhere as substring, use `key~.*regex.*`.
The regex is put within braces as to prevent runaway values.
Regexes will match the newline character with `.` too - the `s`-flag is enabled by default. To enable case invariant
matching, use `key~i~regex`