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 15,060 community submitted regex patterns...
1
Birth date check format yyyy-mm-dd
ECMAScript (JavaScript)
Start from 1900-01-01
Submitted by
anonymous
-
4 days ago
1
Best birth date check
ECMAScript (JavaScript)
Format YYYY-MM-JJ
Submitted by
anonymous
-
5 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
-
23 days ago
1
changelog
ECMAScript (JavaScript)
changelog
Submitted by
alexsio nau
-
a month ago
1
Discord Server Invite, Rust RegEx
Rust
A regular expression for Rust that matches against Discord server invite URLs, but not those without an actual code present. This may be used in Discord's AutoMod feature as it supports up to 10 Rust regular expressions per custom rule.
Submitted by
sepruko
-
a month ago
1
JS/TS imports of external dependencies
Rust
This regex can be used on a JavaScript/TypeScript file to find imports from third-party packages. This is useful for determining what to put in dependencies/peerDependencies. This is a Rust regex, which makes it easy to use with rg (ripgrep). Pro tip: combine rg with sort -u to get a list of all pac...
Submitted by
Nikita Karamov
-
a month ago
1
Battlemetrics line fixer
Python
Fixes battlemetrics newline formatting
Submitted by
Neun
-
a month ago
1
Automod - Discord scam invitations
PCRE (PHP <7.3)
Matches variations of messages commonly used to send Discord scams/hacks. Instructions are written for YAGPDB
Submitted by
paiuxfluens
-
a month ago
1
Multiline CSS to one line CSS example (C#)
.NET 7.0 (C#)
Regex that will match/replace unnecessary whitespaces in CSS code.
Submitted by
Puchkov Eugene
-
a month ago
(Last modified a month ago)
1
Russian car plate for Python
Python
Regex for matching Russian car plate without region
Submitted by
aalexren
-
a month 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
-
a month ago
1
JWT pattern
ECMAScript (JavaScript)
handles both JWS (3 segments) and JWE (5 segments) remove the ending (?:(?:... to handle JWS only segments 1+2 are expected tp start with e[yw], an encoded start of JSON object {" or {\n remove/extend it to match used token structure or make it even more restrictive (ey[IJ]|ewo) to match encod...
Submitted by
iki
-
2 months ago
(Last modified 19 days 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
-
2 months ago
(Last modified 23 days 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
-
2 months ago
(Last modified 23 days ago)
1
VALID_IP
Python
VALID_IP checker
Submitted by
GSV
-
2 months ago
(Last modified 2 months 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
-
2 months 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
-
2 months ago
1
All zeros after first digit
ECMAScript (JavaScript)
Number string where only zeros follow the first digit
Submitted by
anonymous
-
2 months ago
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
-
2 months ago
1
HCPCS Level II codes (no 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 iden...
Submitted by
Richard Baxter
-
2 months ago
1
2
3
...
753
Meraki Project Status and Email
0
Regular Expression
PCRE (PHP <7.3)
/
"Project_Status__c":
(
"
?
)
(?<Projstatus>
.
*
?
)
(
"
?
)
,
.
*
?
,"Meraki_Email__c":
(
"
?
)
(?<merakemail>
.
*
?
)
(
"
?
)*
?
(
"
?
)
}}]}
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago