python search match regex in string 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: re.match python
import re
xx = "guru99,education11 is fun"
r1 = re.findall(r"^\w+",xx)
print(r1)