import re


def clean_mvpv(text):
    """
    Remove various versions of "MV" and "PV" markers
    """
    text = re.sub(
        r"\s*\[\s*(?:off?icial\s+)?([PM]\/?V)\s*]", "", text, flags=re.IGNORECASE
    )  # [MV] or [M/V]
    text = re.sub(
        r"\s*\(\s*(?:off?icial\s+)?([PM]\/?V)\s*\)", "", text, flags=re.IGNORECASE
    )  # (MV) or (M/V)
    text = re.sub(
        r"\s*【\s*(?:off?icial\s+)?([PM]\/?V)\s*】", "", text, flags=re.IGNORECASE
    )  # 【MV】 or 【M/V】
    text = re.sub(
        r"[\s\-–_]+(?:off?icial\s+)?([PM]\/?V)\s*", "", text, flags=re.IGNORECASE
    )  # MV or M/V at the end
    text = re.sub(
        r"(?:off?icial\s+)?([PM]\/?V)[\s\-–_]+", "", text
    )  # MV or M/V at the start
    return text