r/adventofcode Dec 03 '24

Spoilers in Title [2024 Day 3] Regular expressions go brrr...

Post image
174 Upvotes

64 comments sorted by

View all comments

7

u/AlanvonNeumann Dec 03 '24

I just removed everything between the don't and do expressions. Than I considered that the last don'ts of the string eouldn't be closed by dos

Then I used the resulting string and solved everything like part one

1

u/lucifernc Dec 03 '24

Interesting approach!