|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Performing substitutions on lines with special charactersby gjb (Vicar) |
| on Apr 07, 2004 at 20:23 UTC ( #343419=note: print w/ replies, xml ) | Need Help?? |
|
Have a look at the quotemetaPerl function. It will escape all characters that are "special" for regular expressions. Hope this helps, -gjb-
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||