Regular Expressions 101

Community Patterns

1

myregex

PCRE (PHP <7.3)
no description available
Submitted by shakti - 10 years ago
1

gk

PCRE (PHP <7.3)
wertyuikjh
Submitted by hjk - 10 years ago
35

http://

PCRE (PHP <7.3)
no description available
Submitted by Mitus M. - 10 years ago

Parse drupal version info from filename

1

Regular Expression
PCRE (PHP <7.3)

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

Description

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