Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Maybe Escape in Dynamic RegExps

by Zaxo (Archbishop)
on Apr 30, 2004 at 08:27 UTC ( [id://349360]=note: print w/replies, xml ) Need Help??


in reply to Maybe Escape in Dynamic RegExps

This does what you want. my $re = qr/(?<!\Q$c\E)\Q$d\E/; The \Q . . \E pair is like quotemeta. I've changed the names to protect sort. Extra ( . . ) delimiter pair is cut.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (8)
As of 2024-04-25 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found