Advent of Code 2023: Day Three

from blog Robb Knight • Posts • RSS Feed, | ↗ original
More regex and string parsing today. Sounds like a party.[1] Part One Given an "engine schematic" like below, identify which numbers are part numbers. That is, they have a symbol (not a . though) either next to, above, or below them including diagonally. 467..114.....*........35..633. In this example, 467 and 35 are part numbers, 114 and 633 are...