import re


def get_root_url(the_line):
    """
    Get the root URL from the line
    :param the_line: the line
    :return: either the root URL or None
    """
    ret = re.search('https://[^/]*/[^/]*/', the_line)
    if ret:
        return ret.group(0)

    return None