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,000 community submitted regex patterns...
1
RGB 256 Color Format: Matches 24bit RGB Colors.
ECMAScript (JavaScript)
There are several ways to format 24bit RGB Colors, however, two of the formats are far more common in the wild than others. The 2 most common 24bit RGB formats are | FORMAT | Alt Name | Num Sys | | ------------------------ | -------------- | ------------ | | RGB Hex Format | HexColo...
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Password policy (password requires three out of the four character types)
PCRE (PHP <7.3)
A password must consist of at least fifteen characters. A password must contain a character from at least three of the following four sets: A-Z a-z 0-9 !@#$%^&*_-+=?|\/(){}[]:,.;...
Submitted by
RGT, Mast
-
3 years ago
1
提取步骤1
ECMAScript (JavaScript)
提取步骤1
Submitted by
liangchao
-
3 years ago
(Last modified 3 years ago)
1
solidity version detections
PCRE (PHP <7.3)
Given example text in 0.6.12+commit.27d51765. Now we need to extract the version number from the text.
Submitted by
jjhesk
-
3 years ago
1
Imperva audit log regex
PCRE2 (PHP >=7.3)
Contains regex to parse the CockroachDB SQL audit log file
Submitted by
Lesley Miller
-
3 years ago
1
command df -T on linux
PCRE2 (PHP >=7.3)
command df -T on linux udev devtmpfs 65928068 0 65928068 0% /dev tmpfs tmpfs 13190576 304608 12885968 3% /run /dev/mapper/pve-root ext4 98559220 50337808 43171864 54% / tmpfs tmpfs 65952876 46800 65906076 1% /dev/shm...
Submitted by
Saulo Costa
-
2 years ago
(Last modified 2 years ago)
1
array path
ECMAScript (JavaScript)
Extract the array path from a nested path
Submitted by
anonymous
-
2 years ago
1
Match HMTL/WXML tag and class
ECMAScript (JavaScript)
Match HMTL/WXML tag and class
Submitted by
ice breaker
-
2 years ago
1
Notes in markdown with underscore
ECMAScript (JavaScript)
I use it to find mark down note that I wrote with an _when I meant to use an *
Submitted by
charliecalvert
-
2 years ago
1
Custom Commit ReGex
PCRE2 (PHP >=7.3)
Custom Commit ReGex Test
Submitted by
Kewal Rathod
-
2 years ago
(Last modified 2 years ago)
1
Links
PCRE2 (PHP >=7.3)
Beginner way to highlight links
Submitted by
anonymous
-
2 years ago
1
Match range [1 ... 9999.99]
PCRE (PHP <7.3)
This helps matching numbers where decimals are optional
Submitted by
AndrewEastwood
-
2 years ago
1
Grab first sentence from multi-line text
PCRE2 (PHP >=7.3)
Using to extract PhpDoc summary. Note: PhpDoc must be trimmed at left (' ' and '*' are removed).
Submitted by
WinterSilence
-
2 years ago
1
Illumina sample ID regex
PCRE2 (PHP >=7.3)
regular expression for illumina sequencer sample ids. sample Ids are alpha numeric with no more than two dashes or underscores and no underscores or dashes in the beginning or end of the sample id.
Submitted by
anonymous
-
2 years ago
1
Polynom
PCRE (PHP <7.3)
Regex to get polynomial coefficients
Submitted by
Balandin Igor
-
2 years ago
1
Street names in Germany
ECMAScript (JavaScript)
Validates street names of Germany.
Submitted by
Chandru Naik
-
2 years ago
1
HTML Regex
Python
HTML Pattern Recursively use this pattern to match HTML content. This pattern will match Hello World and return a groupdict of tag, body and attribute data. Then you can use this pattern on the body to parse nested HTML tags as well.
Submitted by
GrandMoff100
-
2 years ago
1
(experimental) strip whitespace and linebreaks between HTML tags
ECMAScript (JavaScript)
Basic expression to match and/or remove whitespace and linebreaks between HTML tags via JavaScript (ECMAScript). [x] respects whitespace between ` and ` tags [x] matches multiple lines around words, but not between them [x] totally not safe for use in a production environment ;) ...
Submitted by
Nicholas Berlette (https://github.com/nberlette)
-
2 years ago
0
CSS font-face rules for embedded webfonts (base64-encoded woff/woff2)
ECMAScript (JavaScript)
var FONTFACE_PATTERN = /(?:^|)(?:(?<=(?:font-family[:] ?))'"['"]|(?<=(?:font-weight[:])) ?(.+?)|(?<=(?:font-style[:])) ?(.+?)|(?<=src: ?url[(])(?:['"]?data:(.+?);,[,])(.+?)(?:['"]?[)])(?:[\n\s ]?format((\S+)'"])?)(?:;)(?:|$)/mdg Rudimentary pattern for matching base64-embedded webfonts in CSS style...
Submitted by
Nicholas Berlette (@nberlette)
-
2 years ago
1
Codeblocks
ECMAScript (JavaScript)
Combat md.replace(regex, "") and md.replace("`", "") to replace Markdown codeblocks with HTML ones
Submitted by
Rix
-
2 years ago
1
...
317
318
319
320
321
...
900
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(
(?=
.
*
\d
)
(?=
.
*
[
a
-
z
]
)
(?=
.
*
[
A
-
Z
]
)
|
(?=
.
*
\d
)
(?=
.
*
[
a
-
zA
-
Z
]
)
(?=
.
*
[
!@#$%
\^
&
\*\_\-
+=
\?
|
\/\(\)\\
{}
\[\]
:<>,
\.
;
]
)
|
(?=
.
*
[
a
-
z
]
)
(?=
.
*
[
A
-
Z
]
)
(?=
.
*
[
!@#$%
\^
&
\*\_\-
+=
\?
|
\/\(\)\\
{}
\[\]
:<>,
\.
;
]
)
)
(?=
\S
+
$
)
.
{15,}
/
gm
Open regex in editor
Description
A password must consist of at least fifteen characters.
A password must contain a character from at least three of the following four sets:
A-Z
a-z
0-9
!@#$%^&*_-+=?|/(){}[]:<>,.;
No whitespaces
Submitted by
RGT, Mast
-
3 years ago