过滤以@开头以:结尾的文本
var regExp=/\@.*?\:/g;
var str=‘@游客11:12312312@游客11:12312312@游客11:12312312@游客11:12312312@游客11:12312312‘;
str=str.replace(regExp,"")
console.log(str)
2020-04-03-JS正则表达式过滤以指定字符开头以指定字符结尾的文本内容
原文:https://www.cnblogs.com/cnsyear/p/12632517.html