print(('aho done in ', time.time() - start))
exp = re.compile('|'.join(search_words))
start = time.time()
m = exp.findall(text)
print(('re matches', sum(1 for _ in m)))
print(('re done in ', time.time() - start))
Extract emoticons from a text