Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Can a regular expression include an arbitrary string variable?

by Anonymous Monk
on Oct 17, 2019 at 07:36 UTC ( #11107581=note: print w/replies, xml ) Need Help??


in reply to Can a regular expression include an arbitrary string variable?

Hi

Consider yourself re warned

$ perl -le"use re 'eval'; no re 'eval'; my $re=shift; 1=~/$re/;" -- "( +??{die666})" Eval-group not allowed at runtime, use re 'eval' in regex m/(??{die666 +})/ at -e line 1.
  • Comment on Re: Can a regular expression include an arbitrary string variable?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11107581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2019-11-13 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (72 votes). Check out past polls.

    Notices?