<?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[Move Line Up]]></title><description><![CDATA[<p dir="auto">Hello, my project manager wants me to move the “#DESCRIPTION” line above the “#SERVICE” line. Our master list contains several hundred entries. Can I highlight all “#DESCRIPTION” lines and move them above the “#SERVICE” line?</p>
<p dir="auto">Thank you.</p>
<pre><code>#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/27245/move-line-up</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 12:34:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27245.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Nov 2025 22:37:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Move Line Up on Mon, 17 Nov 2025 04:27:00 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></p>
<p dir="auto">More good information. Thank you!</p>
<p dir="auto">Barry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103810</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103810</guid><dc:creator><![CDATA[Barry Lort]]></dc:creator><pubDate>Mon, 17 Nov 2025 04:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to Move Line Up on Sat, 15 Nov 2025 04:56:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-lort" aria-label="Profile: barry-lort">@<bdi>barry-lort</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-lort" aria-label="Profile: barry-lort">@<bdi>barry-lort</bdi></a>, here is an <strong>other</strong> method to solve your problem !</p>
<p dir="auto">Let’s suppose that your file contains <strong><code>100</code></strong> lines, so <strong><code>50</code></strong> lines beginning with <strong><code>#SERVICE</code></strong> and <strong><code>50</code></strong> lines beginning with <strong><code>#DESCRIPTION</code></strong>, as below :</p>
<pre><code class="language-diff">#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
#SERVICE:4:8:1:6:0
#DESCRIPTION   Angus
#SERVICE:4:7:0:3:0:
#DESCRIPTION   Ayrshire 
#SERVICE:5:8:4:1:0
#DESCRIPTION   Brown-Swiss
#SERVICE:3:6:7:1:0
#DESCRIPTION   Galloway
#SERVICE:4:9:2:5:0
#DESCRIPTION   Guernsey
#SERVICE:6:4:7:8:0
#DESCRIPTION   Hereford 
#SERVICE:2:7:4:1:0
#DESCRIPTION   Holstein
#SERVICE:6:4:2:9:0
#DESCRIPTION   Piedmontese 
#SERVICE:3:6:3:1:0
#DESCRIPTION   Scottish-Highland
#SERVICE:4:4:9:3:0
#DESCRIPTION   Shorthorn
</code></pre>
<hr />
<p dir="auto">Now, just follow this <strong>road map</strong> :</p>
<ul>
<li>
<p dir="auto">Select any string <strong><code>#SERVICE</code></strong></p>
</li>
<li>
<p dir="auto">Run the <strong><code>Edit &gt; Multi-select All &gt; Match Case Only</code></strong> option</p>
</li>
</ul>
<p dir="auto">=&gt; All strings <strong><code>#SERVICE</code></strong> should have been <strong>selected</strong></p>
<ul>
<li>
<p dir="auto">Use the <strong><code>Shift + End</code></strong> shortcut to <strong>extend</strong> the selection to the <strong>end</strong> of each line</p>
</li>
<li>
<p dir="auto">Use the <strong><code>Ctrl + X</code></strong> shortcut to <strong>delete</strong> these lines and place them in the <strong>clipboard</strong></p>
</li>
<li>
<p dir="auto">Hit <strong>two</strong> times on the <strong><code>Down arrow</code></strong> key</p>
</li>
</ul>
<p dir="auto">=&gt; Each <strong>cursor/caret</strong> should had been moved <strong>two</strong> lines under</p>
<ul>
<li>
<p dir="auto">Use the <strong><code>Ctrl + V</code></strong> shortcut to recopy all <strong><code>#SERVICE</code></strong> lines to their <strong>new</strong> location</p>
</li>
<li>
<p dir="auto">Finally, hit the <strong><code>ESC</code></strong> key to clear the current <strong>multi-selection</strong></p>
</li>
</ul>
<p dir="auto">Voila !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">We could use the <strong>multi-selection</strong> of all <strong><code>#DESCRIPTION</code></strong> lines, either ! But, in that case, you need to :</p>
<ul>
<li>
<p dir="auto">Add an <strong><code>empty</code></strong> line at the <strong>very beginning</strong> of your file</p>
</li>
<li>
<p dir="auto">Hit <strong>two</strong> times on the <strong><code>Up arrow</code></strong> key, right <strong>before</strong> the <strong>pasting</strong> operation</p>
</li>
</ul>
<p dir="auto"><strong>P.P.S.</strong> :</p>
<p dir="auto">A similar <strong>regex</strong> S/R  could be :</p>
<p dir="auto">FIND <strong><code>(?-s)^(.+\R)(.+(\R)?)</code></strong></p>
<p dir="auto">REPLACE <strong><code>$2(?3:\r\n)$1</code></strong></p>
<p dir="auto">Note that the <strong>conditional</strong> replacement <strong><code>(?3:\r\n)</code></strong> manages the case where your <strong>last</strong> <strong><code>#DESCRIPTION</code></strong> line  would <strong>not</strong> end with a <strong>line-break</strong> !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103803</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 15 Nov 2025 04:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to Move Line Up on Thu, 13 Nov 2025 23:45:23 GMT]]></title><description><![CDATA[<p dir="auto">Ok I see the “Useful References” link under Regex Special Characters for Searches, that explains it pretty well.</p>
<p dir="auto">Thanks again.</p>
<p dir="auto">Barry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103800</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103800</guid><dc:creator><![CDATA[Barry Lort]]></dc:creator><pubDate>Thu, 13 Nov 2025 23:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to Move Line Up on Thu, 13 Nov 2025 23:33:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">Yes that works very well. Thank you so much. So the $ is a “backreference” in replacement strings when using regular expressions in the Find and Replace dialog?</p>
<p dir="auto">Barry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103799</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103799</guid><dc:creator><![CDATA[Barry Lort]]></dc:creator><pubDate>Thu, 13 Nov 2025 23:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to Move Line Up on Thu, 13 Nov 2025 23:06:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/barry-lort" aria-label="Profile: Barry-Lort">@<bdi>Barry-Lort</bdi></a> ,</p>
<p dir="auto">FIND = <code>(^#SERVICE.*)(\R)(^#DESCRIPTION.*)(\R?)</code><br />
REPLACE = <code>$3$2$1$2</code><br />
SEARCH MODE = <code>Regular Expression</code></p>
<p dir="auto">This puts the <code>#SERVICE</code> line in memory slot 1, the newline in memory slot 2, the <code>#DESCRIPTION</code> in memory slot 3, and the second newline in slot 4.  (But because files sometimes don’t end in a newline, I made it optional with the <code>?</code></p>
<p dir="auto">The replacement uses slot 3, then 2, then 1, then 2 again, to swap the order of 1 and 3, and to make sure there’s always a newline, whether it was the last line of the file or not.</p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ Online User Manual: Searching/Regex</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find other regular expressions (regex) documentation</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/103798</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103798</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Nov 2025 23:06:55 GMT</pubDate></item></channel></rss>