Hacker News new | ask | show | jobs
by leeoniya 4480 days ago
i'm not sure if this puzzle is meant to be a joke, but it pretty much looks like it.

things like (O|RM|HHM)* which means match anything. who the hell would every write (.)(.)(.) when even capturing those is pointless in a crossword.

meh, i say.

2 comments

I'm not entirely sure what you are saying, but I actually find this puzzle quite interesting.

(O|RM|HHM)* doesn't match "anything", but rather "nothing" or something quite specific. [0]

There are multiple rows in the puzzle where things _can_ match anything, but they are pretty fast limited by the opposing row/column.

[0]: http://www.regexper.com/#%28O|RM|HHM%29*

yeah sorry, wrote that in a hurry. i meant, if it can match nothing and still be valid, what's the point? you may as well write `.*`
Well, remember that it also has to fit in the row/column. If there's three spaces available, the string has to have three characters. So (O|RM|HHM)* can only really match ORM, RMO, and HHM.
And OOO.
Forgot about that one.