Tiger Cole
Tiger Cole

Reputation: 1

Remove the line break "\n" after a "\" character in Notepad++

I have a CSV file that contains about 100'000 records some of which have been broken into multiple lines at a "\" character in the source data during the export. Can any one help me with an expression to remove any line breaks that follow the "\" character in the data.

Upvotes: 0

Views: 7584

Answers (2)

Tom
Tom

Reputation: 913

  1. In the "Replace" dialog, select "Extended" from the "Search Mode" section (bottom left of the dialog).
  2. In the "Find what" box type: \\\n
  3. In the "Replace with" box type: \\
  4. Hit "Replace All"
  5. Enjoy

find and replace dialog

Upvotes: 1

Mehdi Bugnard
Mehdi Bugnard

Reputation: 3979

Good afternoon. Did you try clicking on the "Edit" menu and "Convert line breaks" from the application "Notepad ++"?

enter image description here

Upvotes: 0

Related Questions