Regular Expressions 101

Sponsors

Library entries

-2
javascript

Comma-separated numbers with ranges

no description available
Submitted by Eugene - 8 years ago
0
pcre

soap envelope regexp

no description available
Submitted by anonymous - 8 years ago
0
pcre

test123

no description available
Submitted by anonymous - 8 years ago
0
pcre

SickRage

no description available
Submitted by anonymous - 8 years ago
1
pcre

Un-titled

no description available
Submitted by anonymous - 8 years ago
1
pcre

Nada

no description available
Submitted by anonymous - 8 years ago
1
pcre

Post

no description available
Submitted by anonymous - 8 years ago
1
javascript

Failure case for repeated strings

no description available
Submitted by anonymous - 8 years ago
1
pcre

Get version

no description available
Submitted by anonymous - 8 years ago
0
pcre

None

no description available
Submitted by anonymous - 8 years ago
1
javascript

f

no description available
Submitted by anonymous - 8 years ago
-2
pcre

,,,

,,,
Submitted by ,,, - 8 years ago

semver

Vote

2

Regular Expression
pcre

/
^(?'MAJOR'0|(?:[1-9]\d*))\.(?'MINOR'0|(?:[1-9]\d*))\.(?'PATCH'0|(?:[1-9]\d*))(?:-(?'prerelease'(?:0|(?:[1-9A-Za-z-][0-9A-Za-z-]*))(?:\.(?:0|(?:[1-9A-Za-z-][0-9A-Za-z-]*)))*))?(?:\+(?'build'(?:0|(?:[1-9A-Za-z-][0-9A-Za-z-]*))(?:\.(?:0|(?:[1-9A-Za-z-][0-9A-Za-z-]*)))*))?$
/
gm

Description

Loading markdown...
Submitted by @gvlx <Gerardo Lisboa> - 8 years ago