def search_list(lst, pattern):
filt = re.compile(pattern).search<EOL>return filter_list(lst, filt)<EOL>
Parameters
----------
pattern: string

lst: list of strings

Returns
-------
filtered_list: list of str
    Filtered lists with the strings in which the pattern is found.