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 11,520 community submitted regex patterns...
1
Slash Separated Numbers
Golang
...
Submitted by
Anonymous
-
12 hours ago
1
Telegram username
Python
Validates and obtains the Telegram user's username according to the rules for creating usernames
Submitted by
okineadev
-
9 days ago
(Last modified 5 days ago)
1
Egyptian Phone Numbers regex Checker
Python
To check for Egyptian phone numbers using a regular expression Format of Egyptian phone numbers: It starts with 01 (indicating mobile numbers). Followed by one of the following digits representing the mobile provider: 0 for Vodafone. 1 for Etisalat....
Submitted by
Assem ELQersh
-
15 days ago
1
East pointer, reference and const to west.
Python
just as god intended. "T const" -> "const T"
Submitted by
SpaghettDev
-
a month ago
(Last modified a month ago)
1
Split Docker image into image name, tag and digest with all optional
Golang
Splits a Docker image string into the separate parts: image, tag, digest tag and digest are optional
Submitted by
Roemer
-
a month ago
1
Комментарии функции БСП
Python
Комментарии к функциям 1С
Submitted by
binx@mail.ru
-
2 months ago
1
search *user=.*
Python
for ansible regex_search in docker envs
Submitted by
anonymous
-
2 months ago
3
**japanese text** to bold <b>japanese text</b>
PCRE (PHP <7.3)
japanese text to bold japanese text 食べるんだ 食べるんだ
Submitted by
kurokuroshii
-
2 months ago
(Last modified 2 months ago)
1
RFC3339 Validator
PCRE (PHP <7.3)
RFC3339 Validator
Submitted by
anonymous
-
2 months ago
(Last modified 2 months ago)
1
ORCID iD
Python
The ORCID ID (16-digit identifiers) format checker. Reference: Format of the ORCID iD
Submitted by
Ken Lui
-
2 months ago
1
Catch domains
Python
Catch domains from str. Details see TEST STRING
Submitted by
Casey TSui
-
2 months ago
1
Discord Server Invite, Rust RegEx
Rust
A regular expression for Rust that matches against Discord server invite URLs, but not those without an actual code present. This may be used in Discord's AutoMod feature as it supports up to 10 Rust regular expressions per custom rule.
Submitted by
sepruko
-
3 months ago
1
JS/TS imports of external dependencies
Rust
This regex can be used on a JavaScript/TypeScript file to find imports from third-party packages. This is useful for determining what to put in dependencies/peerDependencies. This is a Rust regex, which makes it easy to use with rg (ripgrep). Pro tip: combine rg with sort -u to get a list of all pac...
Submitted by
Nikita Karamov
-
3 months ago
1
Battlemetrics line fixer
Python
Fixes battlemetrics newline formatting
Submitted by
Neun
-
3 months ago
1
Automod - Discord scam invitations
PCRE (PHP <7.3)
Matches variations of messages commonly used to send Discord scams/hacks. Instructions are written for YAGPDB
Submitted by
paiuxfluens
-
4 months ago
1
Russian car plate for Python
Python
Regex for matching Russian car plate without region
Submitted by
aalexren
-
4 months ago
1
VALID_IP
Python
VALID_IP checker
Submitted by
GSV
-
4 months ago
(Last modified 4 months ago)
1
Distinguish torrent files (series vs movies) with episode numbers
Python
a modified verison of this awesome regex https://regex101.com/library/yP4bY4 by author firas dib that includes a capture group for episode numbers in addition to season numbers.
Submitted by
SethMacKayChandler
-
5 months ago
(Last modified 5 months ago)
1
Date and age matcher
Python
matches strings like: "01/04/2023", "14/May/24" and "20" (age). WARNING: for american dates swap day and month! Groups: Date - the whole date Day - day Month - month...
Submitted by
OlgPok
-
5 months ago
(Last modified 5 months ago)
1
indented lines with continuation
PCRE (PHP <7.3)
Example taken from SO,
Submitted by
anonymous
-
5 months ago
1
2
3
...
576
Community Library Entry
52
Regular Expression
PCRE (PHP <7.3)
/
^
(?'Username'
[
-
\w\d
\.
]
+
?
)
(?:
\s
+
at
\s
+
|
\s
*
@
\s
*
|
\s
*
(?:
[
\[\]
@
]
){3}
\s
*
)
(?'Domain'
[
-
\w\d
\.
]
*
?
)
\s
*
(?:
dot
|
\.
|
(?:
[
\[\]
dot
\.
]
){3,5}
)
\s
*
(?'TLD'
\w
+
)
$
/
gm
Open regex in editor
Description
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
12 years ago