Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^http:\/\/(?:[^\/\n]*\.)*google\.com(?:\/[^\n]*)?$
/
gm
Input 1
New
http://test.google.com/ http://google.com/ http://test.google.com http://.google.com/ http://one.more.test.google.com
Substitution
http://test.google.com/ http://google.com/ http://test.google.com http://.google.com/ http://one.more.test.google.com