import re


def remove_links(text):
    """Remove links/urls from text.

    Twitter automatically shortens all links to https://t.co/<hash>. We
    take advantage of this fact to strip links with a very simple regex.

    Args:
        text (str): Text from which to remove links.

    Returns:
        str: The same text with links such as "https://t.co/FakeLink" removed.

    Examples:
        >>> remove_links('No links here.')
        'No links here.'

        >>> remove_links(r'There was a link: https://t.co/FakeLink')
        'There was a link: '
    """
    return re.sub(r"http[s]?://\S+", "", text)