--- [EMAIL PROTECTED] wrote:
> I believe if you add the (g)lobal modifier and optionally(i), Paul's
> line of code may work:
> 
>  $line =~ /(\b\w+\b).*\1/ogi;

I didn't actually test it -- but wouldn't it still miss interlaced
words? like:

 it might, it might....

Would it see that "might" was repeated as well?
I think the first one would get thrown away by the .* in the pattern....

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to