Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\A (?<major>0|[1-9]\d*)\. (?<minor>0|[1-9]\d*)\. (?<patch>0|[1-9]\d*) (?: -(?<prerelease> (?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*) (?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))* ) )? (?: \+(?<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*) )? \Z
/
gmx

Description

no description available

Submitted by anonymous - 5 years ago (Last modified 3 years ago)