python strings matching regex code example
Example 1: searching for a pattern in text with re python
import re
xx = "guru99,education is fun"
r1 = re.findall(r"^\w+",xx)
print(r1)
Example 2: python regex match words
# credit to Stack Overflow user in source link
import re
re.search(r'\bis\b', your_string)