Hacker News new | ask | show | jobs
by maxfurman 1340 days ago
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?
2 comments

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.
It doesn't seem to like regexes like /.*/ either, despite them matching the whole thing.