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
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
-
3 years ago
(Last modified 3 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
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
HTML TAG WITH VALUE AND CHILDREN
ECMAScript (JavaScript)
This regex target each html tag with their children and their value
Submitted by
Florian Caron
-
2 years ago
1
13-16 digit credit card
PCRE2 (PHP >=7.3)
Finds a number that is 13-16 digits long. Can have spaces or hyphens in between the numbers and will still be found.
Submitted by
Spencer Curtis
-
2 years ago
(Last modified 2 years ago)
1
File extension
ECMAScript (JavaScript)
Retrieve the file extension of a filename
Submitted by
anonymous
-
2 years ago
1
Detect zoom meeting links
PCRE2 (PHP >=7.3)
Find zoom links in text
Submitted by
Artyom Ivanov
-
2 years ago
1
Remove trailing commas of PHP array and functions
ECMAScript (JavaScript)
This expression looks for sequences of PHP arrays, either closed with ] or ) with unnecessary trailing commas and captures the content divided into three parts, except by the comma itself. You can use it to search an replace in editors like VSCode like this: Search: ([\])]),(\s\n\s*)([\])]) Replac...
Submitted by
Mateus Machado Luna
-
2 years ago
1
...
802
803
804
805
806
...
900
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
.
*
^
(?=
.
{8,}
)
(?=
.
*
[
a
-
z
]
)
(?=
.
*
[
A
-
Z
]
)
(?=
.
*
[
0
-
9
]
)
(?=
.
*
\W
)
.
*
/
gm
Open regex in editor
Description
be at least 8 characters with at least 1 Capital , 1 Lowercase , 1 special char , 1 number
Submitted by
founet
-
3 years ago