Tutorial
Tools & Languages
Examples
Reference
Checking for Doubled Words
\b
(
\w
+
)
\s
+
\1
\b
Options: case insensitive
Assert position at a word boundary
Match the regular expression below and capture its match into backreference number 1
Match a character that is a "word character" (letters, digits, etc.)
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match a character that is a "whitespace character" (spaces, tabs, line breaks, etc.)
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the same text as most recently matched by backreference number 1
Assert position at a word boundary
Welcome
Tutorial
Tools and Languages
Examples
Reference
About This Site
Download and Print