'Return the service (http or https) and the base URL (URL without
protocol) from a given string. In case more than one URL is found,
return the service and base_url of the first one, ignore others.'

def __get_service_and_url_from_output(self, output):

    search_url = re.search('URL:    ((http[s]?)\\:\\/\\/([\\w\\.]+)[.\\S]+)', output)
    (service, base_url) = (search_url.group(2), search_url.group(3))
    return (service, base_url)
