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
Community Patterns
Search among 5,680 community submitted regex patterns...
1
Telegram username link
Python
a pattern to detect telegram username link or tag
Submitted by
anonymous
-
2 years ago
1
phone regex
ECMAScript (JavaScript)
phone regex
Submitted by
antiai
-
2 years ago
1
RGB Colors in Hex Format: 3 or 6 Hexadecimal Digits
ECMAScript (JavaScript)
Matches against RGB (not to be confused with RGBa). Will match against any and all RGB Hexadecimal Formatted colors. Some example of the values this regular expression was created to match are: "#FFFFFF", "#FFF", "#ABCDEF", "#123456", "#18F", "#812" MUST USE THE 'i' FLAG (insensitive) Without the ...
Submitted by
jD3V
-
2 years ago
(Last modified 2 years ago)
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 | HexColor...
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
提取步骤1
ECMAScript (JavaScript)
提取步骤1
Submitted by
liangchao
-
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
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
File extension
ECMAScript (JavaScript)
Retrieve the file extension of a filename
Submitted by
anonymous
-
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
Changelog
ECMAScript (JavaScript)
Find and change changelog version numbers in a CHANGELOG.md file.
Submitted by
Joshua
-
2 years ago
1
Números decimales y exponenciales aislados
Python
Hace coincidir números decimales y exponenciales aislados para el sistema de numeración decimal. 22e22 22e+22 +22e22 +22e+22 22.22 22. .22 22.e22 22.e+22 22.22e22 22.22e+22 .22e22 .22e+22 88e 88e+ e88 e+88 88e88.
Submitted by
Johnny Alonso
-
2 years ago
(Last modified 2 years ago)
1
Regex de validação de número celular e fixo | JS (ECMAScript)
ECMAScript (JavaScript)
Regex validação número celular e fixo Somente números nacionais Com ou sem DDI 55 (com ou sem + e/ou 00) DDD obrigatório (com ou sem parênteses) Com ou sem Dígito 9...
Submitted by
anonymous
-
2 years ago
1
telephone_founder
Python
with obfuscation
Submitted by
anonymous
-
2 years ago
1
Get IDs from Discord message link
ECMAScript (JavaScript)
This regex captures the IDs in a message link in separate capture groups. Warning: Due to my personal use case, it doesn't care if it's a real Discord message URL. You can pretty easily add that yourself if you need it tho. Capturing groups: Match 1: The whole ID string starting with / and may be e...
Submitted by
SIMPLE MARK
-
2 years ago
1
...
88
89
90
91
92
...
284
iso8601 duration
0
Regular Expression
ECMAScript (JavaScript)
/
^
P
(
\d
+
(
[
,
\.
]
\d
+
)?
Y
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
M
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
D
)?
(
T
(
\d
+
(
[
,
\.
]
\d
+
)?
H
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
M
)?
(
\d
+
(
[
,
\.
]
\d
+
)?
S
)?
)?
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago