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 3,080 community submitted regex patterns...
1
extract <*n or <n where n is a number
Golang
see https://stackoverflow.com/questions/76228402/regex-to-extract-n-where-n-is-digit
Submitted by
code_monk
-
2 years ago
1
prod validation
PCRE2 (PHP >=7.3)
valid prod
Submitted by
CW
-
2 years ago
(Last modified 2 years ago)
1
Discord GuildEmoji
PCRE2 (PHP >=7.3)
Matches a custom emoji from discord. Group 1: Optional, "a" means animated, a gif. Group 2: Emoji Name. Group 3: Emoji Id;
Submitted by
revelcw
-
2 years ago
1
wip; 匹配malloc申请的内容和使用的不一致
PCRE2 (PHP >=7.3)
匹配malloc申请的内容和使用的不一致
Submitted by
zyf
-
2 years ago
1
Home
Golang
Dj dus er geen je een je aan je enige eerst een he we er
Submitted by
Webmaster
-
2 years ago
1
Four-Digit Leap Years post-Y0 (AD/BCE) (Museum of Bad Data)
PCRE2 (PHP >=7.3)
This will match all four-digit years that are leap years, using the "either (multiple of four but not a multiple of 100) OR (multiple of 400)" rule. Explained / ^(...
Submitted by
Philip Flip Kromer
-
2 years ago
(Last modified a month 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
URL Cleaner
PCRE2 (PHP >=7.3)
It just cleans up urls.
Submitted by
anonymous
-
2 years ago
(Last modified a year ago)
1
Wikipedia ISO 4217 (Currency Codes) table to C# enum
.NET 7.0 (C#)
This converts the values in this) table to C# code. Example: pulic enum Iso4217 { /* output here */...
Submitted by
Diemaco
-
2 years ago
1
Clean Date Finder
PCRE2 (PHP >=7.3)
Find dates of multiple formats in a clean way Searchable Formats: -Month day year -Month day, year -Mon day year...
Submitted by
anonymous
-
2 years ago
1
3 letter word finder
PCRE2 (PHP >=7.3)
finds any 3 letter words in a text
Submitted by
anonymous
-
2 years ago
1
ESET PROTECT Cloud domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET PROTECT Cloud domains for exclusion from DNS logs
Submitted by
kernelmustard
-
a year ago
1
ESET INSPECT Cloud domains (HTTP)
PCRE2 (PHP >=7.3)
Match ESET INSPECT Cloud domains for exclusion from HTTP logs
Submitted by
kernelmustard
-
a year ago
(Last modified a year ago)
1
ESET DNS Load Balancer domains (DNS)
PCRE2 (PHP >=7.3)
Match ESET DNS Load Balancer domains for exclusion from DNS logs
Submitted by
kernelmustard
-
a year ago
1
all email types
PCRE2 (PHP >=7.3)
work@ing.yes
Submitted by
Stormyz
-
a year ago
1
check simple code
PCRE2 (PHP >=7.3)
Check simple codes between 1 and 5 numbers: 281, 81992, 18, 829a7, 8299192
Submitted by
Stormyz
-
a year ago
1
Emails regex
PCRE2 (PHP >=7.3)
This regex will validate pretty much every mail that could exist. It allows aliases and tags in the mail, therefore the mail can contain one or more dots and/or "+" signs (Exemple: exemple.test.alias+tag+tag2). It also allows Internationalized Domain Names (IDNs) (Exemple: @café.com), subdomains (Ex...
Submitted by
Skyle
-
a year ago
(Last modified a year ago)
1
identify and extract Laravel-style route parameters
PCRE2 (PHP >=7.3)
Extracts a table/model name, and optionally a column name. Enforces well-formed parameters. Tested with /category/{aYes:bYes}/{cYes}/{dNo:}/{eNo:/{:fNo}
Submitted by
Martin Holt
-
a year ago
1
in-addr.arpa to IPv4
PCRE2 (PHP >=7.3)
Converts in-addr.arpa hostnames to IPv4 e.g. 1.0.0.127.in-addr.arpa to 127.0.0.1
Submitted by
BitesizedLion
-
a year ago
1
Single line of .env file
PCRE2 (PHP >=7.3)
Parse a single line of a .env file From repo dotenv - source code here.
Submitted by
Mot (https://github.com/motdotla)
-
a year ago
1
...
16
17
18
19
20
...
154
Community Library Entry
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
a year ago