def between(data, delim1, delim2):
    """Extracts text between two delimiters.

    Parameters
    ----------
    data : str
        Text to analyse
    delim1 : str
        First delimiter.
    delim2 : str
        Second delimiter.

    Returns
    -------
    str
        Text between delimiters.
    """
    return data.split(delim1)[1].split(delim2)[0]