blinry,
@blinry@chaos.social avatar

Presenting: Regexle, a wordle-like game for nerds 🤓

Guess the secret regular expression by testing strings against it!

@piko and I might be two years late with this project, but here we go!

:yayblob: https://regexle.ithea.de :yayblob:

Fripi,
@Fripi@chaos.social avatar

@blinry @piko I love and hate it. I love to learn new stuff and hate how little I know 🙈

syralist,
@syralist@troet.cafe avatar

@blinry @piko so, i get a new puzzle everytime i refresh the site?
That way i put my progress in the unstable hands of chrome mobile. Maybe it doesn't refresh for 6 hours, maybe it refreshes when i switch tabs. Who knows? 🫠

blinry,
@blinry@chaos.social avatar

@syralist No, there's a daily puzzle :)
@piko

katzenschiff,
@katzenschiff@chaos.social avatar

@blinry @piko \o/ gewonnen!

GermanENtrans,
@GermanENtrans@c.im avatar

@blinry @piko the checking mechanism is faulty. I test all the counterexamples on the Regex Storm tester and they fit my proposed rule just fine.

blinry,
@blinry@chaos.social avatar

@GermanENtrans Can you share a screenshot, or elaborate? @piko

threedaymonk,
@threedaymonk@sonomu.club avatar

@blinry @GermanENtrans @piko I found the same thing. I guessed ^s.{9}s$ and it told me that "dread" would fit my regular expression. I don't think so!

blinry,
@blinry@chaos.social avatar

@threedaymonk For today's regex? If you can reproduce that, we'd love a screenshot! :) @GermanENtrans @piko

richconnergmn,
@richconnergmn@mastodon.social avatar

@blinry @piko this seems vaguely similar to this https://youtu.be/qsPqe21CrP4

piko,
@piko@chaos.social avatar

@richconnergmn @blinry Ooooh, yes! Thanks for sharing :D

18+ Aedius,
@Aedius@lavraievie.social avatar

@blinry @piko

hum, looks like you are removing all non letter before checking the regex, but the entered text is displayed, kind of confusing ;)

The word [A]bb+*b matches the secret pattern.

18+ blinry,
@blinry@chaos.social avatar

@Aedius To actually enter a guess, click the blue button at the bottom! :) @piko

18+ Aedius,
@Aedius@lavraievie.social avatar

@blinry @piko

Correct! [A-Z] is today's secret regex! You guessed 6 words and 4 regexes.

Correct! [A-Z]+[a-z]* is today's secret regex! You guessed 6 words and 5 regexes.

Correct! ^.*[A-Z] is today's secret regex! You guessed 7 words and 7 regexes.

🤔

18+ Aedius,
@Aedius@lavraievie.social avatar

@blinry @piko

How i see ! You are not matching the result of the match only if each entry of your dataset have a match or not.

18+ Aedius,
@Aedius@lavraievie.social avatar

@blinry @piko

i just have created :

https://regexle.ithea.de/?JTVCQS1DJTVEKmwlNUJ4LXolNUQq
with the regex "[A-C]l[x-z]"

but it accept "l" as a result :

Correct! l is the secret regex! You guessed 1 word and 2 regexes.

🤔

i dont know if i'm nitpicking here XD

blinry,
@blinry@chaos.social avatar

@Aedius We accept a regex as correct as soon as it matches the same words from our list of English words as the other one – otherwise, we'd need to test regexes for equality, which seems conplicated :D And often, there are multiple ways to phrase a solution.

But we could maybe show the "intended" regex, as well!
@piko

jonny,
@jonny@neuromatch.social avatar

@blinry
A game for people who love pain, well done

piko,
@piko@chaos.social avatar

@jonny @blinry People who liked pain also liked: https://qr.blinry.org/

plusmid,
@plusmid@chaos.social avatar

@blinry @piko Why am I getting this message? Isn't the point that I can match any character sequence?

blinry,
@blinry@chaos.social avatar

@plusmid Is this for a regex you entered yourself? We check if any of our English words match it because we want to give one example that matches, and one which doesn't match. That's inspired by the board game Zendo! But maybe we could still let people play it without getting initial information in that case?

Or can you modify your regex to match some English words? @piko

plusmid,
@plusmid@chaos.social avatar

@blinry @piko It makes sense depending on the context. It would be nice if I could give my own examples.
I don't think I can find an english word containing digits ;).

lanodan,
@lanodan@queer.hacktivis.me avatar

@blinry @piko Guessing a regex? Oh no.
At least code-golfing one could be fun.

cinnamon,

@lanodan @blinry @piko I love that "code-golfing" expression because... well, because that's also how I construct regexes, with trial and error, always trying to keep my "score" on par with the "course". ​:blobcatgiggle2:​

lanodan,
@lanodan@queer.hacktivis.me avatar

@cinnamon @blinry @piko Code golfing is getting the shortest one though, often via exploiting arcane tricks.

keko,
@keko@mastodon.online avatar

@blinry @piko does not work on iOS. It honors the motto of “I had a problem but I wrote a regex to fix it and now I have two problems” 😅

piko,
@piko@chaos.social avatar

@keko @blinry fixfixfix

lambdatotoro,
@lambdatotoro@chaos.social avatar

@blinry @piko Oh, this is delightful! I'll show this to my first year students, they always need fun ways to get better at regexes. 🤓

deraffe,
@deraffe@chaos.social avatar

@blinry @piko I believe to really copy the wordle format fully, you need a way to share your results in an obnoxious Emoji-encoded way.

dasnessie,
@dasnessie@chaos.social avatar

