match(re, str)
match(patterns, str)
For an introduction to regular expressions, see regular expressions.
|
|
|
|
|
|
The POSIX => true option can be used to specify the POSIX Extended flavor for the regular expression used to match. Note that only the Perl flavor allows the use of lookahead and lookbehinds.
|
|
|
|
|
|
|
When the first input is a list, by default the output is true if str is a match for at least one of the given regular expressions.
|
|
Optionally, Strategy => all indicates that the string should match every pattern in the list to be a match.
|
|
The Strategy option is not used when the first input is not a list.
The object match is a method function with options.