Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(mul)\((\d{1,3}),(\d{1,3})\)|(do)\(\)|(don't)\(\)
/
g

Description

https://adventofcode.com/2024/day/3

I am wondering if there's a way to have mul do and don't appear under the same group

Submitted by anonymous - 23 days ago (Last modified 23 days ago)