@blinry @piko I always find it part of the fun to compare with other people. Could you generate a short message that can be copy-pasted to the appropriate group chats? Something like:

Solved Regexle # X with 6 words and 1 regex!

Words: 🟥🟥🟩🟥🟩🟩
Regex: 🟩

https://regexle.ithea.de/

blinry,
@blinry@chaos.social avatar

@dasnessie @deraffe Lovely idea! :D

Added that suggestion as an issue: https://gitlab.com/sudo_piko/regexle/-/issues/53

@piko

blinry,
@blinry@chaos.social avatar

You can create your own puzzles in the sidebar, and get a link to share with others!

We have daily regexes to guess for the next month, but feel free to send us your ideas, and we'll add them!

blinry,
@blinry@chaos.social avatar

Also, we'd be curious to get feedback for how well the site works for people using screenreaders, and what we could improve!

piko,
@piko@chaos.social avatar

@blinry For the non-computer people: a regex, short for "regular expression", is a sort of short notation for describing text, for example: The line starts with a "c", then there's a number of vowels, and then there might be a "t". In regex, this would be "^c[aeiou]+t?"

codingcatgirl,
@codingcatgirl@chaos.social avatar

@blinry works on my android but not in my girlfriend's iOS (neither Safari nor Firefox). just a bunch of a's as example matching words and no buttons work

blinry,
@blinry@chaos.social avatar

We totally forgot to mention: There's a new Regexle every day!

For today's puzzle, you still have ninety minutes if you're in the UTC+2 time zone! After that, you will have to manipulate your system clock if you want to play it :D

https://regexle.ithea.de

18+ nordern,
@nordern@chaos.social avatar

@blinry
Clearly, todays solution is

aae|aai|aea|aeo|aeu|aia|aie|aii|aiu|aoi|aou|aua|aue|aui|eae|eau|eea|eei|eeu|eia|eie|eii|eio|eiu|eoa|eoe|eoi|eou|iae|iai|iao|iau|iei|ieu|iii|ioa|ioe|ioi|iou|iuo|oau|oei|oeo|oeu|oia|oie|ooe|ooi|oua|oue|oui|uaa|uai|uao|uau|uea|uee|uei|ueo|ueu|uia|uie|uio|uiu|uoi|uou

:P

Interesting solution for the problem of synonymous regexes though. I was imagining something way more complex.

blinry,
@blinry@chaos.social avatar

Regexle got some new features since @piko and I launched it on Wednesday, thanks to @spax and emilylime!

  • Dark mode! 🕶️
  • Emoji stats to share on social media (see ) 🟩
  • All players get the same starting words for fairness ⚖️

https://regexle.ithea.de

Great to see y'all having fun with it! :) Keep the links to custom puzzles coming, this will fill our backlog for daily regexles!

Also, if someone feels like writing a random generator for regexes… https://gitlab.com/sudo_piko/regexle/-/issues/55

fernsehmuell,
@fernsehmuell@chaos.social avatar

@blinry @piko does it not work on ios (safari)? i only see a list of „a“s on the right side. and nothing happens when i press the buttons. organ i holding it wrong?

rachel,
@rachel@norfolk.social avatar

@blinry i can’t seem to get it to do anything. Safari, iPhone, iOS 17.5

blinry,
@blinry@chaos.social avatar

@rachel @fernsehmuell Ohh! Can you send us a screenshot of how it looks like? @piko

fernsehmuell,
@fernsehmuell@chaos.social avatar
piko,
@piko@chaos.social avatar

@fernsehmuell @blinry @rachel aaaaaaaaaaaaaaaaaaaaaaaa!

piko,
@piko@chaos.social avatar

@fernsehmuell @blinry @rachel SCNR... We can reproduce it with the macbook we found on a sidewalk. We're on it; thanks for pointing it out!

nordern,
@nordern@chaos.social avatar

@blinry @piko

"words.push(...english.split("\n"))"

Seems to cause a stack overflow, since you push the entire dictionary onto into the call stack. Interesting that other engines survive that.

But also rather silly.

english.split("\n") already returns an array. Just put that into the Set directly.

blinry,
@blinry@chaos.social avatar

@piko @fernsehmuell @rachel @codingcatgirl @keko We deployed a fix, can you try again? :)

Also, thanks @nordern, that was totally the cause!

nordern,
@nordern@chaos.social avatar
c_ristina,
@c_ristina@chaos.social avatar

@piko @fernsehmuell @blinry @rachel this the most cyberpunk sentence of the day

piko,
@piko@chaos.social avatar

@fernsehmuell @blinry @rachel fix commit deploy
Does it work now? :)

fernsehmuell,
@fernsehmuell@chaos.social avatar
lanodan,
@lanodan@queer.hacktivis.me avatar

@fernsehmuell @blinry @rachel @piko Got the same thing in WebKitGTK, with the following error in the console:

[Error] RangeError: Maximum call stack size exceeded.
	(anonymous function) (script.js:52)

rachel,
@rachel@norfolk.social avatar

@lanodan @fernsehmuell @blinry @piko I love that part of the puzzle is making it work in WebKit 😆

trilader,
@trilader@chaos.social avatar

@blinry @piko Just tried it and got it after 3 words after figuring out how it works (I have to press enter after entering my sequence, I somehow expected validation as I type).

tauli,
@tauli@chaos.social avatar

@blinry @piko This is really cool :)

Needed to guess five words and one regex today. Looking forward to more complicated ones.

daniel_bohrer,
@daniel_bohrer@chaos.social avatar

@blinry @piko oh, good that there is a "give up" button, I will definitely need it!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • megavids
  • lostlight
  • All magazines