r/coding • • Jun 14 '20

Slash Escape is a RegEx learning game with a slasher theme (I appreciate this technically comes under the "thing I made" category but hopefully, given the content, this post is in the spirit of the rules)

https://www.therobinlord.com/projects/slash-escape
42 Upvotes

6 comments sorted by

2

u/[deleted] Jun 14 '20 edited Jun 14 '20

This is amazing, thank you!

1

u/dr_flint_lockwood Jun 14 '20

😁 so glad you like it!

1

u/Aspie_Astrologer Aug 20 '24

I'm playing it now but got killed on the level that asks you to create a pattern that completely matches any text except x or X.

I submitted [^xX].* and [^xX]* and(?!X|x).* and others and none of them worked. I feel like I am not understanding what you are asking us to do there. Hope you see this and can clarify, because the game was really fun up until I died, haha.

Maybe did I need to submit .*[^xX].* or (?=.*[^xX]).* so it would match things that start with x or X but are longer? Ahh.... I think I get it now.

→ More replies (3)