<?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[Match and replace specific word between two tag symbol]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I’m trying to rename a specific word within tag symbol and i just cant figure it out and already tried looking on examples but still I’m stuck. Kindly please help.</p>
<p dir="auto">Example: I want to rename the word “LOCAL” to “SPACE” but only within &lt;div&gt;xx…xx&lt;/div&gt;.<br />
&lt;div&gt;xxMETADATA-LOCALX1-ROOMG1-LEVELB2xx&lt;/div&gt;<br />
&lt;div class=“metadata”&gt;METADATA-LOCALX1-ROOMG1-LEVELB2&lt;/div&gt;</p>
<p dir="auto">Expected Result:<br />
&lt;div&gt;xxMETADATA-LOCALX1-SPACEG1-LEVELB2xx&lt;/div&gt;<br />
&lt;div class=“metadata”&gt;METADATA-LOCALX1-ROOMG1-LEVELB2&lt;/div&gt;</p>
<p dir="auto">Thank you very much.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15250/match-and-replace-specific-word-between-two-tag-symbol</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 10:19:24 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15250.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Feb 2018 18:35:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Match and replace specific word between two tag symbol on Wed, 14 Feb 2018 18:41:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/jade-owen" aria-label="Profile: jade-owen">@<bdi>jade-owen</bdi></a>,</p>
<p dir="auto">I’m a bit <strong>perplexed</strong> ! Indeed, from your example, it looks as you would change the <strong>upper-case</strong> string <strong><code>ROOM</code></strong> with the <strong>upper-case</strong> string <strong><code>SPACE</code></strong>, when within a <strong><code>&lt;div&gt;.......&lt;/div&gt;</code></strong> range, only… and <strong>NOT</strong> the <strong><code>LOCAL</code></strong> string !!</p>
<p dir="auto">If it’s <strong>really</strong> what you want, the regex, below, should do the job, <strong>strictly</strong> !</p>
<p dir="auto">SEARCH <strong><code>(?-is)(&lt;div&gt;.*?LOCAL..-)(.*?)(?=..-.*?&lt;/div&gt;)</code></strong></p>
<p dir="auto">REPLACE <strong><code>\1SPACE</code></strong></p>
<p dir="auto">OPTIONS Tick the <strong><code>Wrap around</code></strong> and <strong><code>Regular expression</code></strong> options</p>
<p dir="auto">ACTION  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>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">Generally speaking, it’s important to point out that <strong>regexes</strong> are very <strong>dependent</strong> of the text they are applying against ! Even a simple <strong>additional</strong> space character, in a text, can break out <strong>matches</strong> detection of a <strong>well-formed</strong> regex !</p>
<p dir="auto">So, I advice everyone, which wants a specific <strong>search/replacement</strong>, to <strong>carefully</strong> describe :</p>
<ul>
<li>
<p dir="auto">The <strong>searched</strong> text which must be matched</p>
</li>
<li>
<p dir="auto">The <strong>replacement</strong> text which will be inserted, instead</p>
</li>
</ul>
<p dir="auto">Doing this way should help out to build the <strong>right</strong> regex(es) and assures you to get a <strong>quicker</strong> solution, too ;-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/30279</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/30279</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 14 Feb 2018 18:41:54 GMT</pubDate></item></channel></rss>