Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(?P<brand>\S+(?:.*Bio)?\s(?!\d|x))?(?:(?P<name>.+)(?=\s\S*\d+\S*|\spièce)\s(?P<quantity>\S*\d+.*|pièce)|(?P<name2>\D.+)?(?P<quantity2>\d.+)?)
"
gm

Description

no description available

Submitted by anonymous - 4 years ago