<?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 do i merge lines (Pt. 3)]]></title><description><![CDATA[<p dir="auto">Sorry I should’ve shared this information in the first place so it wasn’nt clear from the start. My sincere apologies, please do have a look at my current information i hope this time it is clear.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> @TERRY R</p>
<p dir="auto"><strong>What I gave in the first place:</strong></p>
<pre><code>3040
Woodsidi
5202
Sivilli Rd
6406
W 81 ST
1853
Yukon Ct
</code></pre>
<p dir="auto"><strong>Result came from <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> 's Regex:</strong></p>
<pre><code>3040 Woodsidi
5202 Sivilli Rd
6406 W 81 ST
1853 Yukon Ct
</code></pre>
<p dir="auto"><strong>My actual txt:</strong></p>
<pre><code>3040
Woodsidi
56897
246971692
(236) 526 2626
5202
Sivilli Rd
56897
246971692
(236) 526 2626
6406
W 81 ST
56897
246971692
(236) 526 2626
1853
Yukon Ct
56897
246971692
(236) 526 2626
</code></pre>
<p dir="auto"><strong>Result came from <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> 's Regex:</strong></p>
<pre><code>3040 Woodsidi
56897 246971692
(236) 526 2626
5202 Sivilli Rd
56897 246971692
(236) 526 2626
6406 W 81 ST
56897 246971692
(236) 526 2626
1853 Yukon Ct
56897 246971692
(236) 526 2626
</code></pre>
<p dir="auto"><strong>Result I wanted/expected:</strong></p>
<pre><code>3040 Woodsidi
56897
246971692
(236) 526 2626
5202 Sivilli Rd
56897
246971692
(236) 526 2626
6406 W 81 ST
56897
246971692
(236) 526 2626
1853 Yukon Ct
56897
246971692
(236) 526 2626
</code></pre>
<p dir="auto">Thank you already :)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20457/how-do-i-merge-lines-pt-3</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 20:10:02 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20457.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Dec 2020 10:18:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Sun, 13 Dec 2020 12:21:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Damn brother this worked perfectly tysm</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60755</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60755</guid><dc:creator><![CDATA[Faisal Alam]]></dc:creator><pubDate>Sun, 13 Dec 2020 12:21:45 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 16:49:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: faisal-alam">@<bdi>faisal-alam</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: terry-r">@<bdi>terry-r</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: faisal-alam">@<bdi>faisal-alam</bdi></a> :</p>
<p dir="auto">An other <strong>regex</strong> solution, which gives an <strong>output</strong> text <strong>identical</strong> to <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a>’one, would be :</p>
<p dir="auto">SEARCH <strong><code>^\d{4}\K\R</code></strong></p>
<p dir="auto">REPLACE <strong><code>\x20</code></strong></p>
<p dir="auto">Notes :</p>
<ul>
<li>
<p dir="auto">My <strong>search</strong> regex <strong><code>^\d{4}\K\R</code></strong> approach is to find <strong>only</strong> the lines whose the <strong>line-break</strong> must be changed as a <strong>space</strong> char :</p>
<ul>
<li>
<p dir="auto">Searches from <strong>beginning</strong> ( <strong><code>^</code></strong> ) of line for a <strong>number</strong> with <strong>4</strong> digits ( <strong><code>\d{4}</code></strong> )</p>
</li>
<li>
<p dir="auto">Then the <strong><code>\K</code></strong> syntax <strong>cancelled</strong> everything that matched so far and, then, it searches for the **line break character(s) ( <strong><code>\R</code></strong> ) at the <strong>end</strong> of that <strong>specific</strong> line…</p>
</li>
<li>
<p dir="auto">Which is replaced by a <strong>space</strong> character ( <strong><code>\x20</code></strong> )</p>
</li>
</ul>
</li>
</ul>
<hr />
<ul>
<li>
<p dir="auto">The <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a>’s <strong><code>search</code></strong> regex <strong><code>\R(?![\d(])</code></strong> approach is to find a <strong>line break</strong> which is <strong>not</strong> followed with  a <strong>number</strong> or <strong>bracket</strong> :</p>
<ul>
<li>
<p dir="auto">Searches for <strong>line-ending</strong> characters ( <strong><code>\r</code></strong> or <strong><code>\n</code></strong> ) but <em>ONLY IF</em>  the <strong>look-ahead</strong> structure <strong><code>(?!......)</code></strong> is <strong>true</strong></p>
</li>
<li>
<p dir="auto">So, <em>IF NOT</em>  followed with, <strong>either</strong> :</p>
<ul>
<li>
<p dir="auto">A <strong>digit</strong> <strong><code>\d</code></strong></p>
</li>
<li>
<p dir="auto">An opening bracket <strong><code>(</code></strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Which is replaced by a <strong>space</strong> character ( <strong><code>\x20</code></strong> )</p>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="auto">If these <strong>two</strong> S/R do <strong>not</strong> give you the <strong>expected</strong> text, simply provide us some <strong>more substantial</strong> data to aim the <strong>needed</strong> text changes to perform by a <strong>regex</strong> S/R ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60732</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60732</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 11 Dec 2020 16:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 14:18:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> ,</p>
<blockquote>
<p dir="auto">hasn’t pushed <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> over the edge</p>
</blockquote>
<p dir="auto">Well, I just found this third topic in the discussion a minute ago, so I hadn’t gotten that far.  And since other people had taken over answering, I’ll just ♫Let It Go♫</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60726</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60726</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 11 Dec 2020 14:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 14:13:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: Faisal-Alam">@<bdi>Faisal-Alam</bdi></a> said in <a href="/post/60712">How do i merge lines (Pt. 3)</a>:</p>
<blockquote>
<p dir="auto">my txt actually comprises some other words</p>
</blockquote>
<p dir="auto">I’m surprised that this statement by the OP hasn’t pushed <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> over the edge…  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60723</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60723</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 11 Dec 2020 14:13:35 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 14:10:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> I’m really a newbie here, i use to make my own regex for each barrier i get but I’m unable to do this one so i came here followed by google. Anyways thanks, I’ll keep that in mind next time.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60722</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60722</guid><dc:creator><![CDATA[Faisal Alam]]></dc:creator><pubDate>Fri, 11 Dec 2020 14:10:19 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 13:10:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: Faisal-Alam">@<bdi>Faisal-Alam</bdi></a> said in <a href="/post/60712">How do i merge lines (Pt. 3)</a>:</p>
<blockquote>
<p dir="auto">Sad for me i can not use this</p>
</blockquote>
<p dir="auto">Yep, sad for you.</p>
<p dir="auto">Also, can you stop opening a new thread each time you want to add something to this overall topic?  Just reply <em>within</em> the thread and the site will keep all these common postings together under one heading.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60716</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60716</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 11 Dec 2020 13:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 13:08:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: Faisal-Alam">@<bdi>Faisal-Alam</bdi></a></p>
<p dir="auto">I see. You may want to take another approach. Can you elaborate a criterium covering all the relevant details to guide our regex efforts? For example, the criterium I used before was: Replace a LN/CR <code>\R</code> by a space <code>\x20</code> as long as it is not followed <code>?=!</code> by a number <code>\d</code> or an open parenthesis <code>(</code>.</p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60714</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60714</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Fri, 11 Dec 2020 13:08:03 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 12:35:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> thanks man! It really worked ❤️ but i still can not use this as my txt actually comprises some other words which i am not posting here because I’m afraid people will call me childish and won’t help anymore. But this way also my work isn’t going to done. If you’re willing to help me through my work then i will post it and if not then no problem. Anyways thank you buddy you really nailed it. Sad for me i can not use this.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60712</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60712</guid><dc:creator><![CDATA[Faisal Alam]]></dc:creator><pubDate>Fri, 11 Dec 2020 12:35:08 GMT</pubDate></item><item><title><![CDATA[Reply to How do i merge lines (Pt. 3) on Fri, 11 Dec 2020 11:05:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/faisal-alam" aria-label="Profile: Faisal-Alam">@<bdi>Faisal-Alam</bdi></a></p>
<p dir="auto">As long as data provided is representative of the full text — but only you know that —, the following regex meets your needs:</p>
<pre><code class="language-z">Search: \R(?![\d(])
Replace: \x20
</code></pre>
<p dir="auto">Put the caret at the very beginning of the document, select just the <code>Regular Expressions mode</code> and click on <code>Replace All</code>.</p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/60710</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/60710</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Fri, 11 Dec 2020 11:05:32 GMT</pubDate></item></channel></rss>