<?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 two or more consecutive lines into one?]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Is it possible to merge</p>
<p dir="auto"><em>table TAB tisch<br />
table TAB tabelle</em></p>
<p dir="auto">into</p>
<p dir="auto"><em>table TAB tisch, tabelle</em></p>
<p dir="auto">The word order on the right hand side of the TAB is not important: “tisch, tabelle” , “tabelle, tisch”. All words are lowercase. There may be more than one words on the both hand sides (e.g. <em>security guard TAB wachman</em>).</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12779/how-do-i-merge-two-or-more-consecutive-lines-into-one</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 07:56:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12779.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Nov 2016 10:43:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 17:11:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in [How do I merge two or more consecutive lines into one?]</p>
<blockquote>
<p dir="auto">If you prefer, you may send it to me, by <strong>e-mail</strong>. Here is my <strong><code>temporary</code></strong> <strong>e-mail</strong> address :</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
</blockquote>
<p dir="auto">Just sent it to the above address.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63915</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63915</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 14 Mar 2021 17:11:29 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 16:38:46 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Here is my temporary e-mail address</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6894">@glossar</a></p>
<p dir="auto">Do please take advantage of that kindly offered suggestion!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63912</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63912</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 14 Mar 2021 16:38:46 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 17:10:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6894">@glossar</a>,</p>
<p dir="auto">I do <strong>not</strong> understand. The text that you provided :</p>
<pre><code class="language-diff">triplex bundle conductor	{ELEKTROTECH} Bündelleiter m. aus drei Teilleitern, Dreierbündel n.
triplex chain	{TECH&amp;ANGEWANDTE} &lt;driv&gt; Triplexkette f.
triplex milling machine	{TECH&amp;ANGEWANDTE} &lt;mach/tool&gt; Dreispindelfräsmaschine f.
triplex operation	{ELEKTROTECH} NRT Triplexbetrieb m.
triplex plunger pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreiplungerpumpe f.; 3-Plunger-Pumpe f.; Triplex-Plungerpumpe f.
triplex pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreizylinderpumpe f.; Dreikolbenpumpe f.; 3-Zylinder-Pumpe f advt; Triplexpumpe f.
triplex ram pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreiplungerpumpe f.; 3-Plunger-Pumpe f.; Triplex-Plungerpumpe f.
triple-X syndrome	{MEDIZIN} XXX-Syndrom n., X-Trisomie f. (Chromosomenanomalie)
triplex system	{TELEKOMM} Triplexsystem n.
triplex winding	{TECH&amp;ANGEWANDTE} &lt;el&gt; Dreifachwicklung f.; Dreilagenwicklung f.; Dreischleifenwicklung f.
triplex-coated particle	{TECH} n. NUC TECH dreifach beschichtetes Teilchen nt.
</code></pre>
<p dir="auto">seems <strong>useless</strong> ! Indeed, if I applied the <strong>regex</strong> S/R, against your <strong>example</strong>, it does <strong>not</strong> find any match !</p>
<p dir="auto">I need the <strong>initial</strong> text, which is <strong>practically</strong> almost removed <em>AFTER</em> processing the <strong>regex</strong> S/R</p>
<p dir="auto">If you prefer, you may send it to me, by <strong>e-mail</strong>. Here is my <strong><code>temporary</code></strong> <strong>e-mail</strong> address :</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63911</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63911</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 14 Mar 2021 17:10:54 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 15:58:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said in <a href="/post/63906">How do I merge two or more consecutive lines into one?</a>:</p>
<blockquote>
<p dir="auto">\1,\x20\3</p>
</blockquote>
<p dir="auto">Hello guy,</p>
<p dir="auto">This is what it lefts behind:</p>
<pre><code>triplex plunger pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreiplungerpumpe f.; 3-Plunger-Pumpe f.; Triplex-Plungerpumpe f.,
</code></pre>
<p dir="auto">There is a tabulation right after the word “pump”, sorry, I can’t make it visible and there is <strong>no</strong> CRLF at the en of the line.</p>
<p dir="auto">It may be useful or necessary for trouble-shooting to put this line in “context” (as we often use it), so here it is with few lines before and after:</p>
<pre><code>triplex bundle conductor	{ELEKTROTECH} Bündelleiter m. aus drei Teilleitern, Dreierbündel n.
triplex chain	{TECH&amp;ANGEWANDTE} &lt;driv&gt; Triplexkette f.
triplex milling machine	{TECH&amp;ANGEWANDTE} &lt;mach/tool&gt; Dreispindelfräsmaschine f.
triplex operation	{ELEKTROTECH} NRT Triplexbetrieb m.
triplex plunger pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreiplungerpumpe f.; 3-Plunger-Pumpe f.; Triplex-Plungerpumpe f.
triplex pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreizylinderpumpe f.; Dreikolbenpumpe f.; 3-Zylinder-Pumpe f advt; Triplexpumpe f.
triplex ram pump	{TECH&amp;ANGEWANDTE} &lt;convey&gt; Dreiplungerpumpe f.; 3-Plunger-Pumpe f.; Triplex-Plungerpumpe f.
triple-X syndrome	{MEDIZIN} XXX-Syndrom n., X-Trisomie f. (Chromosomenanomalie)
triplex system	{TELEKOMM} Triplexsystem n.
triplex winding	{TECH&amp;ANGEWANDTE} &lt;el&gt; Dreifachwicklung f.; Dreilagenwicklung f.; Dreischleifenwicklung f.
triplex-coated particle	{TECH} n. NUC TECH dreifach beschichtetes Teilchen nt.
</code></pre>
<p dir="auto">Again, there is a tabulation just before the char “<strong>{</strong>”  on each line, with CRLF at the end.</p>
<p dir="auto">And a bit food for trouble-shooting, I’m trying make a “big mama” dictionary file from a series of (smaller) ones, with of course no duplicate headwords, hence applying the regex above.  So far I have joined (in the above sense) several of them but there are more to join. Each (new) one of the file I simply add to the already added ones, in a way, I simply glue one after another and on top of another to get the “big mama” after I successfully join all of the files, of course again with no duplicate headwords (=everything before the tabulation is here headword). Suppose, I have three files from which I’d get a “big mama”. I take the first one, sort it in Excel, pasdt back it to txt file, appy the regex, repeat the same process for the second one. Now I simply copy the all content of the second file and paste it to the first one, then I sort it this added content/text in Excel, apply the regex. Now I have a text with no duplicate headwords, but consists the file #1 and #2. The last thing I’d do is to copy the content of the third file, sort it in Excel, past it back to text file, apply the regex to ensure it contains no duplicate headwords before joining it with the already joined file (File1 + File2), coply and past it to this “joined” file, repeat the same process, finally I have the big mama!</p>
<p dir="auto">As I said above, the regex works on each separate file, it seems it works as long as the text stays on the same file,  but not after transferring one text from one file to  another, which at first made me think that it might be with the different encoding issue. But I have checked the encodings of previously successfully joined/added files and verified that encoding doesn’t cause the problem (at least not when one file is UTF-8 and the other is UTF-8-BOM encoded.)</p>
<p dir="auto">Now the only thing I could suspect is some char (a non-alphanumeric char or a char that falls beyond coverage of the regex). Since there are thousands of lines in each file, I can’t manually or visually go through to spot them if there is any.</p>
<p dir="auto">Sorry for keeping it long this much. Just wanted to give you as much data as possible so that you could trouble-shoot.</p>
<p dir="auto">Thanks,<br />
glossar</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63908</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63908</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 14 Mar 2021 15:58:18 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 14:32:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6894">@glossar</a>,</p>
<p dir="auto">As usual, could you <strong>provide</strong> the text ( or <strong>part</strong> of it ) that you get <strong>back</strong> from <strong><code>Excel</code></strong>, and saved as <strong>text</strong> in N++ and for which the <strong>regex</strong> S/R, below, <strong>wrongly</strong> removes <strong>almost</strong> everything ?</p>
<p dir="auto">SEARCH <strong><code>(?-s)^((.+\t).+)\R\2(.+)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1,\x20\3</code></strong></p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63906</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63906</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 14 Mar 2021 14:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sun, 14 Mar 2021 13:42:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a></p>
<p dir="auto">Hello guy,<br />
I’ve had to re-visit this topic as I encounter a problem with the regex you had provided above, for which I’ve been grateful to you! It’s weird that the said problem accurs when I join two files (with same line structures, i.e. text-tabulation-text order, and with similar contents/texts) that I’m dealing, whereas the regex has so far worked like a charm. What is odd, is that when I apply the regex on the these files individually/separately it still works, only after I join (two of) them it fails. By joining, I mean adding the whole content of a file to the another, sorting it in Excel, pasting back to txt file. The said problem is that it consumes/deletes all texts/contexts/lines except one line (leaving <strong>only</strong> a comma behind) usually on the second “Replace all” click, so no “0 occurrances were replaced” message is possible.</p>
<p dir="auto">What might causes it?</p>
<p dir="auto">I use NP++ v. 7.9.3 (64-bit)</p>
<p dir="auto">Many thanks in advance!<br />
glossar</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63904</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63904</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Sun, 14 Mar 2021 13:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 05 Nov 2020 15:25:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a>  How can I combine a specific line with a character, ei. Line 2 - 7 should be in line 2 only. and same with the others</p>
<p dir="auto"><img src="/assets/uploads/files/1604589869038-e1b28aa3-eac0-459b-b0aa-ca391816e22e-image.png" alt="e1b28aa3-eac0-459b-b0aa-ca391816e22e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/59458</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59458</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 05 Nov 2020 15:25:30 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Tue, 06 Dec 2016 20:41:09 GMT]]></title><description><![CDATA[<p dir="auto">there will be another good solution, that works:</p>
<p dir="auto">Find What: <code>^(\w+\s+\w+\s*)(.*)\n\1</code><br />
Replace With: <code>\1\2,</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/19740</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19740</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Tue, 06 Dec 2016 20:41:09 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sat, 03 Dec 2016 21:02:30 GMT]]></title><description><![CDATA[<p dir="auto">hello guy38, and all friends. Maybe you can improve my regex to resolve the solution (other way).</p>
<p dir="auto">So, the regex below will bind (merge) all the sentences into one. The problem is that is not cut the words that repeats.</p>
<p dir="auto">Search:<br />
\s+(.*?)</p>
<p dir="auto">Replace with:<br />
leave space</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19664</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19664</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Sat, 03 Dec 2016 21:02:30 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sat, 03 Dec 2016 18:59:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6250">@Frank-Orellana</a></p>
<p dir="auto">this is working fine !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19661</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19661</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Sat, 03 Dec 2016 18:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Sat, 03 Dec 2016 18:56:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/374">@Scott-Sumner</a></p>
<p dir="auto">I press 50 times “Replace all”, and nothing happen. There is a bug somewhere…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19660</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19660</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Sat, 03 Dec 2016 18:56:28 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 01 Dec 2016 21:47:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>Scott</strong>, <strong>glossar</strong> and <strong>vasile</strong>,</p>
<p dir="auto">Yes, <strong>Scott</strong>, <strong>two</strong> times are enough, indeed !. However, I replied to <strong>glossar</strong> for the <strong>general</strong> case where you do <strong>not</strong> know, <strong>exactly</strong>, what is the <strong>maximum</strong> of lines with <strong>“identical beginnings”</strong>, because of a <strong>huge</strong> file, for instance !</p>
<p dir="auto">In that case, it’s better to click on the <strong>Replace All</strong> button till the message <strong>0 occurrences were replaced</strong> appears ! Indeed, <strong>as long as</strong> yon obtain the message <strong><code>N</code>occcurrences were replaced</strong>, with <strong><code>N &gt; 0</code></strong>, you <strong>cannot</strong> guess that <strong>no more</strong> occurrence has to be replaced, the <strong>next</strong> time :-))</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19621</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19621</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 01 Dec 2016 21:47:14 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 01 Dec 2016 12:31:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said:</p>
<blockquote>
<p dir="auto">Click THREE times, on the Replace All button, till the message Replace All: 0 occurrences were replaced is displayed, in blue, at the bottom of the Replace dialog</p>
</blockquote>
<p dir="auto">Out of curiosity I tried it, and found that I had to press Replace All only <strong>TWO</strong> times to get a complete replacement on these three groupings of text.  The first press of Replace All does the first and third sets of data; the second press does the second set.  However, in the end, it changed the data as expected.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19604</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19604</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 01 Dec 2016 12:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 01 Dec 2016 05:48:45 GMT]]></title><description><![CDATA[<p dir="auto">no, after restart nothing change. And I installed the v.722, ant still doesn’t work. What a bug is this?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19596</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Thu, 01 Dec 2016 05:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Wed, 30 Nov 2016 22:51:49 GMT]]></title><description><![CDATA[<p dir="auto">hello. I am using v7.1, no update available.</p>
<p dir="auto">But, I had an error yesterday morning, something when N++ had to update Plugin Manager and a Npp plugin, don’t remember very well. I will restart the computer tomorow, and I will test again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19591</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19591</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Wed, 30 Nov 2016 22:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 01 Dec 2016 21:42:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <strong>Vasile</strong>,</p>
<p dir="auto">Ah, yes ! Quite weird ! From your <strong>print screen</strong> pictures, everything seems <strong>OK</strong> : We, both, have the <strong>same</strong> fields and options and, from the <strong>status</strong> bar, our <strong>encoding</strong> and <strong>line breaks</strong> are also <strong>identical</strong> !!??</p>
<p dir="auto">Moreover, I verified that the <strong>Glossar</strong>’s text, inserted in your <strong>new</strong> tab, does have the <strong>same</strong> displaying than my text ! This implies that you <strong>correctly</strong> inserted the <strong>tabulation</strong> characters ( of <strong>4 spaces</strong> characters, by default, like me ) !!??</p>
<p dir="auto">So, the <strong>only</strong> thing that could explain the <strong>search failure</strong> should be, that you, probably, inserted some <strong>invisible</strong> character(s) in the <strong>search</strong> regex ?</p>
<p dir="auto">But, I must admit that I’m really <strong>annoyed</strong> to <strong>not</strong> being able to point out the <strong>true</strong> reason of your N++'s search behaviour !</p>
<p dir="auto">See you later…</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
<p dir="auto">P.S. :</p>
<p dir="auto"><strong>Glossar</strong>, just see your reply to <strong>Vasile</strong>. Quite pleased  that it works <strong>as expected</strong>, on your configuration !</p>
<p dir="auto">BTW, some of us may could <strong>test</strong> my <strong>regex</strong> ? May be, it will help us to identify the <strong>problem</strong> :-)</p>
<p dir="auto">One more point, <strong>Vasile</strong>, which N++ <strong>version</strong> are you using ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19587</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19587</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 01 Dec 2016 21:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Wed, 30 Nov 2016 20:13:57 GMT]]></title><description><![CDATA[<p dir="auto">No, Vasile, it works!</p>
<p dir="auto">Here is my screenshot! :)</p>
<p dir="auto"><a href="https://snag.gy/V6acUA.jpg" rel="nofollow ugc">https://snag.gy/V6acUA.jpg</a></p>
<p dir="auto">By the way, this “Snaggy” website is cool! Posting a screenshot couldn’t indeed be easier! I have bookmarked it! Thank you! :)</p>
<p dir="auto">And finally, I find it a silly practice that new users have to wait for 1200 seconds in order for them to submit their second post!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19586</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19586</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Wed, 30 Nov 2016 20:13:57 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Wed, 30 Nov 2016 19:45:09 GMT]]></title><description><![CDATA[<p dir="auto">Guy - You’re the man! :) Thanks a million! It works! I can’t believe it, but it works!</p>
<p dir="auto">Thank you!</p>
<p dir="auto">By the way, I like the way you write, your writing style, and enjoy reading your posts! :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19585</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19585</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Wed, 30 Nov 2016 19:45:09 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Wed, 30 Nov 2016 14:11:44 GMT]]></title><description><![CDATA[<p dir="auto">hello Guy, nope, is not working. Please take a look on this print screen:</p>
<p dir="auto"><a href="https://snag.gy/6ts5Gy.jpg" rel="nofollow ugc">https://snag.gy/6ts5Gy.jpg</a></p>
<p dir="auto">or here</p>
<p dir="auto"><a href="https://snag.gy/O0ceRV.jpg" rel="nofollow ugc">https://snag.gy/O0ceRV.jpg</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/19574</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19574</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Wed, 30 Nov 2016 14:11:44 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Tue, 29 Nov 2016 22:31:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>glossar</strong> and <strong>Vasile</strong>,</p>
<p dir="auto">Hum… Very <strong>strange</strong> ! As for me, it works quite <strong>fine</strong> ! So, <strong>Vasile</strong>, let’s recapitulate :</p>
<ul>
<li>
<p dir="auto"><strong>glossar</strong>, from your <strong>original</strong> text, below :</p>
<p dir="auto">Line 344: bördelversuch TAB flanging test<br />
Line 345: bördelversuch TAB folding test<br />
…<br />
Line 28872: führungszapfen TAB guide pilot<br />
Line 28873: führungszapfen TAB guide pin<br />
Line 28874: führungszapfen TAB pilot pin<br />
…<br />
Line 659368: horizontal geteilt TAB horizontally divided<br />
Line 659369: horizontal geteilt TAB horizontally split</p>
</li>
<li>
<p dir="auto">And, taking in account that :</p>
<ul>
<li>
<p dir="auto">The string <strong><code>TAB</code></strong>, with a <strong>space</strong> character <strong>before</strong> and <strong>after</strong>, refers to a <strong>single tabulation</strong> character <strong><code>\t</code></strong> , of code <strong><code>\x09</code></strong></p>
</li>
<li>
<p dir="auto">The part <strong><code>line number #####: </code></strong>, that begins <strong>each</strong> line, for <strong>information</strong>, must be <strong>deleted</strong></p>
</li>
</ul>
</li>
</ul>
<p dir="auto">We, <strong>finally</strong>, get the text, to work on :</p>
<pre><code>bördelversuch	flanging test
bördelversuch	folding test

führungszapfen	guide pilot
führungszapfen	guide pin
führungszapfen	pilot pin

horizontal geteilt	horizontally divided
horizontal geteilt	horizontally split
</code></pre>
<p dir="auto">Now,</p>
<ul>
<li>
<p dir="auto">Move <strong>back</strong> the caret <strong>before</strong> the <strong>first</strong> line</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong>Ctrl + H</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>Find what</strong> zone, type the regex <strong><code>(?-s)^((.+\t).+)\R\2(.+)</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Replace with</strong> zone, type the regex <strong><code>\1, \3</code></strong> ,  with a <strong>SPACE</strong> character, after the <strong>comma</strong> symbol</p>
</li>
<li>
<p dir="auto"><strong>Select</strong> the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto"><strong>Uncheck all</strong> the <strong>other</strong> options</p>
</li>
<li>
<p dir="auto">Click <strong>THREE</strong> times, on the <strong>Replace All</strong> button,  till the message <strong>Replace All: 0 occurrences were replaced</strong> is displayed, in <strong>blue</strong>, at the bottom of the <strong>Replace</strong> dialog</p>
</li>
</ul>
<p dir="auto">You should get,as expected, the <strong>replaced</strong> text, below :</p>
<pre><code>bördelversuch	flanging test, folding test

führungszapfen	guide pilot, guide pin, pilot pin

horizontal geteilt	horizontally divided, horizontally split
</code></pre>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19559</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19559</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 29 Nov 2016 22:31:03 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Tue, 29 Nov 2016 18:05:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said:</p>
<blockquote>
<p dir="auto">(?-s)^((.+\t).+)\R\2(.+)</p>
</blockquote>
<p dir="auto">hello Guy38, something is wrong on this formula. Get an error: “Cannot find the text (?-s)^((.+\t).+)\R\2(.+)”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19551</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19551</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Tue, 29 Nov 2016 18:05:44 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Tue, 29 Nov 2016 08:34:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>glossar</strong>,</p>
<p dir="auto">Once again, regexes can do <strong>miracles</strong> :-)) Just follow these <strong>few</strong> steps , below :</p>
<ul>
<li>
<p dir="auto">Move back to  the <strong>very beginning</strong> of your file ( <strong>Ctrl + Origin</strong> )</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong>Ctrl + H</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>Find what</strong> zone, type the regex <strong><code>(?-s)^((.+\t).+)\R\2(.+)</code></strong></p>
</li>
<li>
<p dir="auto">In the <strong>Replace with</strong> zone, type the regex <strong><code>\1, \3</code></strong> ,  with a <strong>space</strong> character, after the <strong>comma</strong> symbol</p>
</li>
<li>
<p dir="auto"><strong>Uncheck</strong>, preferably, the <strong>Wrap around</strong> option</p>
</li>
<li>
<p dir="auto"><strong>Select</strong>, of course, the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong>Replace All</strong> button, <strong>SEVERAL</strong> times, till the message <strong>Replace All: 0 occurrences were replaced</strong> is displayed, in <strong>blue</strong>, at the bottom of the <strong>Replace</strong> dialog</p>
</li>
</ul>
<p dir="auto"><strong>REMARK</strong> :</p>
<ul>
<li>
<p dir="auto">This means that if, in your file, the <strong>maximum</strong> of <strong>consecutive</strong> lines with <strong>identical</strong> contents till the <strong>tabulation</strong> character, are <strong><code>N</code></strong>, you’ll have to hit <strong><code>N</code></strong> times, on the <strong>Replace All</strong> button, to get <strong>all</strong> the work done !</p>
</li>
<li>
<p dir="auto">Don’t forget that the <strong>caret</strong> does <strong>NOT</strong> move during the <strong>Replace All</strong> operation. So, it should stay <strong>stuck</strong> to the <strong>very beginning</strong> of your file !</p>
</li>
</ul>
<hr />
<p dir="auto"><strong>NOTES</strong> :</p>
<ul>
<li>
<p dir="auto">As usual, the <strong>in-line</strong> modifier <strong><code>(?-s)</code></strong> ensures you that the <strong>dot</strong> meta-character will match <strong>standard</strong> characters, only, even if you <strong>previously</strong> checked the <strong>. matches newline</strong> option !</p>
</li>
<li>
<p dir="auto">Then, the regex engine looks, from <strong>beginning</strong> of line (<strong><code>^</code></strong> ) for :</p>
<ul>
<li>
<p dir="auto">Any <strong>non-null</strong> range of characters ( <strong><code>.+</code></strong> ), followed by :</p>
</li>
<li>
<p dir="auto">A <strong>tabulation</strong> character ( <strong><code>\t</code></strong> ), followed by :</p>
</li>
<li>
<p dir="auto">Any other <strong>non-null</strong> range of characters ( <strong><code>.+</code></strong> ), followed by :</p>
</li>
<li>
<p dir="auto">Any kind of <strong>EOL</strong> characters ( <strong><code>\R</code></strong> ), followed by :</p>
</li>
<li>
<p dir="auto">The group <strong>2</strong>, which is ( <strong><code>.+\t</code></strong> ), that is to say, the <strong>SAME</strong> range of text, between <strong>beginning</strong> of line and the <strong>tabulation</strong> included, than in the <strong>previous</strong> line, and, finally, followed by :</p>
</li>
<li>
<p dir="auto">Any other <strong>non-null</strong> range of characters ( <strong><code>.+</code></strong> ), without <strong>line-break</strong>, stored as the group <strong>3</strong></p>
</li>
</ul>
</li>
<li>
<p dir="auto">Now, in <strong>replacement</strong>, we rewrite :</p>
<ul>
<li>
<p dir="auto">The group <strong>1</strong>, whose contents are <strong><code>(.+\t).+</code></strong>. That is to say, all the contents of the <strong>first</strong> line, <strong>without</strong> its <strong>line-break</strong>, followed by :</p>
</li>
<li>
<p dir="auto">A <strong>comma</strong> and a <strong>space</strong> characters</p>
</li>
<li>
<p dir="auto">The group <strong>3</strong>, which represents the <strong>part</strong> of text, after the <strong>tabulation</strong> character, in the <strong>second</strong> line</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">It’s not very difficult to understand that, as we, <strong>always</strong>, rewrite, <strong>first</strong>, <strong>all</strong> the contents of a line, followed by the <strong>second</strong> part of the <strong>next</strong> line, this process is <strong>cumulative</strong> on <strong>any</strong> amount of lines, whose part, before the <strong>tabulation</strong> character, are <strong>identical</strong> !</p>
<p dir="auto">Hope that this <strong>S/R</strong> may helps you, <strong>Glossar</strong> !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19526</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19526</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 29 Nov 2016 08:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Mon, 28 Nov 2016 17:59:42 GMT]]></title><description><![CDATA[<p dir="auto">use a regex, compare 2 sentences, and add all new words on the last of the first sentence.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19525</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19525</guid><dc:creator><![CDATA[Vasile Caraus]]></dc:creator><pubDate>Mon, 28 Nov 2016 17:59:42 GMT</pubDate></item><item><title><![CDATA[Reply to How do I merge two or more consecutive lines into one? on Thu, 24 Nov 2016 06:55:02 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your reply, Frank!</p>
<p dir="auto">At first I thought the “table” in your formula is a kind of function word, but it is not.</p>
<p dir="auto">Basically I need a regex expression or a Notepad++ function or a combination of both that will perform the following expression: (I hope I can express: ) )</p>
<p dir="auto"><em>“If the text up to the tab (\t) in a line is the same as the text(s) up to the tab(s) in the consecutive line(s), keep one occurrence of them and merge everything on the right hand sides of the tabs in the consecutive lines in question.”</em></p>
<p dir="auto">Another example (and by “TAB” I mean “\t”):</p>
<p dir="auto"><strong>Before:</strong><br />
Line 344: <em>bördelversuch TAB flanging test</em><br />
Line 345: <em>bördelversuch TAB folding test</em><br />
…<br />
Line 28872: <em>führungszapfen TAB guide pilot</em><br />
Line 28873: <em>führungszapfen TAB guide pin</em><br />
Line 28874: <em>führungszapfen TAB pilot pin</em><br />
…<br />
Line 659368: <em>horizontal geteilt TAB horizontally divided</em><br />
Line 659369: <em>horizontal geteilt TAB horizontally split</em></p>
<p dir="auto"><strong>After:</strong><br />
Line 344: <em>bördelversuch TAB flanging test, folding test</em><br />
…<br />
Line 28872: <em>führungszapfen TAB guide pilot, guide pin, pilot pin</em><br />
…<br />
Line 659368: <em>horizontal geteilt TAB horizontally divided, horizontally split</em></p>
<p dir="auto">Maybe you could extend and generalize your formula accordingly?</p>
<p dir="auto">Thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19445</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19445</guid><dc:creator><![CDATA[glossar]]></dc:creator><pubDate>Thu, 24 Nov 2016 06:55:02 GMT</pubDate></item></channel></rss>