Regular Expressions 101

Community Patterns

-3

mama

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 10 years ago
-3

Telephone

PCRE (PHP <7.3)
Find Telephone
Submitted by Mr.Fail - 9 years ago
-3

UpperCase words

PCRE (PHP <7.3)
no description available
Submitted by ivo - 9 years ago
-3

a

PCRE (PHP <7.3)
a
Submitted by a - 9 years ago
-3

Html Tags

ECMAScript (JavaScript)
Matches HTML structure
Submitted by sagar - 8 years ago

semver

4

Regular Expression
Recommended
PCRE (PHP <7.3)

/
^(?'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> - 9 years ago