Why don't you write down what $string and $_ contain, so we don't have to guess? See I know what I mean. Why don't you?
$s = "hüh-hott"; $t = "hüh"; print "matches: '$&'\n" if $s =~ /$t/; print "matches too: '$&'\n" if $s =~ /\b$t\b/; __END__ matches: 'hüh' matches too: 'hüh'
In reply to Re: \b in Unicode regex
by shmem
in thread \b in Unicode regex
by Arik123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |