If you're using regular expressions, you should not run into any trouble with "special characters" as & , which I'm guessing is the character you're concerned about, is not a regex metacharacter. See perlretut and specifically the section on metacharacters and how to match them in a pattern.