Regular Expressions 101

Library entries

AUX/LUX

Vote

0

Regular Expression
python

"
^(?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

Loading markdown...
Submitted by anonymous - 2 years ago