http://www.perlmonks.org?node_id=104667


in reply to Re: most efficient regex to delete duplicate words
in thread most efficient regex to delete duplicate words

You need to be careful with that one, because it will mess with words that are repeated but aren't consecutive. It isn't clear if the poster wanted to trash only repeated consecutive words or all repeated words.

Michael.

Update:Right in front of me, and I still didn't read it right. Sorry runrig

  • Comment on Re: Re: most efficient regex to delete duplicate words