def get_host()

in Linux_scripts/rhui-check/rhui-check.py [0:0]


def get_host(url):
    urlregex = '[^:]*://([^/]*)/.*'
    host_match = re.match(urlregex, url)
    return host_match.group(1)