<?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[Join lines with specific symbol]]></title><description><![CDATA[<p dir="auto">I have text like this</p>
<p dir="auto">678,“Name”,2017<br />
\n&lt;strong&gt;Country: &lt;/strong&gt;UK<br />
\n&lt;strong&gt;Save:&lt;/strong&gt; UN.<br />
679,“Name”,2019<br />
\n&lt;strong&gt;Country: &lt;/strong&gt;USA<br />
\n&lt;strong&gt;Save:&lt;/strong&gt; UNC.<br />
\n&lt;strong&gt;Count:&lt;/strong&gt; 3.</p>
<p dir="auto">And I need to make it look like this</p>
<p dir="auto">678,“Name”,2017\n&lt;strong&gt;Country: &lt;/strong&gt;UK\n&lt;strong&gt;Save:&lt;/strong&gt; UN.<br />
679,“Name”,2019\n&lt;strong&gt;Country: &lt;/strong&gt;USA\n&lt;strong&gt;Save:&lt;/strong&gt; UNC.\n&lt;strong&gt;Count:&lt;/strong&gt; 3.</p>
<p dir="auto">So basically I want to join line that starts with “\n” with previous line and I don’t want to delete this “\n” symbol. Any ideas how to do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22080/join-lines-with-specific-symbol</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 02:31:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22080.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Nov 2021 22:33:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Join lines with specific symbol on Tue, 02 Nov 2021 22:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/23581">@Salamander931</a> said in <a href="/post/71078">Join lines with specific symbol</a>:</p>
<blockquote>
<p dir="auto">So basically I want to join line that starts with “\n” with previous line and I don’t want to delete this “\n” symbol. Any ideas how to do this?</p>
</blockquote>
<p dir="auto">Using a regular expression in the “Replace” function we have:<br />
Find What:<code>(?-s)\R^(\\n.+)</code><br />
Replace With:<code>\1</code><br />
So search mode must be regular expression. Click on the “Replace All” button to change the entire file.</p>
<p dir="auto">You will see the <code>\\</code> in the expression because the <code>\</code> is regarded as a special character, so the additional <code>\</code> escapes it, or reverts it to a normal character.</p>
<p dir="auto">Terry</p>
<p dir="auto">PS since you didn’t show the example inside of a black box (read the “read me before posting”) it’s possible this might not work. I suspect you may have leading spaces on some lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71079</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71079</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 02 Nov 2021 22:45:57 GMT</pubDate></item></channel></rss>