正则表达式:/ ( [ ^ / ) ] * / )
JS代码:
var str="hello(world)";
var nstr = str.replace(//([^/)]*/)/g,"");
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/14531.html
正则表达式:/ ( [ ^ / ) ] * / )
JS代码:
var str="hello(world)";
var nstr = str.replace(//([^/)]*/)/g,"");
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/14531.html