Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 3,580 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URLs
ECMAScript (JavaScript)
A simple URL regex that can handle most "properly" formed URLs, and some URIs. It features named groups to easily destruct matches. URIs can use relative paths (../ and ./) to resources. Example (JavaScript) let url = "https://username:password@example.org:8080/path/to/resource?query=term&query=ter...
Submitted by
ephellon
-
3 days ago
2023-11-26 02:56
(Last modified 2 days ago)
2023-11-26 08:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSS classes
ECMAScript (JavaScript)
This selects all (non crazy) CSS class in all valid scenarios
Submitted by
anonymous
-
3 days ago
2023-11-25 14:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegEx for Treating Express Route
ECMAScript (JavaScript)
A Regex that can be applied over the following routes pattern: GET ^\/auth\/?(?=\/|$)/generate GET ^\/auth\/?(?=\/|$)/callback Applying it inside a code, it will get like this:...
Submitted by
HorselessName
-
5 days ago
2023-11-24 04:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
8 days ago
2023-11-20 15:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RFC 2822 standard email validation with limit of chars in name, domain name,and domain
ECMAScript (JavaScript)
Vaild: valid.email@example.com john.doe123@example.co.uk alice_smith@company.org user1234@emailprovider.net...
Submitted by
anonymous
-
11 days ago
2023-11-18 00:28
(Last modified 11 days ago)
2023-11-18 00:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email regex for JS
ECMAScript (JavaScript)
This reges do not covering long emails. It should check domian (64) and page name(255) limits.
Submitted by
SnaYQ
-
11 days ago
2023-11-17 23:55
(Last modified 11 days ago)
2023-11-18 00:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
car licence registry (placa de carro)
ECMAScript (JavaScript)
brazilian car licence registry validation (validação de placa de carro brasileira e mercosul)
Submitted by
edurbs
-
12 days ago
2023-11-16 15:41
(Last modified 12 days ago)
2023-11-16 15:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Check Email Validity
Java 8
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
-
13 days ago
2023-11-15 10:54
(Last modified 13 days ago)
2023-11-15 17:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Full name validation
ECMAScript (JavaScript)
Full name validation with latin caracters
Submitted by
edurbs
-
14 days ago
2023-11-14 13:31
(Last modified 12 days ago)
2023-11-16 15:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Gradient for minecraft
Java 8
This is for my plugin project
Submitted by
Trần Thế Anh
-
14 days ago
2023-11-14 09:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
m3u8-ffzy
ECMAScript (JavaScript)
m3u8-ffzy
Submitted by
anonymous
-
16 days ago
2023-11-13 03:50
(Last modified 16 days ago)
2023-11-13 04:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL Checker
ECMAScript (JavaScript)
Allows to extract or check if the text includes different URLs, allowing for you to check different kinds of links from the simple ones up to the more complex ones that includes prefix, subdomain, domain, entire website name and subpages.
Submitted by
kyunishya
-
19 days ago
2023-11-09 20:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match morse code
ECMAScript (JavaScript)
This matches morse code input and leaves word break spaces
Submitted by
Ember
-
22 days ago
2023-11-06 04:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
OpenWeather API Key Regex
ECMAScript (JavaScript)
A simple regex to match API keys for OpenWeather map. Matches 32 hexadecimal character strings.
Submitted by
anonymous
-
a month ago
2023-10-24 14:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Roblox Account Cookie RegExp
ECMAScript (JavaScript)
A regex to match against Roblox cookies. Two captures; the first is the warning text; the second is the cookie itself.
Submitted by
anonymous
-
a month ago
2023-10-24 13:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Discord Bot Token
ECMAScript (JavaScript)
JS/TS regex for token validation.
Submitted by
anonymous
-
a month ago
2023-10-24 12:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hyphenize
ECMAScript (JavaScript)
convert 16 chars into four hyphen separated groups
Submitted by
mco
-
a month ago
2023-10-23 13:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
English address
ECMAScript (JavaScript)
English address that can start with numbers, # sign or words (\w) followed with any combination of previously mentioned. Multi-line, global and case insensitive supported. Address CANNOT START WITH \w character _ or 0 or any other symbols
Submitted by
Dr St Clair Clarke
-
a month ago
2023-10-19 21:59
(Last modified a month ago)
2023-10-19 22:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
REGEX for parsing Received value in email headers (RFC822)
ECMAScript (JavaScript)
Example: Received: from VI1PR0102CA0029.eurprd01.prod.exchangelabs.com (2603:10a6:802::42) by VE1PR01MB5599.eurprd01.prod.exchangelabs.com (2603:10a6:803:11f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Thu, 9 Jan ...
Submitted by
anonymous
-
a month ago
2023-10-19 08:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Youtube Video ID
Java 8
Extract youtube video ID
Submitted by
anonymous
-
a month ago
2023-10-18 07:16
(Last modified a month ago)
2023-10-26 14:06
1
2
3
4
...
179
Regex to find URLs in text
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(?:
(?:
https
?
|
ftp
|
file
)
:
\/\/
|
www
\.
|
ftp
\.
)
(?:
\(
[
-A
-
Z0
-
9+&@#
\/
%=~_|$?!:,.
]
*
\)
|
[
-A
-
Z0
-
9+&@#
\/
%=~_|$?!:,.
]
)*
(?:
\(
[
-A
-
Z0
-
9+&@#
\/
%=~_|$?!:,.
]
*
\)
|
[
A
-
Z0
-
9+&@#
\/
%=~_|$
]
)*
(?:
\(
[
-A
-
Z0
-
9+&@#
\/
%=~_|$?!:,.
]
*
\)
|
[
A
-
Z0
-
9+&@#
\/
%=~_|$;-
]
)*
/
gim
Open regex in editor
Description
Loading markdown...
Submitted by
Saheed Odulaja
-
2 months ago
2023-09-18 10:01