Thanks for starting this thread. I'm doing this on more than one forum and didn't get on this one till now.
I did use regex. Especially with the spec that the digits are 1-3 in length, that's just going to throw a real curve ball with any other approach while regex will handle that really easily.
The real question I have for people is if they used more regex in part two or handled the do don't blocks another way? I almost used regex for that but I remembered another way to do it.
Thanks for starting this thread. I'm doing this on more than one forum and didn't get on this one till now.
I did use regex. Especially with the spec that the digits are 1-3 in length, that's just going to throw a real curve ball with any other approach while regex will handle that really easily.
The real question I have for people is if they used more regex in part two or handled the do don't blocks another way? I almost used regex for that but I remembered another way to do it.
My solutions:
https://lab.matrixforum.net/JasonMitchell/AdventOfCodeSolutions/src/branch/main/2024/day3
Also a link to the problem: https://adventofcode.com/2024/day/3