Skip to main content

Regex Roulette · #13 · 2026-04-17

Match dates in YYYY-MM-DD format

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

  • 2024-01-15 — not yet evaluated
  • 1999-12-31 — not yet evaluated
  • 2000-06-01 — not yet evaluated

Must not match

  • 24-01-15 — not yet evaluated
  • 2024/01/15 — not yet evaluated
  • 2024-1-5 — not yet evaluated
  • 2024-13-01 — 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