in reply to \b in Unicode regex
Do you mean
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 Section
Seekers of Perl Wisdom