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 5,600 community submitted regex patterns...
17
19 upvotes, 2 downvotes (score 71.1%) (You must be signed in to vote)
Strict Password Validator
ECMAScript (JavaScript)
This regex matches only when all the following are true: password must contain 1 number (0-9) password must contain 1 uppercase letters password must contain 1 lowercase letters password must contain 1 non-alpha numeric number...
Submitted by
qho
-
6 years ago
2018-01-31 01:03
(Last modified 4 months ago)
2023-07-19 15:28
12
14 upvotes, 2 downvotes (score 70.4%) (You must be signed in to vote)
Get path from any text
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS THE SINGLE LINE VERSION !_ If you want understand how it work or edit it, go https://regex101.com/r/7o2fyy Relative path are not supported...
Submitted by
nitrateag
-
10 months ago
2023-01-31 14:38
(Last modified 4 months ago)
2023-07-23 20:17
9
9 upvotes, 0 downvotes (score 70.1%) (You must be signed in to vote)
Email regex validation
ECMAScript (JavaScript)
RegEx email /^((?!\.)[\w-_.]*)(@\w+)(\.\w+(\.\w+)?)$/gim; Just playing with Reg Ex. This to validate emails in following ways ...
Submitted by
https://www.linkedin.com/in/peralta-steve-atileon/
-
5 years ago
2019-03-17 21:49
(Last modified 4 months ago)
2023-07-27 21:03
16
23 upvotes, 7 downvotes (score 65%) (You must be signed in to vote)
Email (RFC2822)
Recommended
This entry has been specifically selected by our team to be a great submission
ECMAScript (JavaScript)
Email address compliant with RFC2822
Submitted by
Jago
-
8 years ago
2015-07-01 09:31
10
11 upvotes, 1 downvotes (score 64.6%) (You must be signed in to vote)
UUID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-01 17:13
10
11 upvotes, 1 downvotes (score 64.6%) (You must be signed in to vote)
youtube url match
ECMAScript (JavaScript)
extract video id, index, play list id from youtube url
Submitted by
anonymous
-
8 years ago
2015-08-19 03:04
7
7 upvotes, 0 downvotes (score 64.6%) (You must be signed in to vote)
CSS Color Matcher
ECMAScript (JavaScript)
Pattern matching and extracting color code formats using RegEx. https://github.com/Kyza/color-regex/
Submitted by
Kyza
-
4 months ago
2023-08-07 02:36
22
34 upvotes, 12 downvotes (score 59.7%) (You must be signed in to vote)
grab valid css rules and properties
ECMAScript (JavaScript)
no description available
Submitted by
Pavel Dominguez
-
8 years ago
2015-06-03 19:17
14
20 upvotes, 6 downvotes (score 57.9%) (You must be signed in to vote)
us postal/zip
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
2014-01-13 22:15
13
19 upvotes, 6 downvotes (score 56.6%) (You must be signed in to vote)
Credit Card Expiry Date
ECMAScript (JavaScript)
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
-
9 years ago
2015-05-26 05:34
12
17 upvotes, 5 downvotes (score 56.6%) (You must be signed in to vote)
US Currency Format
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-01-23 17:46
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
IP Address (with 0s)
ECMAScript (JavaScript)
Matches all valid IP addresses from 0.0.0.0 to 255.255.255.255
Submitted by
Ryan Plummer
-
8 years ago
2015-09-28 21:24
7
8 upvotes, 1 downvotes (score 56.5%) (You must be signed in to vote)
simple email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-11 01:12
7
8 upvotes, 1 downvotes (score 56.5%) (You must be signed in to vote)
Extract currency with currency symbol if present
ECMAScript (JavaScript)
Extracts values of the form £nnn,nnn.nn or $nnn.nnn from text
Submitted by
Simon Gardner
-
8 years ago
2015-09-11 11:35
72
410 upvotes, 338 downvotes (score 56.4%) (You must be signed in to vote)
Regex for telephone numbers all over the world
Recommended
This entry has been specifically selected by our team to be a great submission
ECMAScript (JavaScript)
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
10 years ago
2014-04-08 07:58
(Last modified 2 months ago)
2023-10-09 14:47
35
77 upvotes, 42 downvotes (score 55.8%) (You must be signed in to vote)
IP Address validator
ECMAScript (JavaScript)
Validates IPv4 IP Address
Submitted by
krzysp
-
8 years ago
2015-06-18 12:52
15
25 upvotes, 10 downvotes (score 54.9%) (You must be signed in to vote)
Hashtag
ECMAScript (JavaScript)
The secret of the Twitterverse.
Submitted by
Joogl
-
9 years ago
2014-10-05 17:14
11
16 upvotes, 5 downvotes (score 54.9%) (You must be signed in to vote)
Full url parse, domain, path, params
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-25 20:54
86
297 upvotes, 211 downvotes (score 54.1%) (You must be signed in to vote)
Password Validation
ECMAScript (JavaScript)
Checks that a password has a minimum of 6 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number with no spaces.
Submitted by
Christian Klemp
-
8 years ago
2015-07-08 18:46
11
17 upvotes, 6 downvotes (score 53.5%) (You must be signed in to vote)
find all link(<a>) tags expect your links in href attribute
ECMAScript (JavaScript)
YourLink - not found AnotherLink - found
Submitted by
KoT
-
8 years ago
2015-07-29 11:09
1
2
3
4
...
280
find all link(<a>) tags expect your links in href attribute
11
17 upvotes, 6 downvotes (score 53.5%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
<
(
a
+
)
(?!
(?:
href=
(
[
"|'
]
+
)
(
[
http:
\/\/
]
)*
link
\.
com
(
[
\/
]
)?
(
.
*
?
)
[
"|'
]
)
)
*
[^
>
]
*
>
(
.
*
?
)
[^
>
]
>
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
KoT
-
8 years ago
2015-07-29 11:09