Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

extract operator and numbers from a typical product option line

Submitted by anonymous - 6 years ago