Back to Library
Text

Duplicate Words

Finds duplicate words in a sentence.

Pattern
\b(\w+)\s+\1\b

Test Cases

hello hello world Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor