import re


def strip_prefixes(strain_name, prefixes):
    """Strip the given prefixes from the given strain name.

    Parameters
    ----------
    strain_name : str
        Name of a strain to be sanitized
    prefixes : list[str]
        A list of prefixes to be stripped from the strain name.

    Returns
    -------
    str :
        Strain name without any of the given prefixes.


    >>> strip_prefixes("hCoV-19/RandomStrain/1/2020", ["hCoV-19/", "SARS-CoV-2/"])
    'RandomStrain/1/2020'
    >>> strip_prefixes("SARS-CoV-2/RandomStrain/2/2020", ["hCoV-19/", "SARS-CoV-2/"])
    'RandomStrain/2/2020'
    >>> strip_prefixes("hCoV-19/RandomStrain/1/2020", ["SARS-CoV-2/"])
    'hCoV-19/RandomStrain/1/2020'

    """
    joined_prefixes = "|".join(prefixes)
    pattern = f"^({joined_prefixes})"
    return re.sub(pattern, "", strain_name)