Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Escaping parentheses in regexps

by scain (Curate)
on Jan 22, 2003 at 15:12 UTC ( #229036=note: print w/ replies, xml ) Need Help??


in reply to Re: Escaping parentheses in regexps
in thread Escaping parentheses in regexps

And, if you are putting other stuff in your regex that you don't want escaped, end the quotemeta with a \E, ie,

if ($concat !~ /other stuff\Q$string\E more other stuff/) { $concat .= " and $string"; }

Scott
Project coordinator of the Generic Model Organism Database Project


Comment on Re: Re: Escaping parentheses in regexps
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-07-29 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (227 votes), past polls