Regular Expressions 101

Community Patterns

extraction with matching and non-matching groups

0

Regular Expression
Python

r"
(?:.*\(.*)(\+|-{1})(?: )(\d+\.*?\d+)(?:.*\))
"
gi

Description

extract operator and numbers from a typical product option line

Submitted by anonymous - 5 years ago