How to find and replace new line in Notepad ++

29

7

I use \n, but the new line is not replaced.

I supposed the new lines contain 2 characters, \n and \l, but searching and replacing \l yields to no results as well.

user4951

Posted 2013-01-28T06:26:30.703

Reputation: 3 015

@nixda This question is about looking for newlines, the other is about inserting newlines. – Daniel Beck – 2013-01-28T07:01:10.473

Answers

43

Are you sure you enabled search-mode "extended"?

By the way, what kind of "new line" depends on the system you are working on. On Windows you might try and search for \r\n

enter image description here

Korenaga

Posted 2013-01-28T06:26:30.703

Reputation: 546

\l -> matched lowercase letters (http://en.wikipedia.org/wiki/Regular_expression#POSIX_character_classes)

– Korenaga – 2013-01-28T06:34:32.483

1\r is indeed the issue – user4951 – 2013-01-28T06:45:39.980

how do you show the CR LF thingy anyway? – user4951 – 2013-01-28T08:15:51.967

2@JimThio Menu Bar » View » Show symbol » Show end of line – nixda – 2013-01-28T08:39:16.420