import re


def valid_pattern(pattern: str) -> bool:
    """
    Checks if the pattern given is valid for a license plate.
    It is equivalent to checking if the pattern contains characters
    other than 'C' and 'D' or integers.
    """
    valid = re.search(r"[^CD\d]", pattern)
    return valid is None