Regex Roulette · #50 · 2026-05-24
Match 6-digit hex color codes
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
- #ff0000 — not yet evaluated
- #00FF00 — not yet evaluated
- #abc123 — not yet evaluated
- #000000 — not yet evaluated
Must not match
- ff0000 — not yet evaluated
- #fff — not yet evaluated
- #gggggg — not yet evaluated
- #12345 — 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