python regex get matched string code example
Example 1: regex in python to obtain only the string in python
import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
Example 2: python regex match words
# credit to Stack Overflow user in source link
import re
re.search(r'\bis\b', your_string)