Regex Golf
v1.0.0Write the shortest regex to match all targets while rejecting anti-targets. Par-based golf scoring across 5 courses and 90 holes.
A regex puzzle game — write the shortest regular expression that matches all green targets while rejecting all red anti-targets. Shorter patterns score better (golf scoring).
How to use- →Choose a course, then write a regex in the input field. The targets and anti-targets update live as you type — green means matched, red means not matched (or wrongly matched).
- →Each flag (i, m, s) costs +1 stroke. Avoid flags if the pattern works without them.
- →Stuck? Click Hint to reveal the next character of a valid solution — it costs +2 strokes but keeps you moving.
Scoreboard
Scoreboard unavailable in static mode.