Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
~
^(?:[^:\n]+://)?([^:#/\n]*)
~
gm
Input 1
1
New
http://www.google.com/ https://www.google.com:2000/ http://100.1.25.3:8000/foo/bar?abc.php=xxxx+xxxx www.google.com 10.0.2.2:5000 localhost/ localhost/foo google.com http://///x
Substitution