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 20 community submitted regex patterns...
1
Get python function declaration
Rust
Gets the python function declarations
Submitted by
anonymous
-
2 years 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
-
2 years ago
1
Rust Phone Number
Rust
not fully featured, but simple.
Submitted by
Jakersnell
-
a year 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
-
a year 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
-
a year ago
(Last modified a year 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
-
a year ago
(Last modified a year 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
-
a year ago
(Last modified a year 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
-
8 months ago
(Last modified 8 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
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
AOC 2024 D3 regex
Rust
The regex to be used in both parts of adventofcode.com 2024 day 3 puzzle
Submitted by
dragmine149
-
20 days ago
1
Discord emoji & Markdown links
Rust
NOTE The word text is used to substitute all alphanumeric characters as well as underscores ([a-zA-Z0-9_]). Captures: ...
Submitted by
anonymous
-
9 days ago
(Last modified 9 days 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
-
2 years ago
(Last modified 2 years ago)
-2
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
2 years ago
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
(?:
A
|
B
|
C
|
D
|
E
|
1
\)
|
2
\)
|
3
\)
|
4
\)
|
5
\)
){0,1}
(?:
\:
|
\.
|
\
){0,1}
[^
0
-
9
]
{0,2}
(
(?:
[
\d
]
{1,2}
[
\s
|
\+
]
{1}
){0,4}
[
\d
]
{1,2}
)
[
\s
]
{0,1}
\*
[
\s
]
{0,1}
(
(?:
[
\d
]
{1,2}
\+
[
\s
]
{0,2}
){0,98}
[
\d
]
{1,2}
)
(?!
[
\+
|
\-
|
\d
]
)
[
\s
]
{1,3}
(
(?:
[
\d
]
{1,2}
\+
){0,98}
[
\d
]
{1,2}
)
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
7 years ago