import re


def get_coincidences(text, coincidences, unique_values = False):
    """
    Looks for the coincidences list strings in the text variable and return a list with the coincidences.
    :param text: a string
    :param coincidences: a list of strings. The strings to looking for in the text.
    :param unique_values: a boolean. True is we want to return duplicates values found.
    :return: a list of strings. The coincidences list strings found in text
    """
    try:
        expected_coincidences = '|'.join(coincidences)
        coincidences_list = re.findall(expected_coincidences, text)
        if unique_values:
            uniques = []
            for e in coincidences_list:
                if e not in uniques:
                    uniques.append(e)
            coincidences_list = uniques
        return coincidences_list
    except Exception as e:
        return []