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 15,240 community submitted regex patterns...
2
Svelte: CSS class attribute (Svelte or HTML friendly), class:directive, TailwindCSS classes, and @apply.
ECMAScript (JavaScript)
SvelteComponent Class Directive Matching Also supports TailwindCSS-style @apply directive for the class value. class:directive={boolean} ...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
2
CSS Colors: RGB(A), HSL(A), HEX(3,4,6,8), var(--tw-color), etc...
ECMAScript (JavaScript)
Versatile, multiline matching of CSS colors of many common formats, including: [x] HEX-3: #123 (equivalent to #112233) [x] HEX-4: #FA0F ( ... #FFAA00FF) [x] HEX-6: #FF3300 ( ...#F30) [x] HEX-8: #FFAA00FF ( ...#FA0F)...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
0
8 Characters
PCRE2 (PHP >=7.3)
Must Contain 8 Characters
Submitted by
anonymous
-
3 years ago
0
MyRegexs, Typescript replacers
ECMAScript (JavaScript)
Regex used to text replacment
Submitted by
Nathan
-
3 years ago
0
Match float in string
PCRE2 (PHP >=7.3)
165.1 x 75.6 x 8.9 mm (6.5 x 2.98 x 0.35 in)
Submitted by
anonymous
-
3 years ago
1
Extract everything between TD brackets
PCRE (PHP <7.3)
This is used to extract everything between TD brackets.
Submitted by
<a href="https://www.dug.to">Regex101</a>
-
3 years ago
1
Save everything between <code>...</code> brackets
PCRE (PHP <7.3)
This is what I created to paste in web page source code and regex to extract content between whichever HTML brackets that I choose.. In this case, it's the HTML brackets.
Submitted by
https://dug.to
-
3 years ago
0
小数,两位小数
PCRE (PHP <7.3)
^(0-9*)+(\.[0-9]{1,2})?$
Submitted by
zhanyue
-
3 years ago
0
TrakYu
PCRE2 (PHP >=7.3)
Regex para los protocolos de los dispositivos TracYu
Submitted by
Daniel Meza
-
3 years ago
(Last modified 3 years ago)
0
ппк
PCRE2 (PHP >=7.3)
ППК
Submitted by
anonymous
-
3 years ago
0
Library of Congress Call Numbers
PCRE2 (PHP >=7.3)
Matches Library of Congress Call Number
Submitted by
Andy F
-
3 years ago
0
allow alnum dash and dot
PCRE2 (PHP >=7.3)
alphanumeric, dash, dot
Submitted by
anonymous
-
3 years ago
0
DS validation - overspecced
PCRE2 (PHP >=7.3)
This was, I think built to detect a comma separated decimal. But ended up with a capture group on the decimal part. Don't ask me why.
Submitted by
Russ Ferriday - after DS
-
3 years ago
0
Array matcher from string
PCRE (PHP <7.3)
Array matcher from string
Submitted by
anonymous
-
3 years ago
0
IVR TPlayNextItem::InitMixFormat test
PCRE2 (PHP >=7.3)
UnitTest for Mix play format
Submitted by
anonymous
-
3 years ago
0
molecule elements parser
PCRE (PHP <7.3)
allows to get the sub elements of a molecule symbol and their number.
Submitted by
Quettle
-
3 years ago
0
Not backtrack
PCRE2 (PHP >=7.3)
A example for study backtrack.
Submitted by
anonymous
-
3 years ago
0
Find SendGrid Palceholder
PCRE (PHP <7.3)
Find SendGrid Palceholder
Submitted by
Alain Ranger
-
3 years ago
0
Match CSS border-style values upto 4 allowed keyword
ECMAScript (JavaScript)
Matches CSS border-style property's keyword values upto 4 allowed values.
Submitted by
DelD
-
3 years ago
0
Match length values for CSS properties like border-width upto 4 allowed values
ECMAScript (JavaScript)
Matches upto 4 length values for CSS properties like border-width.
Submitted by
DelD
-
3 years ago
(Last modified 3 years ago)
1
...
128
129
130
131
132
...
762
javascript regex question
0
Regular Expression
ECMAScript (JavaScript)
/
^
[
0[1
-
9
]
{2,3}
-
[
0
-
9
]
{5,10}
$
/
Open regex in editor
Description
问题
Submitted by
anonymous
-
3 years ago