144 words — 1 minutes read

72 - a regex puzzle

Via Ned Batchelder comes this wonderful Regular Expression Puzzle

regular_crossword (Click for PDF version)

Each cell is constrained by three regular expressions, and according to the author of the puzzle, there is one unique solution to it.

We spent around an hour at the office trying to solve it, but only managed around 20 or so cells. That is until JF, our CEO, came in. While he didn’t live up to his claim that he’d be able to solve it with his eyes closed, he managed to solve the puzzle at breakneck speed, finishing it at the dinner table. Highly impressive - and good fun!

The comments in Neds post point to a Haskell solver and a Python checker. I haven’t seen other solvers, but I’d like to try my hands on a Ruby version… Well, one of these days, I guess (which means: never)

Jens-Christian Fischer

Maker. Musician