import re


def remove_urls(text: str) -> str:
    """
    Remove URLs from a text.

    Parameters
    ----------
    text : str
        Text to remove URLs from.

    Returns
    -------
    new_text : str
        New text without URLs.
    """
    url_regex = r"(?:(?:http|ftp)s?:\/\/|www\.)[\n\S]+"
    return re.sub(url_regex, "", text)