#2024 Day 03

17 messages · Page 1 of 1 (latest)

muted minnow
muted minnow

parsing funi

sage steppe

Part 2 is really gonna make me question my ||regex|| skill

muted minnow
sage steppe

Oh well turns out it wasn't that bad, I was largely misinterpreting the do and don't part

novel pelican

was easier than thought

that input was scary af boi

empty spear

I started trying to do this with ||lookbehinds|| then decided to just ||match all the do/dont locations and then compare indexes of the mul matches||

novel pelican

wanted to do the funny ||and match all mul things and use eval|| dogeHaHa

sonic quest

Finally some regex 🔥

hard bloom

Cool! ||regex training!||

||/(?:do(?:n't)?\(\))|(?:mul\((\d{1,3}),(\d{1,3})\))/gm|| here's the one I used

not optimal I assume, but oh well

sonic quest

If it works, it works