Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
Python

r"
(([0-9]+)-([0-9]+))|([0-9]+)
"
mg

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 - 25 days ago