Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 5,960 community submitted regex patterns...
1
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
11 years ago
0
Splits jquery selector, 2nd part is selector of last element
ECMAScript (JavaScript)
no description available
Submitted by
Uzair Farooq
-
11 years ago
1
Singular or Plural
ECMAScript (JavaScript)
no description available
Submitted by
Gavin Jackson
-
11 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
11 years ago
-1
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-2
email
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
3
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
11 years ago
0
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
-
11 years ago
2
US Postal Code
ECMAScript (JavaScript)
refactor
Submitted by
jay johnson
-
11 years ago
3
mm/dd/yyyy Date
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
0
Phone area code - prefix - number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
SSN
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
-2
non-negative integer
ECMAScript (JavaScript)
repeat ... refactor
Submitted by
jay johnson
-
11 years ago
1
non negative integers
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
15
us postal/zip
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
5
Accept url without www
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
11 years ago
7
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
11 years ago
1
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
-
11 years ago
1
regular expression to replace except text from html tags
ECMAScript (JavaScript)
expression to look for words in innerText & not in html tags as id or class or style name
Submitted by
umarfarukh
-
11 years ago
1
...
295
296
297
298
Community Library Entry
0
Regular Expression
Python
r"
(
```
|
`
)
(
python
)?
\s
*
?
\n
?
(
from
\S
+
)?
import
\S
+
(
\n.
*
?
;
)*
\n
(
(
.
*
return
\S
+
```
)
|
(
`return
\S
+
`
)
)
"
gm
Open regex in editor
Description
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
-
a year ago