import re


def has_drm_match(ocr_result, drm):
    """
    Checks if a drm matches the ocr_result format.

    Args:
        ocr_result (str): OCR result string;
        drm (dict): DRM dict object for parsing the OCR string.

    Returns:
        (bool): Returns True if the DRM identifier matches with
                OCR result string.
    """
    id_regexps = drm["identifiers"]

    for id_regexp in id_regexps:
        regexp = re.compile(id_regexp, re.IGNORECASE)

        if not re.search(regexp, ocr_result):
            return False

    return True