Skip to content
~/regex-reversi
$

Regex Reversi

Each lesson gives you two lists: strings to match (green) and strings to avoid (red). Type a regex and the board lights up live. 15 lessons take you from literals to lookaheads.

0 / 15 solved
lesson 1 / 15Β· first steps

Just type the letters

teaches literal characters

Regex matches anywhere in a string by default. Type the literal text you want to find β€” the simplest possible pattern.

// your regex
length 0Β·par 3
//
should match0 / 4 ok
βœ—dog
βœ—doggo
βœ—lapdog
βœ—dogcatcher
should NOT match3 / 3 ok
βœ“cat
βœ“rat
βœ“bat
// quick reference
abcMatch the literal characters anywhere in the string
// lessons

Lessons unlock as you complete them. Click any unlocked lesson to revisit.