正则匹配英文和数字

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

  

posted @ 2018-07-17 12:27  那时的吻狠陶醉  阅读(219)  评论(0编辑  收藏  举报