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.
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.
