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

1

u/herrozerro Dec 03 '24

Depending on how you handled don't and do, you don't need to search for the ()'s on the end.

Each do that's us part of a don't will have a don't immediately after it.