正则匹配英文和数字

时间:2018-07-17 13:27:59   收藏:0   阅读:612
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)

  

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!