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 6,260 community submitted regex patterns...
0
Date expression
ECMAScript (JavaScript)
yyyy-mm-dd
Submitted by
Alan
-
8 years ago
0
Strip the Headers from a response where JSON is present
ECMAScript (JavaScript)
HTTP/1.0 404 Not Found Cache-Control: no-cache Content-Type: application/json {"validation_message":'...'} ...
Submitted by
John B.
-
8 years ago
0
Firstname Lastname(double)
ECMAScript (JavaScript)
Example: ANDA IVANOVA-KRIVONOGOVA
Submitted by
KSrGEAR
-
8 years ago
0
DD-MM-YYYY
ECMAScript (JavaScript)
Any date that as a valid month, a valid date and a year composed of 4 numbers. You can change the '-' caracter to any divider you want.
Submitted by
anonymous
-
8 years ago
0
Set in String
ECMAScript (JavaScript)
no description available
Submitted by
Mohammad
-
8 years ago
0
json schema url
ECMAScript (JavaScript)
regex valid for json schema with http,https,ftp,sftp protocol
Submitted by
KurayamiNoDaiTenshi
-
8 years ago
0
^[a-zA-Z0-9\._-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,4}$
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Number 1 to 32 only
ECMAScript (JavaScript)
no description available
Submitted by
bustexz
-
8 years ago
0
(554) 555 55 55
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Match 24H time
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Spine Label Regex
ECMAScript (JavaScript)
LC spine label parsing
Submitted by
Dan Pearl
-
8 years ago
0
test
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Line match
ECMAScript (JavaScript)
Regex to match any no of lines
Submitted by
noby nirmal
-
8 years ago
0
date dd.mm.yyyy
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Number with optional decimal part
ECMAScript (JavaScript)
This regex checks for numbers with optional decimal part.
Submitted by
Pratik Sanyal
-
8 years ago
0
Number Ranges
ECMAScript (JavaScript)
Select number ranges dynamically
Submitted by
@yosefh
-
8 years ago
0
Phone Number
ECMAScript (JavaScript)
For phone numbers with country code(Optional)followed by 10 digit phone number.
Submitted by
Kshama
-
8 years ago
0
Simple 'Good Enough' Javascript Regex (ASCII Only)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
email-address
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Bash (sed)
Java 8
no description available
Submitted by
anonymous
-
8 years ago
(Last modified a year ago)
1
...
110
111
112
113
114
...
313
Match ONLY valid URLs!
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
-
9 months ago
(Last modified 6 months ago)