Extracting domain name from random diferent urls

It’s very simple with split function cut the part and solve the problem

Here example