import re


def filter_years(words_list):
    """Filter strings that could contain a year from a list of words"""

    condition = lambda x: re.search(r'(?:19|20)[0-9]{2}', x)
    filtered_list = [word for word in filter(condition, words_list)]
    return filtered_list