regex import match python code example Example: re.match python import re xx = "guru99,education11 is fun" r1 = re.findall(r"^\w+",xx) print(r1)