Replace CarriageReturn and NewLine in NotePad++

In Notepad++ to replace carriage return and newline with NewLine.

Open the find and replace dialogue (press CTRL+H). Then select Regular expression in the ‘Search Mode’ section at the bottom.

In the Find what field enter this: [\r\n]+ and in Replace With \n

Leave a Reply

Your email address will not be published.