Pattern
/\b(\w+)\s+\1\b/
Sample text
This is is a test the the problem no duplicates hereTest this pattern in the editor
Catch accidental repeated words like the the.
/\b(\w+)\s+\1\b/
This is is a test the the problem no duplicates hereTest this pattern in the editor
Capture local and domain parts from common email shapes.
Match HH:MM or HH:MM:SS clock times.
kebab-case slugs for routes and CMS paths.
5-digit ZIP or ZIP+4.
Six-digit Russian postal index.
Dollar amounts with optional thousands and cents.