my $test = "asd asd"; if ($test =~ /(.+\b)\1/) { print "Found $1 repeated\n"; } [download]
why no output? Aren't the two "asd"s both matched ones?
In reply to about word boundary in RE by anaconda_wly