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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 6,400 community submitted regex patterns...
0
ФИАС - Разделение адреса из справочника 1С
ECMAScript (JavaScript)
ФИАС 2:ГАР Regex101 ESTSTAT - статус дома STRSTAT - статус строения [ESTSTAT]{[Номер]}{{[Корпус]}{[STRSTAT]~[Номер]}}...
Submitted by
Virenbar
-
3 years ago
0
pali word not in html tag
PCRE2 (PHP >=7.3)
pali word not in html tag
Submitted by
pndaza
-
3 years ago
(Last modified 3 years ago)
0
check regext number and anything.
PCRE2 (PHP >=7.3)
check regex number and anything.
Submitted by
Claudio Santos
-
3 years ago
(Last modified 3 years ago)
0
First Name with special characters, optional hyphen
ECMAScript (JavaScript)
First name validator - minimum 2 characters, optional hyphen, 2 or more characters
Submitted by
Jeff Zinn
-
3 years ago
0
najit cenu
PCRE2 (PHP >=7.3)
tmp
Submitted by
anonymous
-
3 years ago
0
LaTeX matrix/table newline
PCRE2 (PHP >=7.3)
This regex matches newlines in LaTeX matrices/arrays/tabulars and adds \\ automatically.
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Кадастровый номер
ECMAScript (JavaScript)
Проверка правильности кадастрового номера
Submitted by
Virenbar
-
3 years ago
(Last modified 3 years ago)
0
Unicode pattern
PCRE2 (PHP >=7.3)
匹配Unicode
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
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
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
Sutthinart
PCRE2 (PHP >=7.3)
Private Regex Library
Submitted by
Sutthinart Khunvadhana
-
3 years ago
1
trino kill query ID
PCRE2 (PHP >=7.3)
trino kill query ID
Submitted by
anonymous
-
3 years ago
1
trino kill query
PCRE2 (PHP >=7.3)
trino kill query
Submitted by
anonymous
-
3 years ago
1
hashtag
ECMAScript (JavaScript)
gfhgfhghfg
Submitted by
anonymous
-
3 years ago
1
Backtracking Test
PCRE2 (PHP >=7.3)
Submitted by
farhan
-
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
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)
0
Feet to inches converter
PCRE2 (PHP >=7.3)
This only works in Google sheets. The test string is a sheets formula that converts feet inches in this into the total number of inches.
Submitted by
randywolf244
-
3 years ago
0
Word Tokenizer
ECMAScript (JavaScript)
Word Tokenizer
Submitted by
anonymous
-
3 years ago
1
...
143
144
145
146
147
...
320
Valid RGB color value
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)