Have a look at the quotemetaPerl function. It will escape all characters that are "special" for regular expressions.
Hope this helps, -gjb-
In reply to Re: Performing substitutions on lines with special characters
by gjb
in thread Performing substitutions on lines with special characters
by wouldbewarrior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |