Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 having an uproarious good time at the Monastery: (3)
As of 2014-10-26 08:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (152 votes), past polls