Re:Learn regular expressions in about 55 minutes
by markild on Monday March 10, 2014 @05:33AM
(#7372004)
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.
Re:Learn regular expressions in about 55 minutes
by leeoniya on Monday March 10, 2014 @08:23PM
(#7376649)
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 `.*`
Re:Learn regular expressions in about 55 minutes
by TophWells on Monday March 10, 2014 @09:16AM
(#7372692)
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.
Re:Learn regular expressions in about 55 minutes
by oneeyedpigeon on Monday March 10, 2014 @10:15AM
(#7372977)
And OOO.
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.