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,440 community submitted regex patterns...
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
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
mm/dd/yyyy Date
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
2014-01-16 20:26
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
Phone area code - prefix - number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-01-16 20:06
1
6 upvotes, 5 downvotes (score 28%) (You must be signed in to vote)
SSN
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
2014-01-16 20:04
-2
3 upvotes, 5 downvotes (score 13.7%) (You must be signed in to vote)
non-negative integer
ECMAScript (JavaScript)
repeat ... refactor
Submitted by
jay johnson
-
10 years ago
2014-01-16 19:16
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
non negative integers
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
2014-01-16 19:10
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
5
11 upvotes, 6 downvotes (score 41.3%) (You must be signed in to vote)
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-01-10 05:30
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
10 years ago
2014-01-05 09:09
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
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Replace second (or further) html statement in a whole code
ECMAScript (JavaScript)
This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.
Submitted by
Caio Oliveira
-
10 years ago
2013-12-29 08:56
1
...
268
269
270
271
272
shift_factor
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
(
\d
+
)
.
+
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Dario Romero
-
6 months ago
2023-05-26 20:53