import re


def regex_list_filter(regex, list_to_filter):
    """
    Apply a regex filter to a list

    :param `regex`          : the regular expression
    :param `list_to_filter` : the list to filter

    :return `new_list`
    """
    r = re.compile(regex)
    return list(filter(r.match, list_to_filter))