(text: str, repl: str = "_URL_")
return resources.RE_SHORT_URL.sub(repl, resources.RE_URL.sub(repl, text))
Replace all URLs in ``text`` with ``repl``.
Replace all URLs in ``text`` with ``repl``.
Replace all URLs in text with repl .
def urls(text: str, repl: str = "_URL_") -> str:
    """Replace all URLs in ``text`` with ``repl``."""
    return resources.RE_SHORT_URL.sub(repl, resources.RE_URL.sub(repl, text))
def urls ( text : str , repl : str = "_URL_" ) -> str : return resources . RE_SHORT_URL . sub ( repl , resources . RE_URL . sub ( repl , text ) )