Flags apply to the whole expression generated and can be included at any point. It mostly makes sense to either add them on the beginning or the end of the query to not confuse the reader.
By default, regular expressions are case sensitive. That means, if you supply something like
literally it's important that the case matches.
"foo" won't match
FOO. Using the
case insensitive flag however, will
tell the engine to ignore case mismatches.
letter from a to b twice, case insensitive
SRL Query is matching!
SRL Query is not matching.
The SRL Query contains an error:
Whoops... you may have found a bug.
Generated Regular Expression:
If you want to match more than one line, supply the
multi line flag. This will make the
must end and
begin with anchors
Matching in regular expression is greedy by default, meaning it will try to match the last occurrence. You
force this on a single quantifier by using the
first match statement. If you want this to apply
to the whole expression, use
In the example below, you can see that each letter is a new match. If you try removing the
lazy flag, it will match until the end of the word.
capture(letter once or more) all lazy