javascript regex obtenha domínio do URL
function url_domain(data) {
var a = document.createElement('a');
a.href = data;
return a.hostname;
}
Sators
function url_domain(data) {
var a = document.createElement('a');
a.href = data;
return a.hostname;
}