import re


def get_matching_columns(cols, regex_list):
    """Match a list of columns with a number of regexes."""
    ret = []
    for regex in regex_list:
        regex = re.compile(regex)
        ret += filter(regex.search, cols)
    return ret