Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Rust

r"
(?P<multi>mul\((?P<num1>\d*),(?P<num2>\d*)\))+|(?P<do>do\(\))+|(?P<dont>don't\(\))+
"
gm

Description

The regex to be used in both parts of adventofcode.com 2024 day 3 puzzle

Submitted by dragmine149 - 2 days ago