如果我有这样的正则表达式替换模式匹配的多行
The cat sat on the mat
Expropriations for international monetary exchange (Currenncy: Dollars,
Value: 50,000)
The cat sat on the mat
Expropriations for international monetary exchange (Currenncy: Yen)
The cat sat on the mat
一堆文字是否有一个正则表达式,我可以在查找使用/替换我的文本编辑器的功能(JEDIT)识别所有的线是字Expropriations
和一端与右括号然后把那些行方括号让它们看起来像这里面的开始:
The cat sat on the mat
[Expropriations for international monetary exchange (Currenncy: Dollars,
Value: 50,000)]
The cat sat on the mat
[Expropriations for international monetary exchange (Currenncy: Yen)]
The cat sat on the mat
棘手的是,右括号可能会落在与“征用”单词相同的行末尾或下一行的末尾。 (在括号关闭之前甚至可能会有多行)