Regular Expressions 101

Library entries

Version number

Vote

0

Regular Expression
pcre

/
\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

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