Regular Expressions 101

Sponsors

Library entries

1
python

Parse Data Fields

Parsing example
Submitted by anonymous - 7 months ago
1
pcre2

order by field and direction

order by field and direction
Submitted by anonymous - 7 months ago
1
python

ds100reg2

Data 100 Regular Expressions, adapted from Princeton
Submitted by anonymous - 6 months ago
1
python

Get domain name from URL

Get domain name from URL
Submitted by anonymous - 6 months ago
1
python

Extract time from text

Extract time from text
Submitted by anonymous - 6 months ago
1
pcre2

Variable, -> "Variable",

Add "" to variable before comma
Submitted by anonymous - 6 months ago
1
python

CRON

Validades cron job time specification
Submitted by anonymous - 6 months ago
1
pcre2

basic

rast
Submitted by anonymous - 6 months ago

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 - a year ago