Saved from https://stackoverflow.com/questions/4843158/check-if-a-python-list-item-contains-a-string-inside-another-string
matchers = ['abc','def'] matching = [s for s in my_list if any(xs in s for xs in matchers)]