or do you really mean$string =~ /$_/; $string =~ /\b$_\b/;
As soon as your variable contains Metacharacters, they are not the same. See quotemeta, Quoting metacharacters.$string =~ /\Q$_\E/; $string =~ /\b\Q$_\E\b/;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: \b in Unicode regex
by kennethk
in thread \b in Unicode regex
by Arik123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |