Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Is there any way to put regex modifiers into a variable?

by AnomalousMonk (Chancellor)
on Mar 11, 2018 at 19:55 UTC ( #1210681=note: print w/replies, xml ) Need Help??


in reply to Is there any way to put regex modifiers into a variable?

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:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210681]
help
Chatterbox?
[hippo]: Yay for encryption! :-/
[marto]: a grain of sand or dust in the keyboard, replace the motherboard. No we can't transfer your data for you

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2018-07-23 10:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (462 votes). Check out past polls.

    Notices?