Skip to main content

Regex Roulette · #43 · 2026-05-17

Match double-quoted strings (no escaped quotes inside)

Difficulty 1/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

  • "hello" — not yet evaluated
  • "a b c" — not yet evaluated
  • "" — not yet evaluated
  • "123" — not yet evaluated

Must not match

  • hello — not yet evaluated
  • "unclosed — not yet evaluated
  • no"quotes"here — not yet evaluated
  • 'single' — 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