This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL