Regex to find dupes
top of page

Regex to find dupes

You can use this Regular Expression search to find the first instance where two words repeat one after the other in any text:


(\b\w+\b)(?=.*\b\1\b)




bottom of page