How a Regex Crossword Puzzle Works
Updated
A regex crossword is a grid puzzle where you fill cells with letters, and each row and column must match a regular expression given as its clue. You solve it by finding a single set of letters that satisfies every row and column constraint at the same time. It suits anyone who knows basic regex syntax or wants to learn it through short, hands-on puzzles.
The basic mechanics
The puzzle borrows the shape of a crossword but replaces word clues with patterns:
- The grid is a rectangle of empty cells. Each cell holds exactly one letter.
- Row clues sit beside each row; column clues sit above each column.
- A row is correct when the string formed by its letters matches that row's regex in full.
- A column is correct when the string formed by its letters matches that column's regex in full.
- The puzzle is solved only when every row and every column matches simultaneously.
The key difference from a normal crossword: clues don't describe meanings, they describe patterns. A clue like H.* means "the row starts with H, followed by any characters." A clue like [A-Z]+ means "one or more uppercase letters."
A small worked example
Suppose you have a 2×2 grid with these clues:
| Column 1 | Column 2 | |
|---|---|---|
| Row 1 | A. |
.B |
| Row 2 | .. |
.. |
- Row 1 must start with
Aand end withB, so it readsAB. - Column 1 must start with
A, so cell (1,1) isA— consistent. - Column 2 must end with
B, so cell (2,2) isB.
The grid becomes:
A B
? B
Row 2's clue .. accepts any two characters, so the remaining cell can be anything the column clues allow. This is how you reason: each clue narrows the possible letters, and you cross-check rows against columns until only one consistent filling remains.
How solving actually feels
In practice you rarely solve a whole row at once. You work cell by cell:
- Read a clue and list what it permits. For example,
[AB]{3}means exactly three characters, each either A or B. - Fill in what is forced. If a clue starts with a literal letter, that cell is fixed.
- Check the crossing clue. A letter that fits the row may violate the column, which tells you to revise.
- Iterate. Each pass constrains more cells until the grid is complete.
The difficulty comes from the interaction: a choice that satisfies one clue can break another, so you learn to hold multiple constraints in mind at once.
What you learn from it
Because every clue is a real regular expression, the puzzle doubles as regex practice. Common constructs you meet include:
- Literals and dots — fixed characters and wildcards.
- Character classes —
[A-Z],[^aeiou]. - Quantifiers —
*,+,?,{n}. - Anchoring — the whole row or column string must match, not just part of it.
Regex Crossword describes itself as a crossword puzzle game using regular expressions, with achievements for completing puzzle challenges and easy tutorials for people new to regular expressions. That makes it a reasonable starting point if you want to drill pattern-reading without setting up a programming environment.
When this format is a good fit
Choose a regex crossword if you want short, self-checking practice where the grid gives you immediate feedback. It is less suitable if you need to learn regex for a specific real-world task, such as validating email addresses or parsing logs — those require working with actual text and a regex engine, which a puzzle grid does not provide. For that, pair the puzzle habit with real patterns in a tool or language you already use.