关于过滤,请教有串值 xxx[123fda] , 请问有什么方法能把[]中间的值过滤掉,最后结果是xxx吗? 在js中[解决办法]var m= 'xxx[123fda] ' alert(m.replace(/\[[^\]]*?\]/, " "))