<?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[REGEX: Change the name in reverse order]]></title><description><![CDATA[<p dir="auto">The names are upside down, I want to change them in ascending order. They are from 152 to 162 in the name on the hdd, but actually it was a mistake, they should have the files in the reverse order. So after replace I will have 162 instead of 151 and so on.</p>
<p dir="auto">Example:</p>
<pre><code>masini-unelte-emil-botez-carte-p1_compress_Page_151.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_152.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_153.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_154.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_155.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_156.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_157.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_158.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_159.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_160.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_161.jpg
masini-unelte-emil-botez-carte-p1_compress_Page_162.jpg
</code></pre>
<p dir="auto">So the basis would be this.<br />
FIND: <code>masini-unelte-emil-botez-carte-p1_compress_Page_\d+(.*?)\.jpg</code></p>
<p dir="auto">from here I have to select all the names and change the part of \d+ i.e. the numbers, so that I can reverse them.</p>
<p dir="auto">Output must be: <code>(162 ↔ 151; 161 ↔ 152; 160 ↔ 153...)</code></p>
<p dir="auto">I try this, but not very good:</p>
<p dir="auto">FInd: <code>_Page_(15([1-9])|16([0-2]))\.jpg</code><br />
Replace: <code>_Page_\2\3\1.jpg</code></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27640/regex-change-the-name-in-reverse-order</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 09:02:28 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27640.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Aug 2026 07:15:45 GMT</pubDate><ttl>60</ttl></channel></rss>