var str='abcd啊百川的4321啊abc1234啊'; var re=/啊/g; str=str.replace(re,''); console.log(str) //abcd百川的4321abc1234