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...
7
Remove Widows (PHP)
PCRE (PHP <7.3)
Adds a non-breaking space between the last two words of sentences
Submitted by
herkulano
-
9 years ago
1
Pound checker
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
URL for victoria
PCRE (PHP <7.3)
no description available
Submitted by
Morten Mehus
-
9 years ago
1
Link splitter
PCRE (PHP <7.3)
Get every part of a link
Submitted by
Ricardo Boss (MCMainiac)
-
9 years ago
1
Я.Диск ссылки
PCRE (PHP <7.3)
no description available
Submitted by
pafnuty
-
9 years ago
2
update match
PCRE (PHP <7.3)
no description available
Submitted by
ozarzu
-
9 years ago
0
Password Any Character len: 8-63
ECMAScript (JavaScript)
Test for Password using any character. Length of password can be from 8 - 63 characters
Submitted by
Jerry Orta
-
9 years ago
0
(((?:\<|\[)a href=\'|\")?((?:http:\/\/)?((?:www\.)?(?:[\w\d-_]*?\.)+(?
PCRE (PHP <7.3)
no description available
Submitted by
irisha_sutnuk
-
9 years ago
4
tgs data delivery .zip ID
PCRE (PHP <7.3)
Pull zip download ID from default links. Works with datadelivery and datadelivery1
Submitted by
TRL
-
9 years ago
1
tgs data delivery1
PCRE (PHP <7.3)
strips data delivery link 1 from TGS download link.
Submitted by
TRL
-
9 years ago
1
TGS DATA Delivery
PCRE (PHP <7.3)
Find the default link excluding zip file ID
Submitted by
TRL
-
9 years ago
1
Aux Copy Detection
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Aux Copy Create
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
7
Extract currency with currency symbol if present
ECMAScript (JavaScript)
Extracts values of the form £nnn,nnn.nn or $nnn.nnn from text
Submitted by
Simon Gardner
-
9 years ago
3
Shortcode parser
PCRE (PHP <7.3)
Parse shortcodes, its attributes values and html
Submitted by
anonymous
-
9 years ago
1
works
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
any tag
PCRE (PHP <7.3)
regex used to search for any tag (both html and xml)
Submitted by
dasmi
-
9 years ago
1
testing
PCRE (PHP <7.3)
testing
Submitted by
Zeddy
-
9 years ago
-2
3~4 length password
PCRE (PHP <7.3)
1.the string can be of lenght 3 or 4 2.the string should start with a alphabet 3.the string should contain atleast one alphabet and number.
Submitted by
Kerwin
-
9 years ago
0
qwqwe
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
805
806
807
808
809
...
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)