The input string, list or dictionary. If it is a list or a dictionary then the search will be done on all values.
The regex to use for search.
If only_match
is set to True
(default) then the function will only return values that respect the search
rule.
If only_match
is set to False
then the function will return the entire source data if any of the values contained in $data
respect the search
rule.
Regex flags to use. Several flags can be used by concatenating them. Default: ism
.
i
= Case insensitive
s
= Match .
to any character, including newlines.
m
= Multi-line matching, affecting ^
and $
.