python regex match words

# credit to Stack Overflow user in source link

import re
re.search(r'\bis\b', your_string)

Here is what the above code is Doing:
1. import the re module
2. create a regular expression that searches for the word ‘is’ surrounded by word boundaries
3. pass your string into the search method

Source: https://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-substring-method