in reply to matching the line which has special characters in it

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.
  • Comment on Re: matching the line which has special characters in it

Replies are listed 'Best First'.
Re^2: matching the line which has special characters in it
by graff (Chancellor) on Nov 06, 2006 at 04:55 UTC
    He would also need to worry about the parens, which, if not escape or disabled, would become a capture, rather than matching literal parens.