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 2,780 community submitted regex patterns...
2
Mime type parser
.NET 7.0 (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
2 years ago
(Last modified 2 years ago)
2
Discord Username (old & new)
PCRE2 (PHP >=7.3)
Accomodate for Discord's username changeover and match against either the old username or the new username. But only one or the other. Match: CesarHvl#9000 cesarhvl cesar.hvl...
Submitted by
cesarhvl
-
a year ago
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
3 years ago
1
PHP North American Phone Number
PCRE2 (PHP >=7.3)
Format phone numbers to look nice! E.g. 12345678900 --> +1(234)-567-8900 Matches with most ways numbers are stored 1.234.567.8900 1 234 567 8900...
Submitted by
Mendel Groner
-
3 years ago
1
Password - mot de passe
PCRE2 (PHP >=7.3)
1 caractère minuscule minimum 1 caractère majuscule minimum 1 chiffre minimum 1 caractère spécial minimum pas d'espace 8 caractères minimum en tout
Submitted by
Sofiane
-
2 years ago
1
Exponential Value Identification
PCRE2 (PHP >=7.3)
Exponential Value Identification
Submitted by
Nimit Bhagat
-
2 months ago
1
Chercher un Prénom ou un Nom
.NET 7.0 (C#)
no description available
Submitted by
anonymous
-
8 years ago
(Last modified a year ago)
1
Word Wrap examples
PCRE2 (PHP >=7.3)
Four examples of word wrapping at the 80 character mark, each one taking fewer steps than the last. Comment and uncomment lines with # to see the difference between versions. Optimization discussions welcome!
Submitted by
OnlineCop
-
7 years ago
(Last modified a year ago)
1
Regular expression for parsing VK.com links.
PCRE2 (PHP >=7.3)
no description available
Submitted by
ZKelo
-
5 years ago
(Last modified 2 years ago)
1
PHP Class Capture Groups from symbol string for Class, Namespace, Operation (Mutator or Accessor), Target and Method Names
PCRE2 (PHP >=7.3)
The is helpful for parsing the symbolic reference of a PHP class object for validation or just determining the type and target for the operator. The expression is intended for working with classes and class methods, so the value on the right of the Paamayim Nekudotayim :: will alway be regarded as ...
Submitted by
Jacob Canote
-
4 years ago
(Last modified 4 years ago)
1
Custom IFrame SRC Grabber
PCRE2 (PHP >=7.3)
no description available
Submitted by
Moep
-
4 years ago
(Last modified 4 years ago)
1
验证金额 "-999999999.99 ~ 999999999.99" ,小数点保留2位
PCRE2 (PHP >=7.3)
验证阿拉伯数字金额 "-999999999 ~ 999999999" ,小数点后面保留2位
Submitted by
cp.l
-
4 years ago
1
StrongPassword: 1 uppercase, 1 lower case, 1 num, 1 \W, & at least 8 char
PCRE2 (PHP >=7.3)
no description available
Submitted by
Bri Baldwin
-
4 years ago
1
MyRegEx
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Dutch mobile phone number
PCRE2 (PHP >=7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Gitlab GraphQl query finder
PCRE2 (PHP >=7.3)
Searches for the first list element in a graphql query, which allows for filtering and pagination, except for the group node
Submitted by
Thomas Luijken
-
4 years ago
1
OhArthit
PCRE2 (PHP >=7.3)
ผลิตภัณฑ์ส่งเสริมการขาย
Submitted by
anonymous
-
3 years ago
1
E.164 ITU Telephony Standard including Extensions
PCRE2 (PHP >=7.3)
Basic RegEx to catch ITU E.164 Formatted Telephone Numbers. Must include leading '+', first digit cannot be a zero, no other non-numeric characters -- with (optional) exception of Extensions denoted by ";ext=" and between 3 and 6 digits in the extension (adjust max to suit organization)
Submitted by
ADWolf
-
3 years ago
1
QBAR Atom Regex
PCRE2 (PHP >=7.3)
Regular expression to match atoms. See qbar.io/docs.html#expression-language-atom for more information.
Submitted by
bhgomes
-
3 years ago
1
Telephone Number for Colombia
PCRE2 (PHP >=7.3)
Permite validar un número celular en colombia
Submitted by
macorreag
-
3 years ago
1
2
3
4
5
6
...
139
URL Regex
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)