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 18,040 community submitted regex patterns...
1
Rècupère les différents liens de nitro discord
PCRE2 (PHP >=7.3)
Rècupère les différents liens de nitro discord
Submitted by
M1000.fr#0008
-
3 years ago
1
Rècupère les différents liens d'invitation de serveur discord
PCRE2 (PHP >=7.3)
Rècupère les différents liens d'invitation de serveur discord
Submitted by
M1000.fr#0008
-
3 years ago
1
ew
PCRE2 (PHP >=7.3)
ee
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
Email
PCRE2 (PHP >=7.3)
Regex simples para verificação de email
Submitted by
anonymous
-
3 years ago
1
Fetch "text A (text B)" or "text A (text B (text C))"
PCRE2 (PHP >=7.3)
How do I extract then some text A, some text B and some text C if they are in the format some text A ( some text B ( some text C)) Please mind that in some cases may be only some text A ( some text B)...
Submitted by
anonymous
-
3 years ago
1
/(# .*)(&𝗐𝖾𝗀𝗈)/𝗀𝗆
PCRE2 (PHP >=7.3)
/(# .*)(&𝗐𝖾𝗀𝗈)/𝗀𝗆
Submitted by
anonymous
-
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
Match Windows filename in any path but only C: D: and F: drives
Java 8
Used for Service Discovery in vRealize Operations. Use case is a service that can be installed on any path, but we only want to discover and monitor services installed on standard production drives (C, D or F). Filename will always be the same.
Submitted by
Various
-
3 years ago
1
Backtracking Test
PCRE2 (PHP >=7.3)
Submitted by
farhan
-
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
trino kill query
PCRE2 (PHP >=7.3)
trino kill query
Submitted by
anonymous
-
3 years ago
1
trino kill query ID
PCRE2 (PHP >=7.3)
trino kill query ID
Submitted by
anonymous
-
3 years ago
1
Sutthinart
PCRE2 (PHP >=7.3)
Private Regex Library
Submitted by
Sutthinart Khunvadhana
-
3 years ago
1
match all between quotes
PCRE2 (PHP >=7.3)
this matches everything between quotation marks, the \" can be changed into whatever you need
Submitted by
anonymous
-
3 years ago
1
matches commas not before, after or between digits
PCRE2 (PHP >=7.3)
this matches all commas except for ones that are next to a digit in some way. change the , or \d or \D according to needs
Submitted by
anonymous
-
3 years ago
1
Conteúdo de Tag
PCRE2 (PHP >=7.3)
Captura o conteúdo do Lang do Twig. Serve pra qualquer conteúdo de tags.
Submitted by
Marcelo Gomes
-
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
11
Java 8
11
Submitted by
11
-
3 years ago
1
...
265
266
267
268
269
...
902
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
^
rgba
?
\(
(?:
\s
+
)?
(?<r>
\d
+
(?<unit>
%
?
)
)
(?:
\s
+
)?
(?<separator>
[
\s
|,
]
)
(?:
\s
+
)?
(?<g>
\d
+
\k<unit>
)
(?:
\s
+
)?
\k<separator>
(?:
\s
+
)?
(?<b>
\d
+
\k<unit>
)
(?:
\s
+
)?
(?:
(?<=
(?:
,
.
+
)
)
(?:
,
(?:
\s
+
)?
(?<a>
(?:
\d
+
)?
(?:
\.
?
\d
+
)
)
)?
(?:
\s
+
)?
)?
\)
$
/
gm
Open regex in editor
Description
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 groups
Submitted by
BorisTB
-
3 years ago
(Last modified 3 years ago)