def parse_variable_field(field, re_dict):
    """Function takes a MARC21 field and the Regex dictgroup and
    return a list of the subfields that match the Regex patterns.

    Parameters:
    field -- MARC21 field
    re_dict -- Regular Expression dictgroup
    """
    output = []
    if field is None or re_dict is None:
        return output
    test_ind1 = re_dict.get('ind1').replace("_", " ")
    test_ind2 = re_dict.get('ind2').replace("_", " ")
    if field.indicators == [test_ind1, test_ind2]:
        output = field.get_subfields(re_dict.get('subfield'))
    return output