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
Cordon - SFR - HDD Serial number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Windows Registry Binary(Hex)
PCRE (PHP <7.3)
Get value of windows registry on hex format
Submitted by
Respeto
-
9 years ago
0
Not the Monster
PCRE (PHP <7.3)
no description available
Submitted by
Sif Baksh
-
9 years ago
2
CSS URL parser tilde only
ECMAScript (JavaScript)
Find any url('~filename.jpg'). URL must contain tilde
Submitted by
@adjavaherian
-
9 years ago
3
hj
PCRE (PHP <7.3)
hj
Submitted by
hj
-
9 years ago
3
youtube id und link
ECMAScript (JavaScript)
no description available
Submitted by
ogerly
-
9 years ago
2
JSON BizTalk schema output
PCRE (PHP <7.3)
To convert the BizTalk schema output to one string
Submitted by
Emiel Kool
-
9 years ago
4
Full e-mail validator
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Wikipedia anchor
ECMAScript (JavaScript)
Match Wikipedia anchor dot-instead-of-percent encoding string.replace(/((?:\.[a-f0-9]{2}){2})/ig, function(match) { return decodeURIComponent(match.replace(/\./g, '%')) });
Submitted by
anonymous
-
9 years ago
0
firefox session parser
Python
retrieve data of firefox .session files
Submitted by
artemisart
-
9 years ago
2
better orf finder
PCRE (PHP <7.3)
don't use my older one
Submitted by
tnrich
-
9 years ago
1
Orf Finder
PCRE (PHP <7.3)
Finds open reading frames in a dna sequence string.
Submitted by
tnrich
-
9 years ago
-2
find mp3 file
ECMAScript (JavaScript)
find mp3 file embeded in a link
Submitted by
ogerly
-
9 years ago
1
JQuery .live to JQuery .on
PCRE (PHP <7.3)
replaces deprecated .live method with corresponding .on
Submitted by
Hossein Naderi
-
9 years ago
1
mytest
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
youtube link + id + <a>
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
youtube link
ECMAScript (JavaScript)
+ link + id
Submitted by
ogerly
-
9 years ago
1
soundclouds url in <a>
ECMAScript (JavaScript)
soundclouds url in
Submitted by
ogerly
-
9 years ago
1
soundcloud url
PCRE (PHP <7.3)
soundcloud url in a link
Submitted by
ogerly
-
9 years ago
1
Email verification
PCRE (PHP <7.3)
no description available
Submitted by
SonnY
-
9 years ago
1
...
821
822
823
824
825
...
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)