Works for me?
C:\test>perl $a="xxx^1.0"; $b="xxx^1.0 yyyy zzz"; if($b=~/\Q$a\E/) { print "worked\n"; } else { print "nope\n"; } ^Z worked C:\test>
Examine what is said, not who speaks.
In reply to Re: Escaping metacharacters
by BrowserUk
in thread Escaping metacharacters
by nosduh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |