Regular Expressions 101

Community Patterns

Semver 2.0.0 (with numbered capture groups)


Regular Expression
PCRE2 (PHP >=7.3)



Semver 2.0.0 with numbered capture groups instead (so cg1 = major, cg2 = minor, cg3 = patch, cg4 = prerelease and cg5 = buildmetadata) that is compatible with ECMA Script (JavaScript), PCRE (Perl Compatible Regular Expressions, i.e. Perl, PHP and R), Python and Go. Source:

Submitted by Soma Szelpal - 2 months ago