<?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[help to delete some blank lines]]></title><description><![CDATA[<p dir="auto">hello to everybody,</p>
<p dir="auto">i have some documents with up to 10K lines like this one:</p>
<pre><code>text-001
text-002
https://www.486905968046wdGtqQT09/74662-7z

https://www.ajjdhflfkgwdGteds/74662-7z

https://www.erlkjglegio45gio8/74662-7z

text-003
text-004
https://www.lSHM3UmJ2MW1rcEh3QT13/1982827-7z

text-005
text-006
https://www.tVbkQxTmd2a0lYMVc28193/1quehhs-rar

https://www.kfjdhdh7742222/1quehhs-rar

https://www.949iwjdjnnssbabqq/1quehhs-rar
</code></pre>
<p dir="auto">i need to delete blank empty lines only on https lines, like this:</p>
<pre><code>text-001
text-002
https://www.486905968046wdGtqQT09/74662-7z
https://www.ajjdhflfkgwdGteds/74662-7z
https://www.erlkjglegio45gio8/74662-7z

text-003
text-004
https://www.lSHM3UmJ2MW1rcEh3QT13/1982827-7z

text-005
text-006
https://www.tVbkQxTmd2a0lYMVc28193/1quehhs-rar
https://www.kfjdhdh7742222/1quehhs-rar
https://www.949iwjdjnnssbabqq/1quehhs-rar
</code></pre>
<p dir="auto">how to?<br />
or another solution: delete all blank lines, but then add new blank lines only between https link and text-00n</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24527/help-to-delete-some-blank-lines</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 05:36:53 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24527.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Jun 2023 08:19:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to help to delete some blank lines on Sun, 04 Jun 2023 15:15:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/namx3249" aria-label="Profile: namx3249">@<bdi>namx3249</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Ah…, I simply <strong>added</strong> a leading <strong><code>TAB</code></strong> char before <strong>each</strong> line of the <strong>first</strong> part to show you that the regex S/R could <strong>also</strong> handle this case !</p>
<p dir="auto">But, If you’re sure that leading <strong>blank</strong> chars won’t appear in your file, you can <strong>simplify</strong> the regex S/R as below, to get a <strong>similar</strong> <em>OUTPUT</em>  :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^(.+\R)\R+(?=http)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1</code></strong></p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86804</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86804</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 04 Jun 2023 15:15:08 GMT</pubDate></item><item><title><![CDATA[Reply to help to delete some blank lines on Sun, 04 Jun 2023 13:26:00 GMT]]></title><description><![CDATA[<p dir="auto">oh guy038, as usual your regex work fine!<br />
thanks you so much. you saved my day</p>
<p dir="auto">only don’t understand why have you add a leading TAB on first block … it work fine also without this …</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86799</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86799</guid><dc:creator><![CDATA[namx3249]]></dc:creator><pubDate>Sun, 04 Jun 2023 13:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to help to delete some blank lines on Sun, 04 Jun 2023 12:57:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/namx3249" aria-label="Profile: namx3249">@<bdi>namx3249</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">As usual, not difficult with the <strong>appropriate</strong> regex expression</p>
<p dir="auto">So, starting with your <em>INPUT</em> text, where I <strong>added</strong> a <strong>leading</strong> <em>TAB</em> char before the <strong>first</strong> part of your text :</p>
<pre><code class="language-diff">	text-001
	text-002
	https://www.486905968046wdGtqQT09/74662-7z

	https://www.ajjdhflfkgwdGteds/74662-7z

	https://www.erlkjglegio45gio8/74662-7z

text-003
text-004
https://www.lSHM3UmJ2MW1rcEh3QT13/1982827-7z

text-005
text-006
https://www.tVbkQxTmd2a0lYMVc28193/1quehhs-rar

https://www.kfjdhdh7742222/1quehhs-rar

https://www.949iwjdjnnssbabqq/1quehhs-rar
</code></pre>
<p dir="auto">the following regex S/R :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^(.+\R)\R+(?=[\t\x20]*http)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1</code></strong></p>
<p dir="auto">Will produce your <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">	text-001
	text-002
	https://www.486905968046wdGtqQT09/74662-7z
	https://www.ajjdhflfkgwdGteds/74662-7z
	https://www.erlkjglegio45gio8/74662-7z

text-003
text-004
https://www.lSHM3UmJ2MW1rcEh3QT13/1982827-7z

text-005
text-006
https://www.tVbkQxTmd2a0lYMVc28193/1quehhs-rar
https://www.kfjdhdh7742222/1quehhs-rar
https://www.949iwjdjnnssbabqq/1quehhs-rar
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/86797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/86797</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 04 Jun 2023 12:57:12 GMT</pubDate></item></channel></rss>