Regular Expressions 101

Community Patterns

0

Address

PCRE2 (PHP >=7.3)
grab address
Submitted by anonymous - 2 years ago

Semantic Versioning to fix broken pkg-config

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:Version:\s)(0|[1-9]\d*)\.?(0|[1-9]\d*)?\.?(0|[1-9]\d*)?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z][0-9a-zA-Z]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z][0-9a-zA-Z]*))*))?(.*)$
/
gm

Description

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