2010-11-27, 11:30 PM
(\w+\s)\1
finds duplicate words in succession, but you have to call the regex in a loop until it doesn't find any more duplicates.
Haven't tested it but you could try the following with a loop:
(\w+\s).*\1
finds duplicate words in succession, but you have to call the regex in a loop until it doesn't find any more duplicates.
Haven't tested it but you could try the following with a loop:
(\w+\s).*\1

