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 reply to Re: Is there any way to put regex modifiers into a variable?
by AnomalousMonk
in thread Is there any way to put regex modifiers into a variable?
by hilitai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |