Xcode 使用正则表达式查找多行

Sou*_*ios 3 regex xcode cocoa replace objective-c

我的代码中很多地方都有以下几行。我想立即找到所有这些,并用新的评论替换每个这样的块。但是我可以一次搜索一行。但我不知道如何在正则表达式中包含新行以进行搜索,请帮助。

// Block Solver
// We develop a block solver that includes the joint limit.
// when the mass has poor distribution (leading to large torques about..
//
Run Code Online (Sandbox Code Playgroud)

提前致谢

Tim*_*ker 5

搜索:

^(?://.*\n?)+
Run Code Online (Sandbox Code Playgroud)

并全部替换为空。

这将找到所有以 开头的行//