日期:2014-05-16 浏览次数:20382 次
var re =new RegExp("^.([u4e00-u9fa5]+).$");//试试.
var reg = new RegExp("^(<div.>\\S</div>)+$");
var aaa = "<DIV id=A5CE21F97DFB4A2DBACA963BD2D4908C@D51CD9846F21444888A21DE82F014A73 class=multi-select-item><IMG onclick=justep.MultiList.removeRow(this.parentNode.id) src/x5/$v2172a588e7d0315349fcba84be3a6b06a3bd/UI/system/images/templete/delete.gif>张三</DIV><DIV id=DB3153489BB94F9AB79EFE758568D517@D51CD9846F21444888A21DE82F014A73 class=multi-select-item><IMG onclick=justep.MultiList.removeRow(this.parentNode.id) src=/x5/$v2172a588e7d0315349fcba84be3a6b06a3bd/UI/system/images/templete/delete.gif>李四</DIV><DIV id=C9BC1EF86ECC4840B615193AFEF688EF@D51CD9846F21444888A21DE82F014A73 class=multi-select-item><IMG onclick=justep.MultiList.removeRow(this.parentNode.id) src=/x5/$v2172a588e7d0315349fcba84be3a6b06a3bd/UI/system/images/templete/delete.gif>王五</DIV>";
var reg = /[^\u4E00-\u9FA5]*([\u4E00-\u9FA5]+)[^\u4E00-\u9FA5]+/gi;
var result1 = [];
var result = aaa.replace(reg,function($1,$2){
result1.push($2);
})
for(var i =0;i<result1.length;i++){
alert(result1[i]);
}
var reg = new RegExp("^(<div.><img.>\\S</div>)+$");