Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-12-19 23:04
Flavor·Python

r"
(([0-9]+)-([0-9]+))|([0-9]+)
"
mg
Open regex in editor

Description

AoC 2025 Day 5 part 1 but also works for part 2. You just don't need the IDs at the bottom for part 2

Submitted by anonymous