正則表達式:\ ( [ ^ \ ) ] * \ )
JS代码:
var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,"");
作者:itmyhome
正則表達式:\ ( [ ^ \ ) ] * \ )
JS代码:
var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,"");
作者:itmyhome
转载于:https://www.cnblogs.com/gavanwanggw/p/7389581.html