import re


def replace_links(url, message):
    """Replace the visible email links with the desired URL."""
    html_regex = re.compile(r'href=[\'"]?([^\'" >]+)')
    html_output = html_regex.sub("href=\"{}".format(url), message)

    return html_output