代码示例:(标识:python_regex_meta_2)
python_regex_meta_2.py
import re

str = "That will be 59 dollars"

#Find all digit characters:

x = re.findall("\d", str)
print(x)
运行结果: