我想删除一个句子中所有括号之间的字符串。
Input : He (she) wants (desires) to remove (delete) text in between all parentheses.
Output : He wants to remove text in between all parentheses.
我尝试使用\(。* \)正则表达式,但它给出的输出类似于:他在所有括号之间输入文本。合适的正则表达式声明可能是什么?
最佳答案
关于regex - 删除多个括号之间的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35934108/