Regex Crossword

Overview

Learn regular expressions through gamified grid-based puzzles. Fill in the crossword grid with characters that satisfy regex patterns given for each row and column. Start with simple patterns and progress through increasingly complex puzzles that teach character classes, quantifiers, anchors, and grouping. Get hints when stuck and see solutions to learn from mistakes.

Open in new tab

Tips

  • Each cell must satisfy both the row regex (horizontal) and column regex (vertical)
  • Start with cells that have the most constraints - they’re often easier to deduce
  • Common patterns: \d matches digits, \w matches word characters, [A-Z] matches uppercase letters
  • Use hints sparingly to maximize learning - try to reason through patterns first
  • When a cell turns green, it satisfies all constraints - when red, it violates at least one pattern