正则匹配英文和数字

item_weight = '1.8 inches'
weight_re = re.findall(r'([1-9]d*.d*|0.d*[1-9]d*|d+) ([a-zs]*)', item_weight)

  

原文地址:https://www.cnblogs.com/fh-fendou/p/9322751.html