import re
term = 'cat'
phrase = 'Learning string concatenation in Python'
found = re.search('\\b' + term + '\\b', phrase)
if found:
    print('Found!')
else:
    print('Not found.')
Python JSON и Юникод