Regular Expressions 101

Sponsors

Library entries

1
python

Matching url

no description available
Submitted by anonymous - 8 years ago
1
javascript

Demo

no description available
Submitted by Tensibai - 8 years ago
1
pcre

foobar

no description available
Submitted by anonymous - 8 years ago
6
pcre

json

{1:aa,2:bb,3:"aa:bb"}
Submitted by suat & umut - 8 years ago
1
pcre

json

no description available
Submitted by suat & umut - 8 years ago
1
python

auie

auie
Submitted by auie - 8 years ago

Parse drupal version info from filename

Vote

1

Regular Expression
pcre

/
^(?<project>\w+)-(?<core>\d+\.x)-(?<major>\d+)\.(?<patch>[\dx]+)[-\.]?(?<extra>[^\.]+)?\.(tar\.gz|tgz)$
/
mg

Description

Loading markdown...
Submitted by Jason Smith - 8 years ago