As Ant says, you can use \Q. Also, look at quotemeta, which can be more readable sometimes (higher \w to punctuation ratio).
hdp.
In reply to Re: Substitutions are happening in the wrong place
by hdp
in thread Substitutions are happening in the wrong place
by Guildenstern
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |