我的URL列表如下:提取父域/子域名
http://example.com/sdfsdf/sdfsa
https://example2.com/53lasfd/asdfs
http://www.example3.com/asdfas/asdfasdf.php?=asdfa
https://subdomain.example4.com/index.php?id=sadfa
https://www.subdomain.example5.com/asdfas/asdfasd
我需要在不http
只提取域(和子域),https
,www
和所有/
後:
exmaple.com
exmaple2.com
example3.com
subdomain.example4.com
subdomain.example5.com
對不起,輸出應該是在每一個新行 –