标签: python regex python-3.x
我的正则表达式仅匹配小数点前一位,而不匹配“ 40”
>>>import re >>>re.findall("Total.*(\d+\.\d+).*", "Total Price $400.0000") ['0.0000']