import re


def sanitize_alphanumerical(instr: str) -> str:
    """remove all non-alphanumerical characters (excluding dashes and dots), and replace them with dashes.

    Args:
        instr (str): the input string

    Returns:
        str: the sanitized string

    """
    return re.sub(r"[^A-Za-z0-9\-.]", "-", instr)