Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
1
Match Lines Starting with Specific Word
PCRE2 (PHP >=7.3)
ecuadorminingnews.com
Submitted by
anonymous
-
4 months ago
1
Match Phone Numbers with Extensions
PCRE2 (PHP >=7.3)
canitbenews.com
Submitted by
anonymous
-
4 months ago
1
Extract Multi-Line Comments (JavaScript)
PCRE2 (PHP >=7.3)
sinceretheory.net
Submitted by
anonymous
-
4 months ago
1
Extract HTML Attribute Values
PCRE2 (PHP >=7.3)
statussearch.net
Submitted by
anonymous
-
4 months ago
1
Extract Phone Numbers (International)
PCRE2 (PHP >=7.3)
spooonful.com
Submitted by
anonymous
-
4 months ago
1
Extract Dates in Long Format
PCRE2 (PHP >=7.3)
simplicitylabs.net
Submitted by
anonymous
-
4 months ago
1
Match XML Self-Closing Tags
PCRE2 (PHP >=7.3)
comicdiversity.com
Submitted by
anonymous
-
4 months ago
1
Match URL Parameters with Optional Values
PCRE2 (PHP >=7.3)
youngfreeflorida.com
Submitted by
anonymous
-
4 months ago
1
Match Floating Numbers with Optional Scientific Notation
PCRE2 (PHP >=7.3)
thecoversproject.org
Submitted by
anonymous
-
4 months ago
1
Match Nested HTML Tags
PCRE2 (PHP >=7.3)
techono.me
Submitted by
anonymous
-
4 months ago
1
Match Hexadecimal Color with Optional Alpha
PCRE2 (PHP >=7.3)
theunjob.com
Submitted by
anonymous
-
4 months ago
1
Extract Non-Alpha Numeric Characters
PCRE2 (PHP >=7.3)
quickpicapp.com
Submitted by
anonymous
-
4 months ago
1
Match Strings with Special Characters
PCRE2 (PHP >=7.3)
myplacepoints.com
Submitted by
anonymous
-
4 months ago
1
Extract Domain Names with TLD
PCRE2 (PHP >=7.3)
salientsocial.com
Submitted by
anonymous
-
4 months ago
1
Match Version Numbers (e.g., 1.0.0, 2.3.4)
PCRE2 (PHP >=7.3)
monsterdare.com
Submitted by
anonymous
-
4 months ago
1
Match Hexadecimal Strings
PCRE2 (PHP >=7.3)
ud2002.org
Submitted by
anonymous
-
4 months ago
1
Extract Mixed Content (Text and Numbers)
PCRE2 (PHP >=7.3)
selfdirect.org
Submitted by
anonymous
-
4 months ago
1
Match HTML Entities
PCRE2 (PHP >=7.3)
investprive.com
Submitted by
anonymous
-
4 months ago
1
Match Complex Strings with Nested Patterns
PCRE2 (PHP >=7.3)
scrolltalk.com
Submitted by
anonymous
-
4 months ago
1
Match IP Address with Subnet
PCRE2 (PHP >=7.3)
dailynewstalk.org
Submitted by
anonymous
-
4 months ago
1
...
12
13
14
15
16
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(?P<major>
0
|
[
1
-
9
]
\d
*
)
\.
(?P<minor>
0
|
[
1
-
9
]
\d
*
)
\.
(?P<patch>
0
|
[
1
-
9
]
\d
*
)
(?:
-
(?P<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-
]
*
)
)*
)
)?
(?:
\+
(?P<buildmetadata>
[
0
-
9a
-
zA
-
Z-
]
+
(?:
\.
[
0
-
9a
-
zA
-
Z-
]
+
)*
)
)?
$
/
gm
Open regex in editor
Description
Source:
https://semver.org
Alternative:
https://simversion.github.io
Submitted by
anonymous
-
5 years ago