Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-09-22 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (192 votes), past polls