我觉得比ijao简单,但是脑子就是转不过弯。。。。请正则高手看看阿。
/
]*>[sS]*? /gi,
分享一个函数
//普通替换
function doRepNormal(s){
var str=s.replace(/
s*?
/ig,"");
str=str.replace(/s*?
s*?
/ig, "");
str=str.replace(/(s| | | |xc2xa0)*?
/ig, "");
str=str.replace(/s*?
/ig,"");
str=str.replace(/
/ig,"");
str=str.replace(/
n /ig, "");
str=str.replace(/
s*?/ig, "");
str=str.replace(/s*?/ig, "");
str=str.replace(/
n /ig, "");
str=str.replace(/
n /ig, "");
//表格替换
str=str.replace(/ 


