Skip to main content

Regex Roulette · #29 · 2026-05-03

Match CSV rows with exactly 3 comma-separated fields

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

  • a,b,c — not yet evaluated
  • 1,2,3 — not yet evaluated
  • hello,world,! — not yet evaluated

Must not match

  • a,b — not yet evaluated
  • a,b,c,d — not yet evaluated
  • nocommas — not yet evaluated
  • ,a,b — 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