in reply to Re: Store regex modifiers in variables?
in thread Store regex modifiers in variables?
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")
|
|---|