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 18,040 community submitted regex patterns...
1
Thai Home Telephone Validation
PCRE2 (PHP >=7.3)
refer to https://mobile.kapook.com/view7358.html
Submitted by
Chadin Chaipornpisuth
-
a year ago
1
match "baseip/cidr"
PCRE2 (PHP >=7.3)
match "baseip/cidr"
Submitted by
Erik
-
a year ago
1
Simple scientific notation
PCRE2 (PHP >=7.3)
allowed: 123 123.234 123.234E13 +123.234E-412 -.234E-12
Submitted by
Romzikon
-
a year ago
1
Best email regex including + (plus) and everything else
PCRE2 (PHP >=7.3)
The best regular expression for emails, including the + (plus) sign for every possible valid email in 2023.
Submitted by
Jérôme Brunel
-
a year ago
1
Lua Syntax
PCRE2 (PHP >=7.3)
finds and replaces square bracketed string literals with period and the field name
Submitted by
Andrew Stevens
-
a year ago
(Last modified a year ago)
1
DSN parser
PCRE2 (PHP >=7.3)
Regex for DSN parsing
Submitted by
ZKelo
-
a year ago
(Last modified a year ago)
1
email
PCRE2 (PHP >=7.3)
list of email
Submitted by
anonymous
-
a year ago
1
Unity Version Major & Minor (e.g. 2023.3)
PCRE2 (PHP >=7.3)
Match Unity Version as "Major.Minor"."Patch"
Submitted by
anonymous
-
a year ago
1
goff
ECMAScript (JavaScript)
[ [ { "content": "_}24I:9t58Tu?m@e", "isParticipating": true, "groupNum": 0,...
Submitted by
anonymous
-
a year ago
1
[sample]
PCRE2 (PHP >=7.3)
sample regular expression
Submitted by
anonymous
-
a year ago
1
Authors with year reference
PCRE2 (PHP >=7.3)
Try to find the author of a sentence following the next format: (Author, year) (Author, year; Author, year)
Submitted by
Antonio García Maestre
-
a year ago
1
Gabon Phones
PCRE2 (PHP >=7.3)
Regex for Gabon phones (without +)
Submitted by
anonymous
-
a year ago
1
Spain Phones
PCRE2 (PHP >=7.3)
Regex for Spain phones (without +)
Submitted by
anonymous
-
a year ago
1
France Phones
PCRE2 (PHP >=7.3)
Regex for France phones (without +)
Submitted by
anonymous
-
a year ago
1
Australian Phones
PCRE2 (PHP >=7.3)
Regex for Australian phones (without +)
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
1
Portuguese Phones
PCRE2 (PHP >=7.3)
Regex for Portuguese phones (without +)
Submitted by
anonymous
-
a year ago
1
Andorran Phones
PCRE2 (PHP >=7.3)
Regex for Andorran phones (without +)
Submitted by
anonymous
-
a year ago
1
Italian Phones
PCRE2 (PHP >=7.3)
Regex for Italian phones (without +)
Submitted by
anonymous
-
a year ago
1
German Phones
PCRE2 (PHP >=7.3)
Regex for German phones (without +)
Submitted by
anonymous
-
a year ago
1
UK phones
PCRE2 (PHP >=7.3)
Regex for UK phones (without +)
Submitted by
anonymous
-
a year ago
1
...
816
817
818
819
820
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(?n)
^
(
https
?
:
\/\/
)?
(
(?!
-
)
[
a
-
z
\d
-
]
{2,63}
(?<!
-
)
\.
)+
[
a
-
z
]
{2,24}
(
\.
[
a
-
z
]
{2}
)?
(
\/
(
(
[
a
-
z
\.
]
+
\/
?
)+
|
[
\w
-
]
*
\?
(
&
?
\w
+
=
[^
&#
]
+
)+
|
#
\w
+
(
\/
\w
+
)?
)+
)?
$
/
gi
Open regex in editor
Description
Match all valid URLs
Examples:
Valid URLs:
https://www.example.com/
http://subdomain.example.net/
https://www.subdomain.example.com.uk/params
Invalid URLs:
htp://invalid.com/
https//invalid.net/
https://invalid.org./
http://.invalid_url.net/
See all 62 URL samples in "Unit Tests"!
Note: All URL samples are made by ChatGPT!
Submitted by
Henriii102
-
a year ago
(Last modified a year ago)