正則表達式:\ ( [ ^ \ ) ] * \ )

JS代码:

var str="hello(world)";
var nstr = str.replace(/\([^\)]*\)/g,""); 

作者:itmyhome

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-01-18
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2021-08-22
  • 2021-10-29
  • 2022-12-23
  • 2022-02-07
  • 2021-10-27
相关资源
相似解决方案