Python regex findall re.findall ()

# A Python program to demonstrate working of findall()
import re

# A sample text string where regular expression is searched.
string = """Todays date is 27 , month is 05 and year is 2022"""

# A sample regular expression to find digits.
regex = '\d+'

match = re.findall(regex, string)
print(match)
Outrageous Ostrich