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
Identify a web URL - non ftp
Open Workspace
Python
Match
Created 2022-03-31 10:03
1
Regular Expression
r"
(
(
http
|
https
)+
\:\/\/
)?(
[
\w\d
-
]
+
\.
)*
[
\w
-
]
+
[
\.\:
]
\w
+
(
[
\/\?\=\&\#\.
]
?
[
\w
-
]
+
)*
\/
?
"
gm
Description
From any text identify a web url. File or ftp urls are not a part of the regex.
Submitted by
wongz - https://stackoverflow.com/a/63022807/326835