我要在字符串中根据开始结束分隔符取出数组要怎么写正则表达式?

2024-12-23 15:02:54
推荐回答(1个)
回答1:

var reg = /\d+/g;
var str = "aa123bbaa456bbaa789bb";
str.match(reg);