Could do with a bit more instruction and feedback to the user. A lot of the times, the blue highlighting seems to indicate I've matched all the necessary parts of the input, which should mean the puzzle is solved, but it's Game Over instead.
My most recent examplew was "It's alive! It's alive!" as input with all the non-space underlined, for which I wrote `/\S/g`. It seemed to match all the required parts, but the timer just counted down and ended with a Game Over. And there's no feedback on what exactly was wrong. (I encountered similarly confusing ones seven or eight times, so this isn't an isolated input for which this happens.)
> A lot of the times, the blue highlighting seems to indicate I've matched all the necessary parts of the input, which should mean the puzzle is solved, but it's Game Over instead.
Fun idea, but pretty unfun to play. Half the questions are just five, six different words you need to `|` together, and not enough time to even type out that many words.
Feels like the author thinks regex is a useful way to match a bunch of unrelated words in a paragraph. Not really the point of regex.
Yeah I'm on mobile and can't see the text above while I type because of the space for the on screen keyboard and can't type fast enough anyways on mobile so just gave up instantly :)
- The starting and ending / could be part of the mask, so the user don't need to type it.
- Some rules are not immediately clear. Eg. "The WORLD IS GOOD", should be /WORLD IS GOOD/ or /(WORLD|IS|GOOD)/ ? Or both?
- Add difficult levels. Maybe more time on easy mode.
- It's a nice learning environment. Let the user try to solve the puzzle when the time ends, just don't let him pass to the next level. Or maybe let him pass, but reset the score.
I had fun with this but I _really_ wanted a learning mode. I was more interested in solving the puzzle of the regex than maxing out my score. Maybe make a version where you can get maximum points for a period of time then the possible points starts to go down. You can still continue after it hits 0, you just won't get any points
This is fun! Except I was almost immediately stymied by a question that asked me to match both "like" and "live". I put in `/li[kv]e/`, which was not accepted, but passes in every regex engine on regex101. I'm a bit confused. Is this a bug in the game or did I miss something in the question?
add a "g" after the last slash to make it a global search. (I didn't make the game, I'm figuring shit out too. All the same, I'm a regex ninja and the time allotted is far too low.
This would be a lot better if it didn't make me start and end every entry with /
Also, the timer is way too short for anything more than a word or two. The third one is a whole bunch of words. That's too much.
Loved this! Super fun, but the timer feels a bit fast sometimes and as far as I can tell the game will randomly give you anywhere from a very easy or quite difficult level at any point, so there doesn't feel to be a natural progression in difficulty as you start a new game and finish each level.
Is this a bug? Matching both instance of "us!" in "One of us! One of us!" didn't work with either /us!/g or /\bus!/g. That said this rocks and I love it tysm.
Note for anyone who might have missed it like I did. Dark Reader makes the underlines not visible. Didn't know what I was doing at all until I disabled it.
It's a traditional Regex syntax in several languages including JS (relevant here), Perl, and going way back to ancient Unix tools such as vi and ed.
The vi/ed form you often see in HN and other technical discussion memes too, such as:
s/easy/hard
Which is a joke to substitute uses of the word "easy" with "hard". The slashes mark a RegEx so you can get really clever in such jokes, though usually most such jokes are simple word substitutions.
How am I supposed to match two entirely different words? Atomic groups with | don't seem to work. Not something I'd use regex for anyway. What am I missing here?
On older safaris, the background skewed svg doesn't display correctly (which would be a safari problem but there are plenty of ways to underline text without being too clever by half) so it's not clear what should be matched, particularly when it involves trailing punctuation.
Great visuals and sounds. I didn't understand the reference without the fellow HN commenter explaining it.
Maybe you could focus the input box on startup and after Game over.
My most recent examplew was "It's alive! It's alive!" as input with all the non-space underlined, for which I wrote `/\S/g`. It seemed to match all the required parts, but the timer just counted down and ended with a Game Over. And there's no feedback on what exactly was wrong. (I encountered similarly confusing ones seven or eight times, so this isn't an isolated input for which this happens.)