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,640 community submitted regex patterns...
9
20 upvotes, 11 downvotes (score 46.9%) (You must be signed in to vote)
domain - host
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-09-29 17:50
14
92 upvotes, 78 downvotes (score 46.6%) (You must be signed in to vote)
Phone Number
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
8 years ago
2015-08-11 17:07
6
10 upvotes, 4 downvotes (score 45.4%) (You must be signed in to vote)
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
10 years ago
2013-12-29 18:41
6
150 upvotes, 144 downvotes (score 45.3%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2013-12-06 14:02
(Last modified 4 months ago)
2023-07-21 04:59
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Password strength
ECMAScript (JavaScript)
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
8 years ago
2015-08-20 14:32
6
11 upvotes, 5 downvotes (score 44.4%) (You must be signed in to vote)
search word with an accent
ECMAScript (JavaScript)
search any word with an accent
Submitted by
Thegner Pierre
-
8 years ago
2015-08-04 08:06
7
17 upvotes, 10 downvotes (score 44.2%) (You must be signed in to vote)
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
10 years ago
2014-05-22 17:18
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
how to match both lines?
Python
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
9 years ago
2014-07-22 09:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 21:13
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
TimezoneOffset
ECMAScript (JavaScript)
parses timezones in the format -08:00 or -8:0
Submitted by
Neha Kadam
-
9 years ago
2014-12-09 07:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Smart Target Blank
ECMAScript (JavaScript)
Allow you to check if the JavaScript location.pathname is a link required adding a target="_blank".
Submitted by
Bruno Lesieur
-
9 years ago
2015-02-02 16:57
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Request mask idea
ECMAScript (JavaScript)
Do you like apis and nodejs as I do?, then this must be for you, have you noticed that all the famous apis have a common functionality? the ability to request partial responses with masks, so if you have a friend list you may want to return only a few fields you know just in case. You will end up re...
Submitted by
Marco Villarreal<erick.slayer.m.v@gmail.com>
-
9 years ago
2015-04-11 19:49
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
javascript regex ftp directory list
ECMAScript (JavaScript)
javascript regex ftp directory list
Submitted by
anonymous
-
8 years ago
2015-06-23 11:55
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Italian ZIP code (CAP)
ECMAScript (JavaScript)
Codice avviamento postale Italiano (ZIP)
Submitted by
Italo
-
8 years ago
2015-07-03 13:40
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
8 years ago
2015-08-06 06:16
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Arrow function to Normal function
ECMAScript (JavaScript)
Convert Arrow Function to Normal Function
Submitted by
Abhisek Pattnaik
-
8 years ago
2015-09-13 17:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
SemVer chain parsing
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-18 09:48
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
yyyy-MM-dd hh:MM
ECMAScript (JavaScript)
date format for "yyyy-MM-dd hh:MM" valid strict model.
Submitted by
image72
-
8 years ago
2015-09-28 13:36
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Get Headings From Markdown Format
ECMAScript (JavaScript)
Get all headings in a Markdown Format Text
Submitted by
Ferdinand Dimas
-
8 years ago
2015-11-30 04:23
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Non vowel words
ECMAScript (JavaScript)
/\b(+)\b/ig
Submitted by
regexe
-
8 years ago
2015-12-29 19:32
1
2
3
4
5
6
7
...
282
Phone Number
14
92 upvotes, 78 downvotes (score 46.6%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
+
]
?
\d
{1,2}
[
-
\s
]
?
|)
\d
{3}
[
-
\s
]
?
\d
{3}
[
-
\s
]
?
\d
{4}
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Tlmader
-
8 years ago
2015-08-11 17:07