Or /(?$modifiers:$pattern)/ where $modifiers can be "i-sm", for example, to turn on "i" and turn off "s" and "m". The first form (without a ":" affects the rest of the regex. The second form only affects the stuff between the parens.
See "perldoc perlre" for more info. See also qr in "perldoc perlop".
- tye (but my friends call me "Tye")In reply to (tye)Re: Store regex modifiers in variables?
by tye
in thread Store regex modifiers in variables?
by derek3000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |