RegEx Crossword
101–110 of 160 posts
Re: RegEx Crossword
#102Awesome puzzle! Can be completed without guesses. Any ideas how it was invented?
Look at the original MIT Mystery Hunt page (and solution). It was part of a puzzle hunt. (I was one of the people who successfully solved it on my team during that very event back in 2013...) See this comment for the link to the original, including the author's name and the puzzle in context with its official solution: https://news.ycombinator.com/item?id=26439598 (I wish that other comment would get upvoted to the t…
Re: RegEx Crossword
#103Is there something wrong? Why isn't the clue `(O|RHH|MM)*` satisfied by blankness?
Re: RegEx Crossword
#104Earlier quoted context omitted.
I just completed it, and can say with certainty that it is solvable by only taking into consideration two constraints at any given time, with the exception of 3 at just one point early on (and they were the easier constraints in the puzzle). That being said, the nature of regex means you kind of need to jump around as far as which constraints you combine.
Is the complexity basically NP-hard, equivalent to a SAT solver or even harder?
Re: RegEx Crossword
#105It took me 1 hour 30 minutes. Have to say, this is so well designed. Love it.
Re: RegEx Crossword
#106This is an absolute classic! It is not just an exercise in tedium or repetition, it has an internal progression that makes it very satisfying to solve.
Re: RegEx Crossword
#107Is it supposed to have an unique solution or are multiple solutions possible?
Re: RegEx Crossword
#108Earlier quoted context omitted.
That's because it's not empty string in the puzzle, it's 8 spaces. (and on top of that, we're doing a full match.)
8 spaces also matches. I don't know what you mean by a full match. Do you mean that you are using a different RegEx than the one displayed?
Plugging the first space into a DFA described by the regex is an immediate failure - there is no exit from the initial state initiated by the space character. It's a non match.
Regex engines will say they do match because they are by default checking for for substrings that match the language (such as the initial empty string of each line of grep), not for strings that match the language.
*edit: added last paragraph.
Re: RegEx Crossword
#109Re: RegEx Crossword
#110Small feature request for this implementation: Highlight/bold the three impacted regex when selecting a given hexagon, trying to trace it manually by eye is a bit of a pain. (I guess I could PR on github when I get some time later today)
https://github.com/Jimbly/regex-crossword/pull/10