import re


def collapse_numbers(text: str) -> str:
    """
    Collapse consecutive numeric characters to a single '#' symbol.

    Parameters
    ----------
    text:
        Text to process.

    Returns
    -------
    text
    """
    if bool(re.search(r"\d", text)):
        text = re.sub(r"(^|\s)[0-9]+", "#", text)
    return text