demo_regex_meta2.py:
import re txt = "That will be 59 dollars" #Find all digit characters: x = re.findall("\d", txt) print(x)
C:\Users\My Name>python demo_regex_meta2.py
['5', '9']