Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex - Is this possible?
#4
(\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
Reply


Messages In This Thread
Regex - Is this possible? - by Fiel - 2010-11-27, 11:15 PM
Regex - Is this possible? - by Dusk - 2010-11-27, 11:24 PM
Regex - Is this possible? - by Fiel - 2010-11-27, 11:24 PM
Regex - Is this possible? - by Dusk - 2010-11-27, 11:30 PM
Regex - Is this possible? - by Russt - 2010-11-27, 11:34 PM
Regex - Is this possible? - by Fiel - 2010-11-27, 11:34 PM
Regex - Is this possible? - by Russt - 2010-11-27, 11:39 PM
Regex - Is this possible? - by Fiel - 2010-11-27, 11:42 PM
Regex - Is this possible? - by Dusk - 2010-11-28, 12:46 AM
Regex - Is this possible? - by Russt - 2010-11-28, 01:09 AM
Regex - Is this possible? - by Nikkey - 2010-11-28, 05:39 PM
Regex - Is this possible? - by Fiel - 2010-11-28, 06:14 PM
Regex - Is this possible? - by Spaz - 2010-11-29, 02:58 PM
Regex - Is this possible? - by Fiel - 2010-11-29, 03:07 PM
Regex - Is this possible? - by GummyBear - 2010-12-07, 12:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)