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,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex 5000000 - 8999999
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-10-20 13:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
symbols and numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-10-20 14:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Client Quirks: Add spaces before !important where needed
ECMAScript (JavaScript)
no description available
Submitted by
Mike Kormendy
-
6 years ago
2017-10-21 21:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ComplexURLMatching filename and extension
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-10-24 10:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ComplexURLMatching filename and extension
ECMAScript (JavaScript)
no description available
Submitted by
lg
-
6 years ago
2017-10-24 10:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
vmnames
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-10-25 12:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex Caracteres Especiais
ECMAScript (JavaScript)
Regex para remover os caracteres especiais, deixando os numeros, caracteres de A-Z (maiusculo e minusculo) e os caracteres padroes do teclado, e espacos.
Submitted by
anonymous
-
6 years ago
2017-10-25 16:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
duplicate words
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-10-28 16:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Comprehensive US SSN (Social Security Number)
ECMAScript (JavaScript)
This regex targets a customer specific requirement for a regex that matches US Social security numbers either separated by -(dash), space or nothing. So it should match: 702-02-9921 702 02 9921 702029921...
Submitted by
@rafalages
-
6 years ago
2017-11-01 14:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
bank account number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-11-02 13:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validate html end tags with single quotes
ECMAScript (JavaScript)
validate html tags should have end tags, closing single, double quotes
Submitted by
Remo
-
6 years ago
2017-11-03 06:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove millisecond form ISO date format.
ECMAScript (JavaScript)
e.g. convert new Date().toISOString(); // == "2016-11-21T08:00:00.000Z" into "2016-11-21T08:00:00"
Submitted by
anonymous
-
6 years ago
2017-11-06 11:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
url selector
ECMAScript (JavaScript)
no description available
Submitted by
daniela
-
6 years ago
2017-11-06 13:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Umbraco udi regex
ECMAScript (JavaScript)
no description available
Submitted by
jdpnielsen
-
6 years ago
2017-11-09 11:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Human Name in all language
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-11-10 07:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Alpha numeric words with apostrophe(') and hypen (-)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-11-11 21:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Whole number or number range | Page number or page range
ECMAScript (JavaScript)
Allows a whole number (25) or range (25-30) with no whitespace. See below for whitespace and decimals: https://regex101.com/library/fT2hY3
Submitted by
anonymous
-
6 years ago
2017-11-13 01:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Basic interpolation replace
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
2017-11-14 05:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove spaces between HTML elements
ECMAScript (JavaScript)
no description available
Submitted by
Jacobo de Haro
-
6 years ago
2017-11-21 14:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Decimal Input
ECMAScript (JavaScript)
Used for replace characters on keyup in javascript: $(document).on("keyup", ".input", function(e) { var target = $(e.target); var value = target.val(); target.val(value.replace(/^-*\.+$||^\.+(?!$)|^0+(?=[0-9]+)|\.(?=\.|.+\.)|(?!^)-/g, '')); });...
Submitted by
anonymous
-
6 years ago
2017-11-23 11:14
1
...
169
170
171
172
173
174
175
...
274
iso8601 duration
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
P
(
(
\d
+
(
[
,
\.
]
\d
+
)?
Y
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
M
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
D
)?
(
T
(
\d
+
(
[
,
\.
]
\d
+
)?
H
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
M
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
S
)?
)?
$
)
|
(
\d
+
(
[
,
\.
]
\d
+
)?
W
$
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 years ago
2018-12-13 16:59