正則表達式:\ ( [ ^ \ ) ] * \ )
JS代码:
var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,"");
作者:itmyhome
时间: 2024-11-07 15:09:40
正則表達式:\ ( [ ^ \ ) ] * \ )
JS代码:
var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,"");
作者:itmyhome