From: John Maddock (john_maddock_at_[hidden])
Date: 2003-04-29 06:53:36


> How about: (\w+)(?:\s+$1)+

Which should of course have been: (\w+)(?:\s+\1)+

or "(\\w+)(?:\\s+\\1)+" if it's embedded in your program as a C string.

John.