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,040 community submitted regex patterns...
1
Grabbing custom structure from markdown
PCRE2 (PHP >=7.3)
:)
Submitted by
anonymous
-
3 years ago
1
HTML注释
ECMAScript (JavaScript)
HTML注释
Submitted by
anonymous
-
3 years ago
1
password
ECMAScript (JavaScript)
Your password should include at least 8 characters, uppercase and lowercase letters, numbers and at least one special character.
Submitted by
Paveldev
-
3 years ago
1
Identify a web URL - non ftp
Python
From any text identify a web url. File or ftp urls are not a part of the regex.
Submitted by
wongz - https://stackoverflow.com/a/63022807/326835
-
3 years ago
1
same vowel start & end
PCRE2 (PHP >=7.3)
/^[aeiou].*[aeiou]$/
Submitted by
anonymous
-
3 years ago
1
Domain Validator
PCRE2 (PHP >=7.3)
Regex to validate domain/website
Submitted by
Amir hossein Karimi
-
3 years ago
1
Sign-In with Ethereum
ECMAScript (JavaScript)
This is the complete Sign-In with Ethereum RegExp implementation
Submitted by
anonymous
-
3 years ago
1
Telegram username link
Python
a pattern to detect telegram username link or tag
Submitted by
anonymous
-
3 years ago
1
Regular expression for capturing dates and date ranges.
Java 8
A proof of concept regex that captures dates and date ranges with a variety of separators. Works with both DMY and MDY, and if one is not needed, it can be easily deleted from the regex. The full variety of months needs to be implemented by the programmer themselves since developing it in regex101...
Submitted by
Matey Krastev
-
3 years ago
1
Get first move and depth from Stockfish output
PCRE2 (PHP >=7.3)
Stockfish output contains longer form containing the square of departure. Buggy with anything other than pawn.
Submitted by
Stockcat
-
3 years ago
1
PHP PDO debugDumpParams parse as sql.
PCRE2 (PHP >=7.3)
解析php pdo 的 debugDumpParams 输出的数据。
Submitted by
anonymous
-
3 years ago
1
phone regex
ECMAScript (JavaScript)
phone regex
Submitted by
antiai
-
3 years ago
1
refactoring
PCRE2 (PHP >=7.3)
for refactoring Kotlin tests
Submitted by
nikita.bols
-
3 years ago
(Last modified 3 years ago)
1
Extract strings between 2 delimiters
PCRE2 (PHP >=7.3)
Extract strings between a delimiter (",") or between a tabulation and a cr Example : toto@gmail.com,yoda@testmail.fr,foo@dugenou.com This expression will return bold e-mails
Submitted by
anonymous
-
3 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
-
3 years ago
(Last modified 3 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 | HexColo...
Submitted by
anonymous
-
3 years ago
(Last modified 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
-
3 years ago
(Last modified 3 years ago)
1
...
779
780
781
782
783
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?P<dst_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)?
,
?
(?P<User>
[
a
-
zA
-
Z._
\d
]
+
)
,
(?P<src_ip>
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
:
(?<ID>
\d
+
)
/
gm
Open regex in editor
Description
This regular expression can be used in SIEM or scripts to extract special fields such as:
Submitted by
EskiSlav
-
3 years ago
(Last modified 3 years ago)