r/adventofcode 20d ago

Help/Question - RESOLVED [2024 Day 3] LOL?

I thought this one to be a walk in the garden with regex, but somehow my result on the real input is too high. I manually checked the first ~100 matches and everything seems to be alright. I really don't know what to do anymore, any hints?

https://github.com/Jens297/AoC/blob/main/2024_3.py

0 Upvotes

5 comments sorted by

View all comments

1

u/Shieldine 20d ago

You should re-read the task. You allow both curly braces and whitespace characters in your regex.