import re


def delete_matches(pattern: str, line: str) -> str:
    """Replace matches that matches pattern with empty string

    Args:
        pattern (str): regex for search
        line (str): editable line

    Returns:
        str: string with deleted matches
    """
    return re.sub(pattern, "", line)