Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Performing substitutions on lines with special characters

by gjb (Vicar)
on Apr 07, 2004 at 20:23 UTC ( #343419=note: print w/ replies, xml ) Need Help??


in reply to Performing substitutions on lines with special characters

Have a look at the quotemetaPerl function. It will escape all characters that are "special" for regular expressions.

Hope this helps, -gjb-


Comment on Re: Performing substitutions on lines with special characters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-07-26 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (176 votes), past polls