# pip install regex import re # simple find all sample = "Nothing lasts... but nothing is lost" found = re.findall("thing", sample) print(found) 

Read more of this post