On Jul 27, 2010, at 8:42 AM, Alan Munn wrote: > > Anyway, the following regexp really does work: > > \b(\w+)\b\s+\1 > > Try it (and the others if you're so inclined) on the following test > sentence to see: My yarn yarn needs needs to be a a fine fine. (Sorry, forgot the test sentence.) Alan -- Alan Munn amunn at gmx.com