Skip to content
breakpoınt

Regex Golf

Write the shortest regex that matches one list but not the other

Regex Golf gives you two lists of words. Your task is to write one regular expression that matches every word in the first list and none of the words in the second. As in real golf, shorter is better: a shorter regex gives you a higher score.

Play on alf.nu

Free · Browser · Advanced

About Regex Golf

The levels push you to find clever patterns, use character classes and groups, and think hard about edge cases. It suits experienced regex users more than beginners.

The game runs in the browser and uses JavaScript regex syntax.

On Breakpoint since 23 Oct 2026.

Is this your game? Update the listing

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help