Souandios
Souandios

Reputation: 544

Xcode finding multiple lines using regular expression

I have the following lines in my code at many places. I want to find all of them at once and replace each of such block with new comment. However i am able search single line at a time. But i am not getting how to include new line in my regular expression to search please help.

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

Thanks in advance

Upvotes: 3

Views: 2378

Answers (1)

Tim Pietzcker
Tim Pietzcker

Reputation: 336108

Search for:

^(?://.*\n?)+

and replace all with nothing.

This will find all lines that start with //.

Upvotes: 5

Related Questions