var str ="!!!!!我要去除!!!!!!!!"; var regx = /(.)(?=\1+)\1+/g; str = str.replace(regx,"$1"); alert(str);
87,992
社区成员
224,688
社区内容
加载中
试试用AI创作助手写篇文章吧