Regular Expressions 101

Library entries

find pattern in filename product name, version, build and extension

Vote

1

Regular Expression
python

"
(?P<product_name>^.*)[-]((?P<ver>\*|\d+(\.\d+){0,2}(\.\*)?))[-](?P<build>.\d*)[.](?P<ext>bin|rpm)$
"
gm

Description

Loading markdown...
Submitted by rsim - 3 months ago