Martin
Martin

Reputation: 40573

How to replace a character by a line break in VS or SQL Server Management Studio

How to replace a character (or many characters) by a line break in VS or SQL Server Management Studio using the Find and Replace dialog?

Upvotes: 22

Views: 18304

Answers (2)

Jay
Jay

Reputation: 57919

At the bottom of the "Find and Replace" dialog, check the box "Use" and select "Regular expressions"

Then in the "Replace with" box put \n

Upvotes: 42

Garett
Garett

Reputation: 16828

You can do a regular expression find and replace on \x0d\x0a, which represents a line break.

Upvotes: 7

Related Questions