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...
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Select inside <a> tag
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
10 years ago
2014-04-15 04:29
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
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
gh
ECMAScript (JavaScript)
no description available
Submitted by
ghb
-
10 years ago
2014-04-04 16:46
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
10 years ago
2014-04-04 13:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
dsf
ECMAScript (JavaScript)
no description available
Submitted by
fdsfdsfdsf
-
10 years ago
2014-04-02 09:01
2
17 upvotes, 15 downvotes (score 36.4%) (You must be signed in to vote)
Replace \n by <br />
ECMAScript (JavaScript)
Replace non-ending string \n by the HTML tag
Submitted by
anonymous
-
10 years ago
2014-03-27 08:56
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
javascript variable
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-03-25 23:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
waypoints
Python
Text fields describing a name and positions
Submitted by
bruno.piguet@meteo.fr
-
10 years ago
2014-03-24 21:37
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Outside Quotes
ECMAScript (JavaScript)
match any string outside of single or double quotes
Submitted by
anonymous
-
10 years ago
2014-03-08 11:13
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Find 'console.' but not 'console.log'
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
10 years ago
2014-03-06 18:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find UnCommented Console. Code
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
10 years ago
2014-03-06 16:18
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-02-26 14:28
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Splits jquery selector, 2nd part is selector of last element
ECMAScript (JavaScript)
no description available
Submitted by
Uzair Farooq
-
10 years ago
2014-02-24 16:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Singular or Plural
ECMAScript (JavaScript)
no description available
Submitted by
Gavin Jackson
-
10 years ago
2014-02-13 17:03
2
6 upvotes, 4 downvotes (score 31.3%) (You must be signed in to vote)
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
10 years ago
2014-02-10 20:36
-1
4 upvotes, 5 downvotes (score 18.9%) (You must be signed in to vote)
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-02-07 06:19
-2
4 upvotes, 6 downvotes (score 16.8%) (You must be signed in to vote)
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-02-07 06:19
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
10 years ago
2014-01-29 03:45
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
adding space after (.) period and next word
ECMAScript (JavaScript)
Requirement was to check if there is space between . and next text and if not the then add space
Submitted by
Prajkta
-
10 years ago
2014-01-21 09:00
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
US Postal Code
ECMAScript (JavaScript)
refactor
Submitted by
jay johnson
-
10 years ago
2014-01-16 20:27
1
...
277
278
279
280
281
282
Password validation
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
(?=
\S
*
?
[
A
-
Z
]
)
(?=
\S
*
?
[
a
-
z
]
)
(?=
\S
*
?
[
0
-
9
]
)
(?=
\S
*
?
(?:
\W
|
_
)
)
.
{8,}
)
$
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-06-05 21:59