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
/
https?.*?(\w{4,})(?=(?:\.\w{2,3})+\/)
/
g
Input 1
1
New
let str = 'https://www.google.com.ua/images/branding/product/ico/googleg_lodp.ico' let str1 = 'https://www.google.com/images/branding/product/ico/googleg_lodp.ico' let str2 = 'https://books.google.com.ua/images/branding/product/ico/googleg_lodp.ico' http://test.google.com/test.google.com/ http://a.b.c.d.test.google.com/test.google.com/