select(re, replacement, str)
select(re, str)
For an introduction to regular expressions, see regular expressions.
|
|
The replacement string may contain formatting syntax such as backreferences $1 or \\1, which will be replaced by the string matching the corresponding parenthesized subexpression of re.
|
Special operators such as the lowercase operator \\L may also be used to manipulate the replacement substring.
|
Lookaheads and lookbehinds can be used to precisely control the regular expression matches.
|
|
|
|
|
|
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 lookaheads and lookbehinds.