var str = "15:aaa,16:bbb,17:ccc,15:ddd,18:eee,"
//我需要拿到"15:"和","之间的数据
str.replace(/15\:(.+?)\,/g,function (match,param,offset,string) {
console.log(match,param);
})
var str = "15:aaa,16:bbb,17:ccc,15:ddd,18:eee,"
//我需要拿到"15:"和","之间的数据
str.replace(/15\:(.+?)\,/g,function (match,param,offset,string) {
console.log(match,param);
})