Otherwise you get a nasty message:$string =~ s/\Q$token\E/$date/;
Or you could use quotemeta() on the string beforehand?
In reply to Re: regexp w/ special chars
by shenme
in thread regexp w/ special chars
by LanceDeeply
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |