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)




Comments


bottom of page