Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: regex issueby kroach (Pilgrim) |
on Aug 03, 2016 at 20:21 UTC ( [id://1169104]=note: print w/replies, xml ) | Need Help?? |
Small correction, you missed a word-boundary assertion in the look-ahead. The regex should be:
Without the additional \b before \1, three-letter words that are trailing substrings of other words would also match.
In Section
Seekers of Perl Wisdom
|
|