------解决方案-------------------- var str = 'tle=财务总监研修班&shu=<p>100000000</p>&shu1=2102-10-20';
var pattern = /\w+= ------解决方案-------------------- & ------解决方案-------------------- <[^>]+>/g;
var ary = str.split(pattern);
var source = [];
for (var t in ary) {
if (ary[t] != '') {
source.push(ary[t]);
}
}
alert(source); ------解决方案--------------------
按逗号分隔就行了 ------解决方案-------------------- var test = "财务总监研修班,100000000,2102-10-20";
var test1 = test.split(",");
alert(test1[0]);
alert(test1[1]);
alert(test1[2]); ------解决方案-------------------- var reg=/(&\w+=([^&]+))+/i;