Welcome to the Monastery | |
PerlMonks |
Re: Is there any way to put regex modifiers into a variable?by AnomalousMonk (Archbishop) |
on Mar 11, 2018 at 19:55 UTC ( [id://1210681]=note: print w/replies, xml ) | Need Help?? |
Further to davies's post: See (?adlupimsx-imsx) and (?^alupimsx) in Extended Patterns. See also Regex: Embedded pattern-match modifiers: Empty (?) modifier. Don't use eval unless you need something like a /g modifier (but don't do that). Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|