Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Maybe Escape in Dynamic RegExps

by gellyfish (Monsignor)
on Apr 30, 2004 at 08:19 UTC ( #349357=note: print w/ replies, xml ) Need Help??


in reply to Maybe Escape in Dynamic RegExps

The simplest way would be to use the \Q and \E in the expression:

$re= qr(/($<!\Q$a\E)\Q$b/);
and it will do the right thing.

/J\


Comment on Re: Maybe Escape in Dynamic RegExps
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-08-22 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (164 votes), past polls