Same idea as Yuushi in using regular expressions, but this uses the findall method within the re library instead of a list comprehension:
import re
regex = re.compile('th.s')
l = ['this', 'is', 'just', 'a', 'test']
matches = re.findall(regex, string)