Finds duplicate words in a sentence.
\b(\w+)\s+\1\b
hello hello world
Test and customize this pattern in our interactive editor