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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 20 community submitted regex patterns...
-2
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
a year ago
-1
Grep from A to B
Rust
no description available
Submitted by
anonymous
-
4 years ago
(Last modified a year ago)
0
Unicode Hexadecimal
Rust
Find hexadecimal numbers using Extended Unicode Support.
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Get python function declaration
Rust
Gets the python function declarations
Submitted by
anonymous
-
a year ago
1
Prometheus Exposition metric line
Rust
Prometheus exposition metric line format. Parses metric lines with named capture groups for metric name, labels, value, and timestamp. Excludes comment, type, and help lines. https://prometheus.io/docs/instrumenting/exposition_formats/#line-format
Submitted by
james-jra
-
a year ago
1
Rust Phone Number
Rust
not fully featured, but simple.
Submitted by
Jakersnell
-
10 months ago
1
Rust type-like ident casing
Rust
Matches built-in primitives and identifiers with casing conventionally used for type/constant names.
Submitted by
Neel Yadav
-
10 months ago
1
Discord Anti-Advertisement 2
Rust
Pair this with my Discord AutoMod Anti Advertisement for full protection against invites. Use this with Discord's Built In AutoMod.
Submitted by
dogknife
-
9 months ago
(Last modified 7 months ago)
1
Discord Anti Advertisement
Rust
Discord AutoMod Regex Use this Regex with Discord's built-in automod to prevent all invite URLs. This will block discord.gg/ad but not .gg/ad Consider seeing my "strict" version otherwise.
Submitted by
dogknife
-
9 months ago
(Last modified 7 months ago)
1
Discord AutoMod Advert (Strict)
Rust
Use this with Discord automod. Bear in mind, this is "Strict" because it will block discord.gg/myad AND other links such as dsc.gg/myad
Submitted by
dogknife
-
9 months ago
(Last modified 7 months ago)
1
"fake" markdown link detection
Rust
This regex catches markdown links where the display text is also a link, like this: \example.com in order to prevent people getting tricked and clicking on a link that isn't what it says it is. See the test string for a much longer explanation with examples.
Submitted by
Osh
-
4 months ago
(Last modified 4 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
-
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
-
2 months ago
email
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
@
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
\.
(
[
a
-
zA
-
Z
]
{2,5}
){1,25}
)+
(
[
;.
]
(
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
@
(
[
a
-
zA
-
Z0
-
9_
\-\.
]
+
)
\.
(
[
a
-
zA
-
Z
]
{2,5}
){1,25}
)+
)*
$
/
gm
Open regex in editor
Description
list of email
Submitted by
anonymous
-
a year ago