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 5,500 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
-
a month ago
1
All zeros after first digit
ECMAScript (JavaScript)
Number string where only zeros follow the first digit
Submitted by
anonymous
-
a month 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
-
a month 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
-
a month ago
1
VALID_IP
Python
VALID_IP checker
Submitted by
GSV
-
a month ago
(Last modified a month ago)
1
RFC3986 URI-reference
ECMAScript (JavaScript)
Regexp to match URI-reference using syntax defined in RFC 3986 a.k.a. Uniform Resource Identifier (URI): Generic Syntax to create best URI-reference regexp there is (noone bothered to do so). #URL #URI #RFC #3986 #RFC3986
Submitted by
Niemiets
-
a month ago
(Last modified 19 hours ago)
1
RFC3986 URI
ECMAScript (JavaScript)
Regexp to match URI using syntax defined in RFC 3986 a.k.a. Uniform Resource Identifier (URI): Generic Syntax to create best URI regexp there is (noone bothered to do so). #URL #URI #RFC #3986 #RFC3986
Submitted by
Niemiets
-
25 days ago
(Last modified 19 hours 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
-
24 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
-
21 days ago
1
Russian car plate for Python
Python
Regex for matching Russian car plate without region
Submitted by
aalexren
-
18 days ago
1
Battlemetrics line fixer
Python
Fixes battlemetrics newline formatting
Submitted by
Neun
-
11 days ago
1
changelog
ECMAScript (JavaScript)
changelog
Submitted by
alexsio nau
-
9 days ago
1
Next.js middleware config matcher regex
ECMAScript (JavaScript)
Next.js middleware config matcher regex ~ https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher ~ https://nextjs.org/docs/app/api-reference/file-conventions/middleware#config-object-optional Public - skip middleware /api/auth/*...
Submitted by
iki
-
a day ago
-2
Header `Link` validator
ECMAScript (JavaScript)
no description available
Submitted by
Vaseker
-
10 years ago
-2
checklists item
Python
checklists item
Submitted by
Tobias Hochgürtel
-
9 years ago
0
barcode or barcode list
Python
no description available
Submitted by
anonymous
-
9 years ago
-2
Date Validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-2
Validation of code ATECO Italian
Python
/* -- This is a RegEx for validating one Italian ATECO code. -- For original specification visit: http://www.istat.it/it/archivio/17888 -- Valid: */ 1...
Submitted by
Marco Tonchella with the help of this Comunity that thanks a lot.
-
9 years ago
-2
Roman numbers
ECMAScript (JavaScript)
This regex matches roman numbers from 1 (I) to 3999 (MMMCMXCIX)
Submitted by
Nicolò Ribaudo
-
9 years ago
0
emailfider
Python
no description available
Submitted by
anonymous
-
9 years ago
1
...
114
115
116
117
118
...
275
JWT pattern
1
Regular Expression
ECMAScript (JavaScript)
/
eyJ
[
A
-
Za
-
z0
-
9-_
]
+
\.
(?:
eyJ
[
A
-
Za
-
z0
-
9-_
]
+
)?
\.
[
A
-
Za
-
z0
-
9-_
]
{2,}
(?:
(?:
\.
[
A
-
Za
-
z0
-
9-_
]
{2,}
){2}
)?
/
g
Open regex in editor
Description
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) without Base64 padding
=
Submitted by
iki
-
24 days ago