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
Multiline CSS to one line CSS example (C#)
.NET 7.0 (C#)
Regex that will match/replace unnecessary whitespaces in CSS code.
Submitted by
Puchkov Eugene
-
6 months ago
(Last modified 6 months ago)
1
Automod - "pedophile"
PCRE2 (PHP >=7.3)
Matches "pedophile" and variations, including a few common bypasses.
Submitted by
paiuxfluens
-
6 months ago
(Last modified 4 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
-
6 months ago
1
Wikilink
PCRE2 (PHP >=7.3)
Matches internal Wikimedia/Wikipedia links and captures the article name i.e. captures substance theory
Submitted by
anonymous
-
6 months ago
1
Normalize String 1
PCRE2 (PHP >=7.3)
O regex garante que palavras não tenham sequências de dois números consecutivos e não consistam apenas em números, exigindo pelo menos uma letra.
Submitted by
anonymous
-
6 months ago
1
Battlemetrics line fixer
Python
Fixes battlemetrics newline formatting
Submitted by
Neun
-
6 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
-
6 months ago
1
Fraudulent Gmail Sniffer
PCRE2 (PHP >=7.3)
Detects a when three or more numbers immediately precede "@gmail.com" in an attempt to identify fraudulent spam , spoofing or phishing.
Submitted by
Aaron Miller
-
6 months ago
1
Question Counter
PCRE2 (PHP >=7.3)
Counts number of questions in either a Quiz style, test, etc. multiple options available.
Submitted by
CodeByAidan
-
6 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
-
6 months ago
1
validar nome e sobre nome
PCRE2 (PHP >=7.3)
Silva, João Oliveira, Maria Santos, Pedro Pereira, Ana Ferreira, Lucas Costa, Beatriz...
Submitted by
anonymous
-
6 months ago
1
validar links markdown
PCRE2 (PHP >=7.3)
Regex101 - Uma ferramenta interativa para testar expressões regulares. RegExr - Outra ferramenta online popular para aprender, construir e testar expressões regulares. Regular Expressions Info - Um site completo com informações detalhadas sobre expressões regulares. MDN Web Docs - Regular Expression...
Submitted by
anonymous
-
6 months ago
1
12 to 22 digit fedex numbers
PCRE2 (PHP >=7.3)
This regular expression can be used to extract 12 to 22 digit fedex numbers from a string.
Submitted by
anonymous
-
6 months ago
1
changelog
ECMAScript (JavaScript)
changelog
Submitted by
alexsio nau
-
6 months ago
1
Help
PCRE2 (PHP >=7.3)
please help I'm trying to capture some text parts of a PDF. I have a problem and can't solve it. I need to use a regexReplace, and for that, I need to find the desired item (match), and everything else will be replaced by the match....
Submitted by
anonymous
-
6 months ago
1
Next.js middleware config matcher regex
ECMAScript (JavaScript)
Next.js middleware config matcher regex ~ https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher ~ https://nextjs.org/docs/app/api-reference/file-conventions/middleware#config-object-optional Public - skip middleware /api/auth/*...
Submitted by
iki
-
6 months ago
1
老铁六六六
PCRE2 (PHP >=7.3)
老铁 666 替换老铁六六六
Submitted by
anonymous
-
6 months ago
(Last modified 6 months ago)
1
Match inside content of HTML tags
PCRE2 (PHP >=7.3)
Matches only the text between tags. Change the word tag to any HTML tag you want to match.
Submitted by
anonymous
-
6 months ago
1
Extract all links from HTML / Извлечь все ссылки из HTML
PCRE2 (PHP >=7.3)
Extract all links from HTML including the tag itself and its contents. The content may include other tags, such as H1, img, etc. Извлечь все ссылки из HTML включая сам тег и его содержимое. Содержимое может включать другие теги, например, H1, img и т.д.
Submitted by
a.panarin
-
5 months ago
1
密码
PCRE2 (PHP >=7.3)
必须包含字母数字和特殊字符
Submitted by
anonymous
-
5 months ago
1
...
355
356
357
358
359
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[^
-<>()
\[\]\\
.,;:
\s
@"
]
+
(
\.
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
)*
)
|
(
"
.
+
"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
]
)
|
(
(
[^
-
]
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
5 years ago