<?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[Help for mass replacement.]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I need help!</p>
<p dir="auto">There is a design type:</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/2-2.jpg”&gt;&lt;img src=“/wp-content/uploads/2018/10/2-2.jpg” alt=“Ergobag1111” width=“1000” height=“708” class=“aligncenter size-full wp-image-21814” /&gt;&lt;/a&gt;</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/3-2.jpg”&gt;&lt;img src=“/wp-content/uploads/2018/10/3-2.jpg” alt=“Ergobag2222” width=“1100” height=“652” class=“aligncenter size-full wp-image-21815” /&gt;&lt;/a&gt;</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/4-2.jpg”&gt;&lt;img src=“/wp-content/uploads/2018/10/4-2.jpg” alt=“Ergobag3333” width=“1200” height=“497” class=“aligncenter size-full wp-image-21816” /&gt;&lt;/a&gt;</p>
<p dir="auto">We need to redo it into the next view:</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/2-2.jpg” class=“item” style=“background-image: url(‘/wp-content/uploads/2018/10/2-2.jpg’)” data-alt=“Ergobag1111” &gt;&lt;/a&gt;</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/3-2.jpg” class=“item” style=“background-image: url(‘/wp-content/uploads/2018/10/3-2.jpg’)” data-alt=“Ergobag2222” &gt;&lt;/a&gt;</p>
<p dir="auto">&lt;a href=“/wp-content/uploads/2018/10/4-2.jpg” class=“item” style=“background-image: url(‘/wp-content/uploads/2018/10/4-2.jpg’)” data-alt=“Ergobag3333” &gt;&lt;/a&gt;</p>
<p dir="auto">I tried to make it a team:</p>
<p dir="auto">(“&gt;&lt;img src=”)|(" width=“.<em>" height=".</em>” class=“.* /&gt;&lt;/a&gt;)|(” width=“.<em>" height=".</em>” class=".* /&gt;&lt;/a&gt;)</p>
<p dir="auto">(?1" class=“item” style=“background-image: url(‘)(?2’)” data-alt=“)(?3” &gt;&lt;/a&gt;)</p>
<p dir="auto">But it does not work correctly.</p>
<p dir="auto">I want to do exactly that the replacement occurred as a team.</p>
<p dir="auto">Please, help!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17551/help-for-mass-replacement</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 16:28:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17551.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 May 2019 14:03:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help for mass replacement. on Wed, 01 May 2019 17:09:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello, владимир-антониковn, and <strong>All</strong>,</p>
<p dir="auto">Assuming that your <strong>XML</strong> text uses :</p>
<ul>
<li>
<p dir="auto">Regular <strong>Simple quote</strong> ( <strong><code>'</code></strong> ), of Unicode value <strong><code>\x{0027}</code></strong>, and <strong>not</strong> the characters <strong><code>‘</code></strong> and <strong><code>’</code></strong></p>
</li>
<li>
<p dir="auto">Regular <strong>Double quote</strong> ( <strong><code>"</code></strong> ), of Unicode value <strong><code>\x{0022}</code></strong>, and <strong>not</strong> the characters <strong><code>“</code></strong> and <strong><code>”</code></strong></p>
</li>
</ul>
<p dir="auto">These changes of text can be easily done with <strong>regular</strong> expressions :-))</p>
<hr />
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>&gt;&lt;img src="(.*?)"\x20(alt=".+?").+?\x20/(&gt;&lt;/a&gt;)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>\x20class="item"\x20style="background-image:\x20url\('\1'\)"\x20data-\2\x20\3</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong>, preferably, the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click, <strong>once</strong> on the <strong><code>Replace All</code></strong> button or <strong>several</strong> times on the <strong><code>Replace</code></strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto">If OK, I’ll give you some <strong>explanations</strong> on that <strong>regex</strong> S/R, next time</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42787</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42787</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 01 May 2019 17:09:19 GMT</pubDate></item></channel></rss>