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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 5,680 community submitted regex patterns...
1
Youtube video URL or empty
ECMAScript (JavaScript)
Matches correct youtube video urls and empty strings.
Submitted by
xeon927 on stackoverflow
-
3 years ago
1
RegEx Workshop
ECMAScript (JavaScript)
Phone Number RegEx
Submitted by
Anthony Cooper
-
3 years ago
1
get homepage url from full url
Python
get homepage url from full url
Submitted by
Suraj Shrestha
-
3 years ago
1
Add rgb for colour variables
ECMAScript (JavaScript)
Add rgb for colour variables
Submitted by
anonymous
-
3 years ago
1
Third Strike - SRK Wiki - Any Guard Type
ECMAScript (JavaScript)
xxx
Submitted by
Clay Dunston
-
3 years ago
1
single ling prop to multi line
ECMAScript (JavaScript)
single ling prop to multi line
Submitted by
anonymous
-
3 years ago
1
SQL comments Big Query
Golang
SQL comments on Big Query
Submitted by
anonymous
-
3 years ago
1
CSV CIDR subnets
ECMAScript (JavaScript)
Comma separated CIDR network addresses
Submitted by
Glenn
-
3 years ago
1
Don't match numbers longer than 5 length
Python
using ^ and $
Submitted by
anonymous
-
3 years ago
1
Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier
Python
Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier. Nexus 9xxxx don't have the json output modifier. It's a LINUX based os, so | json would fork a json binary which doesn't exist
Submitted by
skalef
-
3 years ago
(Last modified 3 years ago)
1
Valid RGB color value
ECMAScript (JavaScript)
Pattern for matching actually valid RGB values. validate separator (mixing spaces and commas between values is not valid) validate if comma is used as separator if alpha channel is set validate units (mixing percentage with integers is not valid) extract r, g, b, a, separator and unit with named gr...
Submitted by
BorisTB
-
3 years ago
(Last modified 3 years ago)
1
ss001
Python
Rep
Submitted by
anonymous
-
3 years ago
1
hashtag
ECMAScript (JavaScript)
gfhgfhghfg
Submitted by
anonymous
-
3 years ago
1
Email Address subdomains support
ECMAScript (JavaScript)
It checks email addresses supporting subdomains name@gmail.com name.surname@fda.gov name_surmna05@kernel.org name-surname@redaktion.derspiegel.de...
Submitted by
anonymous
-
3 years ago
1
Parse URLs
Python
A regular expression to parse URLs. Complete with comments.
Submitted by
D. Torres
-
3 years ago
1
Currency amount validation with sign (cents optional)
ECMAScript (JavaScript)
Allows Number: Currency amount US (cents optional) Can use US-style 123,456.78 notation Optional thousands separators; optional two-digit fraction; commas; dollar sign
Submitted by
NatZol
-
3 years ago
1
1
ECMAScript (JavaScript)
1
Submitted by
anonymous
-
3 years ago
1
Remove HTML tags and comments
Python
Remove HTML tags and comments
Submitted by
Smit Patel
-
2 years ago
1
Parse Kubernetes Resource URI Paths
Golang
This regex extracts Kubernetes Resource URIs. Copyright 2021 Mathew Wicks Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License....
Submitted by
Mathew Wicks
-
2 years ago
1
Monkaa Dataset
Python
Parses Monkaa dataset filenames and extracts all the relevant labels
Submitted by
IP
-
2 years ago
1
...
86
87
88
89
90
...
284
TX7470 and RX1
0
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
Working Regex
Submitted by
anonymous
-
5 years ago