def in_range(num: str, mi: int, ma: int) -> bool:
    """True if `num` between `mi` and `ma` inclusive & ignoring all non-digit chars."""
    clean = "".join(char for char in num if char.isdigit())
    return int(clean) in range(mi, ma + 1)