<?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[Transpose multiple lines Horizontally in rows]]></title><description><![CDATA[<p dir="auto">Hi<br />
I have data where</p>
<p dir="auto"><strong>chinttt:</strong><br />
<em>6 PC COMBO BAGS</em><br />
Price     - <em>740+$</em><br />
SHIPPING - <em>80 per pc</em><br />
STOCK - Available in <em>5 COLOURS</em><br />
<em>NOTE:CONFORM  COLOUR OF ACCESSORIES B4 BOOKING</em><br />
image-url:test.com/huhhu</p>
<p dir="auto"><strong>chinttt:</strong></p>
<ul>
<li>SPECIAL 6 PC COMBO *</li>
</ul>
<p dir="auto">◾️<strong>BOAT EARPHONE **<br />
◾️</strong>ONE PLUS EARPHONE **<br />
*🤗😋🦾6 PC COMBO *</p>
<ul>
<li>BEFORE  PRICE     1150*<br />
*<em>OFFER  PRICE     1150</em><br />
*SHIPPING EXTRA *</li>
<li>FULL SALE COMBO TAKE ORDER FAST*<br />
image-url:test.com/huhhu</li>
</ul>
<p dir="auto"><strong><strong>chinttt</strong>:</strong><br />
<em>BACK AGAIN</em><br />
*QUALITY GUARANTEED *<br />
BRAND    ::: <em>MICHAEL KORS</em><br />
PRICE          :::  <em>450+$</em><br />
SHPNG    ::: 80 fix per combo if service available at given PINCODE.</p>
<p dir="auto">i would like to transpose this in two columns  fields  where data is mapped correctly as under chinttt like</p>
<p dir="auto"><strong>price</strong>                          <strong>details</strong>                       <strong>email</strong></p>
<p dir="auto">740                                6 PC COMBO BAGS<br />
                       SHIPPING - 80 per pc<br />
                        STOCK - Available in 5 COLOURS<br />
1150              NOTE:CONFORM COLOUR OF ACCESSORIES B4 BOOKING<br />
                              SPECIAL 6 PC COMBO *<br />
                       ◾️BOAT EARPHONE **<br />
                       ◾️ONE PLUS EARPHONE **<br />
                       <em>🤗😋🦾6 PC COMBO *<br />
                       BEFORE PRICE 1150</em><br />
                        *OFFER PRICE 1150<br />
                        <em>SHIPPING EXTRA *<br />
                       FULL SALE COMBO TAKE ORDER FAST</em></p>
<p dir="auto">450…so on<br />
How can we acheive this</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20273/transpose-multiple-lines-horizontally-in-rows</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 13:48:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20273.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Nov 2020 19:53:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Sat, 07 Nov 2020 02:42:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/akruti-clinic" aria-label="Profile: Akruti-Clinic">@<bdi>Akruti-Clinic</bdi></a> said in <a href="/post/59498">Transpose multiple lines Horizontally in rows</a>:</p>
<blockquote>
<p dir="auto">No data changed</p>
</blockquote>
<p dir="auto">I am referring to this<br />
<img src="/assets/uploads/files/1604716554475-3027cd08-02f8-4d28-bf77-1c33c8fcc4a0-image.png" alt="3027cd08-02f8-4d28-bf77-1c33c8fcc4a0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The order of the lines changed and some text was missing, namely <code>Price -</code> which showed on the first line immediately behind chinttt.</p>
<p dir="auto">I am thinking that English is not your primary language as the last sentence you wrote <code>i thinks its going more comple will find another,</code> I do not understand. If you are still having issues, explain the problem. As you supplied some “real data” which allowed me to fix the previous problem, maybe you can show further examples where the process did not work and maybe it is still possible to update the solution to accommodate any other need.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59516</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59516</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 07 Nov 2020 02:42:43 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Fri, 06 Nov 2020 10:14:53 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for Explaining well.<br />
You question<br />
<strong>One question though, why did you alter the first example in your first post so that 6 PC COMBO BAGS was before the price line where in the latest version it clearly isn’t?</strong><br />
No data changed i want to have two columns with complete line with string price to right so that shift+alt+arrow can be used to pull price separate;y to be copied to excel like column a with data and b with price…i thinks its going more comple will find another,</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59498</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59498</guid><dc:creator><![CDATA[Akruti Clinic]]></dc:creator><pubDate>Fri, 06 Nov 2020 10:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Thu, 05 Nov 2020 18:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/akruti-clinic" aria-label="Profile: Akruti-Clinic">@<bdi>Akruti-Clinic</bdi></a> said in <a href="/post/59461">Transpose multiple lines Horizontally in rows</a>:</p>
<blockquote>
<p dir="auto">to filter data  from whatsapp group export chat with media</p>
</blockquote>
<p dir="auto">Those examples look very different now. And it makes the reason why my solution failed very clear. If you are able to understand regex at all (I did try and make it fairly simple) I was looking for <code>chinttt:</code> on a line all by itself with a carriage return/line feed immediately behind.  In your first example the price is on the same line so it doesn’t work. So that was another assumption I had made.</p>
<p dir="auto">To make it work it is fairly simple to sort out. We just need to have <strong>chinttt</strong> on a separate line. So the first step, call it:<br />
0.5  Replace function<br />
Find What:<code>^(chinttt:)</code><br />
Replace With:<code>\1\r\n</code></p>
<p dir="auto">The rest of the steps will follow as already stated.<br />
If <strong>chinttt</strong> already is on a line by itself it doesn’t matter as eventually we remove all blank lines.</p>
<p dir="auto">One question though, why did you alter the first example in your first post so that <strong>6 PC COMBO BAGS</strong> was before the <strong>price</strong> line where in the latest version it clearly isn’t? When we try to help we aren’t impressed in fabricated examples. As you can see now, it clearly confuses the issue.</p>
<p dir="auto">So a note for any future requests, provide clear unaltered examples.</p>
<p dir="auto">Terry.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59476</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59476</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 05 Nov 2020 18:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Thu, 05 Nov 2020 15:34:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/59436">Transpose multiple lines Horizontally in rows</a>:</p>
<pre><code>chinttt: Price -                            price 740+$
6 PC COMBO BAGS
SHIPPING - 80 per pc
STOCK - Available in 5 COLOURS
NOTE:CONFORM COLOUR OF ACCESSORIES B4 BOOKING
image-url:test.com/huhhu

chinttt:

SPECIAL 6 PC COMBO *
◾️BOAT EARPHONE **
◾️ONE PLUS EARPHONE **
*🤗😋🦾6 PC COMBO *

                                       BEFORE PRICE 1150*
                                        *OFFER PRICE 1150
*SHIPPING EXTRA *
FULL SALE COMBO TAKE ORDER FAST*
image-url:test.com/huhhu
chinttt:
BACK AGAIN
*QUALITY GUARANTEED *
BRAND ::: MICHAEL KORS
                                         PRICE ::: 450+$
SHPNG ::: 80 fix per combo if service available at given PINCODE
</code></pre>
<p dir="auto"><strong>so if we can transpose complete line  containing text price.</strong><br />
To be precise i am trying notepad++ to filter data  from whatsapp group export chat with media which is highly unorganized with one common word price attached to every chat date wise and mobile number.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59461</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59461</guid><dc:creator><![CDATA[Akruti Clinic]]></dc:creator><pubDate>Thu, 05 Nov 2020 15:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Thu, 05 Nov 2020 05:38:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/akruti-clinic" aria-label="Profile: Akruti-Clinic">@<bdi>Akruti-Clinic</bdi></a> said in <a href="/post/59438">Transpose multiple lines Horizontally in rows</a>:</p>
<blockquote>
<p dir="auto">With 200 entries under chintt didn’t worked</p>
</blockquote>
<p dir="auto">I suggested this would occur. You need to provide the examples in a better format, it is possible the data is being altered by the posting system. To show data without any issue, insert it into your post. Then select all the data and click on the <code>&lt;/&gt;</code> button above the window. That will show it within the black box as you will see I have done in my previous post.</p>
<p dir="auto">Are you able to identify why it did not work, was it only some data sets that did not convert? Did you check that ALL sets contain the string <strong>price</strong> followed by a number?</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59439</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59439</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 05 Nov 2020 05:38:04 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Thu, 05 Nov 2020 03:23:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Terry for clear explanation .With 200 entries under chintt didn’t worked  .<br />
Instead can we move the whole line with string price like<br />
Price - 740+$              $              <strong>its data</strong></p>
<p dir="auto">BEFORE PRICE 1150* $               <strong>its data</strong><br />
*OFFER PRICE 1150</p>
<p dir="auto">PRICE ::: 450+$ $               $       <strong>its data</strong></p>
<p dir="auto">Regards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59438</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59438</guid><dc:creator><![CDATA[Akruti Clinic]]></dc:creator><pubDate>Thu, 05 Nov 2020 03:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Thu, 05 Nov 2020 01:41:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/59411">Transpose multiple lines Horizontally in rows</a>:</p>
<blockquote>
<p dir="auto">Regex expect some consistency in the data, regular data/formats and lines. All 3 examples provided have none of that.</p>
</blockquote>
<p dir="auto">I doubt this is a sane move, but here goes. I still stand by my original assessment that the data appears to be far too variable to consider running 1 (or more) regexes over it in the hope of reformatting it. But I love a challenge and actually in so far as the process itself, it isn’t too difficult. What will be the issue is obtaining the correct <em><strong>Price value</strong></em> from each set of data. The rest of the fields don’t matter and as there is a handy delimiter between sets <strong>(chinttt:)</strong> it makes it easier in some respects. At the end of the day if it doesn’t work I’ve wasted some time in putting together a possible solution and the requester may waste a small amount of time testing it. On the other hand if it works…???</p>
<p dir="auto">Assumptions:</p>
<ol>
<li><code>MOST IMPORTANT!</code> Each set <strong>MUST</strong> contain at least 1 set of characters <strong>Price</strong>, the case of each letter does NOT matter (price, PRICE, pRiCe etc). The numerical value captured will be the first set of number(s) following. As an example if we have <code>Price - per 2 items @ 740+$</code> the regex will pick <code>2</code> since that is the first numerical value following the string <code>Price</code>.</li>
<li>In the situation where there are multiple <code>Price</code> in a set the first one will be used, EVERY TIME! As an example if we have</li>
</ol>
<pre><code>BEFORE PRICE 75*
*OFFER PRICE 1150
</code></pre>
<p dir="auto">Then the value picked will be <code>75</code> If however the 75 was missing then 1150 will be used even though it follows the second string <code>Price</code> as it is the <strong>FIRST</strong> numerical value following the first string <em><strong>Price</strong></em>.<br />
3. Blank Lines will be removed during this process, that is if any sets contain a blank line (even a line containing multiple spaces), it will be removed.</p>
<p dir="auto">I started with:</p>
<pre><code>chinttt:
6 PC COMBO BAGS
Price - 740+$
SHIPPING - 80 per pc
STOCK - Available in 5 COLOURS
NOTE:CONFORM COLOUR OF ACCESSORIES B4 BOOKING
image-url:test.com/huhhu

chinttt:

SPECIAL 6 PC COMBO *
◾️BOAT EARPHONE **
◾️ONE PLUS EARPHONE **
*🤗😋🦾6 PC COMBO *

BEFORE PRICE 1150*
*OFFER PRICE 1150
*SHIPPING EXTRA *
FULL SALE COMBO TAKE ORDER FAST*
image-url:test.com/huhhu
chinttt:
BACK AGAIN
*QUALITY GUARANTEED *
BRAND ::: MICHAEL KORS
PRICE ::: 450+$
SHPNG ::: 80 fix per combo if service available at given PINCODE.
</code></pre>
<p dir="auto">The steps:</p>
<ol>
<li>
<p dir="auto">Replace the delimiter <em><strong>chinttt:</strong></em> with the Price numerical value followed by a single space. Find the first occurrence of <em><strong>Price</strong></em> and find the first numerical value immediately following, even if some other characters between. See assumption #1.<br />
Replace function<br />
Find What:<code>^(chinttt:)(\R)(?s)(.*?price.*?((\d+)))(.*?)(?=\1|\z)</code><br />
Replace With:<code>\4 \2\3\6</code></p>
</li>
<li>
<p dir="auto">Clear all blank/empty lines<br />
Line Operations, remove empty lines (containing blank characters)</p>
</li>
<li>
<p dir="auto">Indent all lines except the price line (1st line of set)<br />
Replace function<br />
Find What:<code>^(?!\d+ \R)</code><br />
Replace With:<code>        </code> 10 spaces</p>
</li>
<li>
<p dir="auto">Move the price down to the 1st line of data and keep indentation correct. Run repeatedly (replace all) until no more changes made<br />
Replace function<br />
Find What:<code>(?-s)^(\d*?)(\d)(\h\R)(\d+)?(\h)</code><br />
Replace With:<code>\1\3\2\4</code></p>
</li>
<li>
<p dir="auto">Clear all blank/empty lines<br />
Line Operations, remove empty lines (containing blank characters)</p>
</li>
</ol>
<p dir="auto">and finished up with:</p>
<pre><code>740       6 PC COMBO BAGS
          Price - 740+$
          SHIPPING - 80 per pc
          STOCK - Available in 5 COLOURS
          NOTE:CONFORM COLOUR OF ACCESSORIES B4 BOOKING
          image-url:test.com/huhhu
1150      SPECIAL 6 PC COMBO *
          ◾️BOAT EARPHONE **
          ◾️ONE PLUS EARPHONE **
          *🤗😋🦾6 PC COMBO *
          BEFORE PRICE 1150*
          *OFFER PRICE 1150
          *SHIPPING EXTRA *
          FULL SALE COMBO TAKE ORDER FAST*
          image-url:test.com/huhhu
450       BACK AGAIN
          *QUALITY GUARANTEED *
          BRAND ::: MICHAEL KORS
          PRICE ::: 450+$
          SHPNG ::: 80 fix per combo if service available at given PINCODE.
</code></pre>
<p dir="auto">Note that the second column above <strong>IS</strong> aligned, the character in front of <strong>BOAT</strong> and <strong>ONE</strong> may not be visible making it appear as if it is misaligned.</p>
<p dir="auto">I deliberately made the process a number of easy to understand steps. This was because trying to minimise the number of steps would have unnecessarily complicated understanding, and therefore the ability to alter to suit the data if this does not work. I do consider that possibility to be great.</p>
<p dir="auto">So you the requester might well undertake to use this and see if the data comes out OK, if so then I strongly suggest working on a copy of the data. If the process did NOT work as expected you may want to post further questions, or if it DID work we would like to know! Consider that I (or anyone) may or may NOT supply further help due to what seems to be highly variable data that may NOT react well to this type of editing.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59436</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59436</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 05 Nov 2020 01:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to Transpose multiple lines Horizontally in rows on Wed, 04 Nov 2020 20:05:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/akruti-clinic" aria-label="Profile: Akruti-Clinic">@<bdi>Akruti-Clinic</bdi></a> said in <a href="/post/59410">Transpose multiple lines Horizontally in rows</a>:</p>
<blockquote>
<p dir="auto">i would like to transpose this in two columns  fields  where data is mapped correctly as under chinttt like</p>
</blockquote>
<p dir="auto">My initial thought is that this will be difficult with a regular expression (regex). Regex expect some consistency in the data, regular data/formats and lines. All 3 examples provided have none of that.<br />
The first set has <code>Price - 740+$</code>, second <code>BEFORE PRICE 1150* *OFFER PRICE 1150</code> and third <code>PRICE ::: 450+$</code>. So first and third are similar but not the same (different delimiter between word and value, and also the case of the word, Price vs. PRICE) and the second has 2 prices, so which one to pick? How many other variations to the data are there?</p>
<p dir="auto">About the only consistent item I can see is each set is started by the <code>chinttt:</code> At this point I would seriously consider not using regex as likely the result would be questionable.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/59411</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/59411</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Wed, 04 Nov 2020 20:05:14 GMT</pubDate></item></channel></rss>