how to get a word from regex python code example
Example 1: extract text regex python
>>> import re
>>> re.findall(r'\d{1,5}','gfgfdAAA1234ZZZuijjk')
>>> ['1234']
Example 2: python regex match words
# credit to Stack Overflow user in source link
import re
re.search(r'\bis\b', your_string)