in reply to Reading special characters from file?

Another option may be to use the quotemeta with regular expressions.

Take a look at the following:

How do I escape meta-characters in a user-defined string?

Mick
  • Comment on Re: Reading special characters from file?