The whitespace between the words prevents the match.
my $test = "asd asd"; if ($test =~ /(.+\b)\s\1/) { print "Found $1 repeated\n"; }
In reply to Re: about word boundary in RE
by hdb
in thread about word boundary in RE
by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |