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,840 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
DEMO
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-12 03:28
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
TimezoneOffset
ECMAScript (JavaScript)
parses timezones in the format -08:00 or -8:0
Submitted by
Neha Kadam
-
9 years ago
2014-12-09 07:38
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
TimezoneOffset
ECMAScript (JavaScript)
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
9 years ago
2014-12-09 07:00
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular expression for extracting HTML tag attributes
Java 8
no description available
Submitted by
Amir Arian
-
9 years ago
2014-12-07 08:25
(Last modified 5 months ago)
2023-07-21 11:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Number Input That Supports Simple Math Expressions
ECMAScript (JavaScript)
RegEx matches: '5', '+5', '-5', '5+5', '-5+5', '+5+5', '5+9+7*-2' RegEx doesn't match: '5+', '5-', '5+9-', 'asdfasf5+5'
Submitted by
David Weitzenfeld
-
9 years ago
2014-12-04 19:04
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
match url
ECMAScript (JavaScript)
unsplash.com
Submitted by
anonymous
-
9 years ago
2014-12-03 08:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CVC
ECMAScript (JavaScript)
This will determine that an accurate CVC has been entered
Submitted by
Scott Mebberson
-
9 years ago
2014-12-03 03:57
10
11 upvotes, 1 downvotes (score 64.6%) (You must be signed in to vote)
UUID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-01 17:13
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Common log format datetime
ECMAScript (JavaScript)
Parses the common log format into component elements. According to wikipedia, common log is strftime format %d/%b/%Y:%H:%M:%S %z
Submitted by
Matt Ingenthron <ingenthr@cep.net>
-
9 years ago
2014-11-30 21:17
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
S3 log analysis
ECMAScript (JavaScript)
An updated S3 log analyzer. I found that my logs sometimes had strings quoted, so I needed to add possible handling for that.
Submitted by
Matt Ingenthron <ingenthr@cep.net>
-
9 years ago
2014-11-30 18:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
S3 Access Log Analyzer
ECMAScript (JavaScript)
A javascript regex for parsing an S3 log line.
Submitted by
Matt Ingenthron <ingenthr@cep.net>
-
9 years ago
2014-11-28 23:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
ECMAScript (JavaScript)
test
Submitted by
test
-
9 years ago
2014-11-25 23:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
(|(ou:dn:=a)(ou:dn:=b))
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-24 14:38
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
rfc5646 simple
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-23 21:59
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
first num after rgb
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-19 19:40
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
Telephone Number Simple
ECMAScript (JavaScript)
no description available
Submitted by
Nemesarial
-
9 years ago
2014-11-19 12:01
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Simple Email Validation
ECMAScript (JavaScript)
Does not match everything, but good for a cross-platform validation filter.
Submitted by
anonymous
-
9 years ago
2014-11-17 08:58
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
incorrect number regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-16 05:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple first exercise of a newbie
ECMAScript (JavaScript)
Find a group of 9 letters subdivided in groups of three by a dash.
Submitted by
Nicola Jelmorini
-
9 years ago
2014-11-15 12:31
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
javascript template replacement
ECMAScript (JavaScript)
no description available
Submitted by
akamaozu
-
9 years ago
2014-11-14 06:21
1
...
282
283
284
285
286
287
288
...
292
TX7470 and RX1
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
\x19
A
(
\d
*
)
d
\[
?
(
\d
*
)?
\]
?
(
.
*
)
-
(
\S
+
)
\s
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\x0c
?
(
.
*
)?
\x18
|
\x19
A
(
\d
*
)
d
(
\S
*
)
\s
?
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\x18
|
RECV,4,
(
\d
*
)
,
\[
?
(
\d
*
)?
\]
?
(
.
*
)
-
(
\S
+
)
\s
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
\%
?
0
?
C
?
(
.
*
)?
|
RECV,4,
(
\d
*
)
,
(
\S
*
)
\s
?
(
\d
+
)?
\:
?
(
\w
*
)?
\s
?
\d
?
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 years ago
2019-01-14 13:11