JavaScript正则式练习

使用正则式匹配第一个数字和最后一个数字,使用环视

str2 = 09051 : Fast Food Restaurants - Concession Stands/Snack Bars Delicatessens and Sandwich Shops Donut Shops : 722213 (5812)

python java中直接搞定

reg=/(?<=\()\d+(?=\))/
str2.match(reg)

javascript不支持逆环视...

测试后发现js不支持

posted @ 2017-04-13 22:45  CooMark  阅读(330)  评论(0编辑  收藏  举报