Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
URL Validator
Open Workspace
PCRE (Legacy)
Match
Created 2014-09-24 08:41
13
Regular Expression
/
(
(
(
ftp
|
http
|
https
)
:
\/\/
)
|
(
\/
)
|
(
..
\/
)
)(
\w
+
:
{0,1}
\w
*
@
)?(
\S
+
)(
:
[
0
-
9
]
+
)?(
\/
|
\/
(
[
\w
#!:.?+=&%@!
\-\/
]
)
)?
/
Description
Validates -
URLs with schemes - http, https and ftp
Relative URL starting with / and ../
Submitted by
Anonymous