Skip to main content

Regex Roulette · #27 · 2026-05-01

Match strings with a repeated word

Difficulty 3/3

How to play

Write a regex that matches all green strings and rejects all red strings. Live feedback shows which strings pass. Shorter patterns score better.

Must match

  • the the — not yet evaluated
  • is is bad — not yet evaluated
  • go go go — not yet evaluated

Must not match

  • the cat — not yet evaluated
  • no repeats — not yet evaluated
  • these those — not yet evaluated

Loading your progress...

Pattern body only — slashes and flags (e.g. /g, /i) aren't part of the input.

0/200 chars

Type a regex that matches all green strings and rejects all red strings · Back to hub