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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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 14,940 community submitted regex patterns...
1
HCPCS Level II codes (and modifier)
ECMAScript (JavaScript)
The CMS, who maintain these codes, describe the format as:- "HCPCS Level II codes (also known as alpha-numeric codes) consist of a single alphabetical letter followed by 4 numeric digits." (https://www.cms.gov/medicare/coding-billing/healthcare-common-procedure-system) NOTE: This regex will not ide...
Submitted by
Richard Baxter
-
15 days ago
1
All zeros after first digit
ECMAScript (JavaScript)
Number string where only zeros follow the first digit
Submitted by
anonymous
-
14 days ago
1
IPv4, IPv6 and CIDR ranges validation pattern
ECMAScript (JavaScript)
This regex can be used to validate IPv4 and IPv6 addresses as well as CIDR ranges
Submitted by
Simon
-
11 days ago
1
Markdown Masked links
ECMAScript (JavaScript)
matches for any markdown Masked link text detected `` not detected (not valid(on most platforms))
Submitted by
yande
-
11 days ago
1
VALID_IP
Python
VALID_IP checker
Submitted by
GSV
-
10 days ago
(Last modified 10 days ago)
1
URI-reference
ECMAScript (JavaScript)
URI-reference syntax matcher based on RFC 3986 a.k.a. Uniform Resource Identifier (URI): Generic Syntax #URL #URI #RFC #3986 #RFC3986
Submitted by
Niemiets
-
9 days ago
(Last modified 7 days ago)
1
URI
ECMAScript (JavaScript)
URI syntax matcher based on RFC 3986 a.k.a. Uniform Resource Identifier (URI): Generic Syntax #URL #URI #RFC #3986 #RFC3986
Submitted by
Niemiets
-
7 days ago
(Last modified 7 days ago)
1
JWT pattern
ECMAScript (JavaScript)
handles both JWS (3 segments) and JWE (5 segments) remove the ending (?:(?:... to handle JWS only payload (2nd segment) may be empty both header (1st segment) and payload are expected to start with eyJ, a base64 encoded start of JSON object {" accepts only proper Base64url encoding (RFC 4648) with...
Submitted by
iki
-
7 days ago
1
Match all and only Emoji
ECMAScript (JavaScript)
Purpose I wanted to make a regex that just works. This is it for ECMAScript engines. Capabilities ...
Submitted by
anonymous
-
4 days ago
1
Russian car plate for Python
Python
Regex for matching Russian car plate without region
Submitted by
aalexren
-
5 hours ago
1
.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Match US Currency Amount
PCRE (PHP <7.3)
Group 1 has dollar amount with or without commas, Group 4 has optional cents.
Submitted by
anonymous
-
10 years ago
1
erferf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
match hyphen between quotes
PCRE (PHP <7.3)
no description available
Submitted by
cetanu
-
10 years ago
1
non negative integers
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
1
Find common version names in filenames
PCRE (PHP <7.3)
no description available
Submitted by
Jared
-
10 years ago
1
Replaces odd number of quotes with even number of quotes.
PCRE (PHP <7.3)
no description available
Submitted by
ingredient_15939
-
10 years ago
1
Divisible by 3 numbers
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
10 years ago
1
parse SQL statements and get values
PCRE (PHP <7.3)
but it does not work. How do I make it work? It will be used in C#
Submitted by
anonymous
-
10 years ago
1
javascript variable
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
...
682
683
684
685
686
...
747
URL regexp
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
11 years ago