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,620 community submitted regex patterns...
1
All zeros after first digit
ECMAScript (JavaScript)
Number string where only zeros follow the first digit
Submitted by
anonymous
-
25 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
-
22 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
-
22 days ago
1
VALID_IP
Python
VALID_IP checker
Submitted by
GSV
-
21 days ago
(Last modified 21 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
-
20 days ago
(Last modified 18 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
-
18 days ago
(Last modified 18 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
-
18 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
-
15 days ago
1
Russian car plate for Python
Python
Regex for matching Russian car plate without region
Submitted by
aalexren
-
11 days 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
-
8 days ago
(Last modified 8 days ago)
1
Battlemetrics line fixer
Python
Fixes battlemetrics newline formatting
Submitted by
Neun
-
4 days 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
-
4 days 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
-
3 days ago
1
changelog
ECMAScript (JavaScript)
changelog
Submitted by
alexsio nau
-
2 days ago
-2
Decimal Number
ECMAScript (JavaScript)
Parse decimal numbers with optional thousands and/or decimal separator. #i18n #l11n #international
Submitted by
Andreas Pizsa
-
10 years ago
-1
Find image style
ECMAScript (JavaScript)
style img
Submitted by
anonymous
-
11 years ago
-1
Twitter #hashtags
Python
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
-
11 years ago
-1
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
Phone area code - prefix - number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
0
adding space after (.) period and next word
ECMAScript (JavaScript)
Requirement was to check if there is space between . and next text and if not the then add space
Submitted by
Prajkta
-
10 years ago
1
...
98
99
100
101
102
...
281
IP address
-1
Regular Expression
Python
r"
\b
(?:
[
0
-
9
]
{1,3}
\.
){3}
[
0
-
9
]
{1,3}
\b
"
g
Open regex in editor
Description
Looks for string formated like an IP address.
Submitted by
anonymous
-
9 years ago