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 2,760 community submitted regex patterns...
1
Gitlab - Commit message
PCRE2 (PHP >=7.3)
Commit message for Gitlab's Push Rules
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
1
aws-arn-parser
PCRE2 (PHP >=7.3)
this helps in parsing aws arn's
Submitted by
anonymous
-
3 years ago
1
Markdown checkboxes
PCRE2 (PHP >=7.3)
Match checkboxes that haven't been checked and are not followed by a footnote or crossed out text
Submitted by
heygarrett.com
-
3 years ago
1
find http urls in data-full-url attribute
PCRE2 (PHP >=7.3)
This parses http url's from the data-full-url attribute of a block of code
Submitted by
Kelvin Spencer
-
3 years ago
1
One or more spaces
PCRE2 (PHP >=7.3)
Find one or more spaces
Submitted by
anonymous
-
3 years ago
1
Nombres en mayusculas
PCRE2 (PHP >=7.3)
Nombres en mayúsculas Permite filtrar palabras de nombres con mayúsculas y tildes. Incluye la ñ para Latinoamérica.
Submitted by
macorreag
-
3 years ago
1
Email obfuscation
PCRE2 (PHP >=7.3)
An expression that obfuscates with * following this rule: @. Example: Input: eagles.willys@willbethebest.co.uk...
Submitted by
Ernesto Janebro
-
3 years ago
1
nginx - all subdomain except "api, panel and ..."
PCRE2 (PHP >=7.3)
is used for nginx nameserver regex. pass all except some subdomains.
Submitted by
Mahdad
-
3 years ago
1
find img without alt
PCRE2 (PHP >=7.3)
okok
Submitted by
anonymous
-
3 years ago
1
Match the start of a link.
PCRE2 (PHP >=7.3)
https:// http:// https://\/\/ https:\/\/\/\/\/\ https://\/\/ ...
Submitted by
anonymous
-
3 years ago
1
Check special character except alpha_num
PCRE2 (PHP >=7.3)
Check special character except alpha_num
Submitted by
anonymous
-
3 years ago
1
Validate Float
PCRE2 (PHP >=7.3)
Non scientific float numbers validator
Submitted by
Tanmay Chakrabarty - cse.tanmay@gmail.com
-
3 years ago
1
hdfilmcehennemi ana filmler
PCRE2 (PHP >=7.3)
nothing
Submitted by
no one
-
3 years ago
1
Append _if to archive.org's links
PCRE2 (PHP >=7.3)
A regex to remove the iframe from archive.org in archived sites' links.
Submitted by
anonymous
-
3 years ago
1
List of regex for spell replacing
PCRE2 (PHP >=7.3)
Nothing interesting
Submitted by
Luke
-
3 years ago
1
Asset Market
PCRE2 (PHP >=7.3)
Asset market/exchange tests
Submitted by
anonymous
-
3 years ago
1
Minify JSON while protecting string value whitespace
PCRE2 (PHP >=7.3)
I use it so that I don't need to worry about formatting when working with unit tests in Kotlin, which means I don't worry too much about whether this is production quality, but it could be useful in other situations where the desire is to strip whitespace from a JSON object while protecting the valu...
Submitted by
anonymous
-
3 years ago
1
Mine
PCRE2 (PHP >=7.3)
smth
Submitted by
anonymous
-
3 years ago
1
Search for a date (Y/m/d or d/m/Y)
PCRE2 (PHP >=7.3)
Search for a date in a text.
Submitted by
globdug
-
3 years ago
1
Search for word breaks in CamelCase string
PCRE2 (PHP >=7.3)
This finds the boundaries of words in a camel case string
Submitted by
https://stackoverflow.com/questions/7593969/regex-to-split-camelcase-or-titlecase-advanced
-
3 years ago
1
...
5
6
7
8
9
...
138
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
^
(?>
(?'protocol'
[
a
-
zA
-
Z
]
+
)
://
)?
(?'domain'
[
a
-
zA
-
Z0
-
9.
\-
_
]
*
)?
(?>
:
(?'port'
\d
{1,5}
)
)?
/
(?'path'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
(?:
(?>
\?
(?'query'
[
a
-
zA
-
Z0
-
9_
\-
=&%
]
+
)
)
(
)
|
(?>
#
(?'anchor'
[
a
-
zA
-
Z0
-
9_
\-
%
]
+
)
)
(
)
){0,2}
$
"
gm
Open regex in editor
Description
Matches protocol, domain, port, path, query and anchor as named capturing groups.
Submitted by
Jonathan
-
a year ago
(Last modified a year ago)