Javascript regex obtiene dominio de 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;
}