正则表达式在线测试工具URL:http://tool.oschina.net/regex/

1.用正则表达式替换括号和其中的内容:

1 string str = "郜慧英(产品部)(研发)";
2 Regex regex = new Regex(@"\([^\)]*\)|\([^\)]*\)");
3 string output = regex.Replace(str,"");

 

 

随着使用,内容会持续添加。

 

相关文章:

  • 2021-07-27
  • 2021-12-26
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2022-02-27
  • 2022-12-23
  • 2021-11-22
  • 2021-11-10
  • 2021-09-23
相关资源
相似解决方案