#2024 Day 03
17 messages · Page 1 of 1 (latest)
parsing funi
Part 2 is really gonna make me question my ||regex|| skill
oh god good luck
Oh well turns out it wasn't that bad, I was largely misinterpreting the do and don't part
was easier than thought
that input was scary af boi
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||
wanted to do the funny ||and match all mul things and use eval|| 
Finally some regex 🔥
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
If it works, it works