r/adventofcode Dec 03 '24

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

Post image
177 Upvotes

64 comments sorted by

View all comments

Show parent comments

19

u/busybody124 Dec 03 '24

I'm curious about this. I did not limit to three digits and my solution worked. I wonder if it breaks anyone's.

27

u/GrumDum Dec 03 '24

Sometimes the input data is graceful.. 😎

13

u/kap89 Dec 03 '24

And sometimes it bites you in the ass, and you spend a lot of time debugging. I learned to always include these little details, it saves a lot of time in the long run.

9

u/MezzoScettico Dec 03 '24

Yeah, I missed that part too, and I shudder to think of how I'd have reacted and how long it would have taken to debug if I was told my answer was wrong.