Regular Expressions 101

Community Patterns

Another X / Extra X / X more

1

Regular Expression
Python

r"
[A|a]nother (one|two|three)|[A|a]nother \d+|[E|e]xtra (one|two|three|four|five)|[E|e]xtra \d+|(one|two|three|four) more
"
gm

Description

Extract phrases meaning "add X more of the previous item"

Submitted by anonymous - 4 years ago