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,560 community submitted regex patterns...
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
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
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
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
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
16
90 upvotes, 74 downvotes (score 47.2%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
Safe Password that allow only with a number, a lowercase, a uppercase, and a special character
Submitted by
davidlondono
-
9 years ago
2015-04-28 16:49
16
74 upvotes, 58 downvotes (score 47.5%) (You must be signed in to vote)
http url regex
ECMAScript (JavaScript)
general purpose HTTP URL regex
Submitted by
Miguel Castillo @manchagnu
-
8 years ago
2015-06-21 19:49
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
18
20 upvotes, 2 downvotes (score 72.2%) (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 5 months ago)
2023-07-19 15:28
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
-
9 years ago
2015-06-03 19:17
24
67 upvotes, 43 downvotes (score 51.6%) (You must be signed in to vote)
Quote Macthing with escape
ECMAScript (JavaScript)
Matches text within quotes (", ') and escapes the charecters.
Submitted by
Vihan Bhargava
-
9 years ago
2015-05-10 20:48
31
142 upvotes, 111 downvotes (score 50%) (You must be signed in to vote)
Email address (most used)
ECMAScript (JavaScript)
Email address, most used cases
Submitted by
Jago
-
8 years ago
2015-07-01 09:32
34
123 upvotes, 89 downvotes (score 51.3%) (You must be signed in to vote)
Google like regex
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
-
10 years ago
2014-05-12 13:35
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
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
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
106
601 upvotes, 495 downvotes (score 51.9%) (You must be signed in to vote)
trim
ECMAScript (JavaScript)
trim string
Submitted by
fp
-
10 years ago
2013-09-10 08:21
1
...
175
176
177
178
streets with one or more names with unicode characters in python
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Python
r"
^
(
[
a
-
zA
-
Z
\u00C0-\u017E
]
+
(?:
\.
|
-
|
)
)*
[
a
-
zA
-
Z
\u00C0-\u017E
]
*
$
"
gmu
Open regex in editor
Description
Loading markdown...
Submitted by
Stanicio
-
2 years ago
2022-02-13 02:14