<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to search/replace newlines]]></title><description><![CDATA[<p dir="auto">I’m trying to replace multiple newlines in a file with a single newline, but having no luck.<br />
I tried searching for \n\n (with various options checked and unchecked), but fail to find any. I can find SINGLE newlines, but not two in a row, at least with this syntax.<br />
Could not find any help in the app.<br />
Any suggestions?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11158/how-to-search-replace-newlines</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 10:42:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11158.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Jan 2016 22:24:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to search/replace newlines on Fri, 22 Jan 2016 00:24:14 GMT]]></title><description><![CDATA[<p dir="auto">Well, really, that last sentence was all I needed. :)<br />
Tnx!<br />
Guess it’s time I <em>spent</em> some time roaming around Notepad++ menus instead of thinking I’m using my grandad’s Notepad. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13510</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13510</guid><dc:creator><![CDATA[Chuck Puckett]]></dc:creator><pubDate>Fri, 22 Jan 2016 00:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to search/replace newlines on Thu, 21 Jan 2016 23:22:33 GMT]]></title><description><![CDATA[<p dir="auto">Not really<br />
^ marks the beginnig of a line<br />
and $ the end.<br />
^$ means you are looking for lines which basically have nothing then EOL chars.<br />
Therefore replacing wouldn’t hurt other lines.</p>
<p dir="auto">Cheers<br />
Claudia</p>
<p dir="auto">Btw. One thing i always forget Edit-&gt;Line operation-&gt;remove empty lines</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13507</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13507</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 21 Jan 2016 23:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to search/replace newlines on Thu, 21 Jan 2016 23:16:44 GMT]]></title><description><![CDATA[<p dir="auto">Didn’t think about that. Notepad++ is so much more than Notepad :)<br />
It shows CR LF at thened of each line, CR LF in the blank lines.<br />
Is that equivalent to ^$?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13506</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13506</guid><dc:creator><![CDATA[Chuck Puckett]]></dc:creator><pubDate>Thu, 21 Jan 2016 23:16:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to search/replace newlines on Thu, 21 Jan 2016 22:55:02 GMT]]></title><description><![CDATA[<p dir="auto">Assuming the empty line is really empty I would use regular expression and</p>
<pre><code>find what   : ^$
replace with:
</code></pre>
<p dir="auto">If you press the show all characters, is the line really empty?</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13504</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13504</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 21 Jan 2016 22:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to search/replace newlines on Thu, 21 Jan 2016 22:51:20 GMT]]></title><description><![CDATA[<p dir="auto">I find \r\n, and thanks for that. But my replacement attempts go astray.<br />
What I’m trying to do is make something like this</p>
<p dir="auto">line 1</p>
<p dir="auto">line 2</p>
<p dir="auto">line 3</p>
<p dir="auto">into this:</p>
<p dir="auto">line 1<br />
line 2<br />
line 3</p>
<p dir="auto">I can get of newlines in a selection by replacing \r\n with a space. But I need to eliminate empty lines.</p>
<p dir="auto">More ideas?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13503</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13503</guid><dc:creator><![CDATA[Chuck Puckett]]></dc:creator><pubDate>Thu, 21 Jan 2016 22:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to search/replace newlines on Thu, 21 Jan 2016 22:27:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello Chuck-Puckett,</p>
<p dir="auto">keep in mind that windows uses \r\n as eol.<br />
Where as unix uses \n and mac \r.</p>
<p dir="auto">Maybe \r\n does the trick.</p>
<p dir="auto">Cheers<br />
Claudia</p>
]]></description><link>https://community.notepad-plus-plus.org/post/13500</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/13500</guid><dc:creator><![CDATA[Claudia Frank]]></dc:creator><pubDate>Thu, 21 Jan 2016 22:27:27 GMT</pubDate></item></channel></rss>