Write the shortest regular expression to match — and avoid — the right words!
Select Hole
Hole 1 of 100%
Hole 1
Star Wars vs Star Trek
⭐
Par: ?
Shots: 0 | Best: —
✅MATCH THESE
❌AVOID THESE
Your regex:
0 charsBest: —
//
Type a regex above and hit Test to take your shot!
⛳ Welcome to RegEx Golf
Original game:RegEx Golf at alf.nu by Erling Ellingsen.
Regex golf first appeared on regex.alf.nu around 2013 but was not actually named until xkcd #1313 written by Randall Munroe (Jan 6, 2014).
This version has been made as an accessible introduction to Regular Expressions - if you enjoy it, you should try the original. It's more challenging than this version and you'll need to learn a few extra techniques to succeed.
If you are new to Regular Expressions, you might want to watch this Fireship Youtube Video: