<?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[Deleting specific string from entire xml file?]]></title><description><![CDATA[<p dir="auto">I know it sounds easy enough but its not in my case. I am trying to edit a massive xml file, Im modding the game “7 Days to Die”. Throughout the file there are strings called &lt;entityGroup=“spiderZombie” prob=“xxx”/&gt; but the prob is a different number in each one. Therefore, I cannot simply search and replace. If i did it would still have to have the remainder, and would leave the end parts prob=“xxx”/&gt; all over the place.</p>
<p dir="auto">Is there any way, I could replace all of these strings, even though they all have different values within them? It is listed like 600 times in the file, which is why I do not want to manually go through each search result and delete the string. Any help appretiated. ty - team_caffeine</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/14671/deleting-specific-string-from-entire-xml-file</link><generator>RSS for Node</generator><lastBuildDate>Sun, 14 Jun 2026 19:10:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/14671.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Oct 2017 15:36:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deleting specific string from entire xml file? on Mon, 23 Oct 2017 19:08:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/team-caffeine" aria-label="Profile: Team-Caffeine">@<bdi>Team-Caffeine</bdi></a></p>
<p dir="auto">The last part of Guy’s expression:</p>
<pre><code>\d+
</code></pre>
<p dir="auto">means 1 or more digits.  If you want a digit, a period, and exactly 3 digits, one way is to use this:</p>
<pre><code>\d\.\d{3}
</code></pre>
<p dir="auto">The first <strong>\d</strong> is for a single digit. The <strong>\.</strong> is for a period (the period means any character whatsoever unless it has a \ in front of it). The final <strong>\d{3}</strong> means exactly 3 digits.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27556</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27556</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Mon, 23 Oct 2017 19:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting specific string from entire xml file? on Mon, 23 Oct 2017 17:47:47 GMT]]></title><description><![CDATA[<p dir="auto">Thank you! Im sure this will work, but I am very inexperienced in coding so I still need a little help. The integer is always in the format “0.000”. I tried searching for what you suggested but it did not find anything, however, I don’t know how to change it to where it would find them in this format. All of the values start with 0, and then have three digits after a decimal. So the 3 numbers after the decimal are the only changing factors.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27555</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27555</guid><dc:creator><![CDATA[Team Caffeine]]></dc:creator><pubDate>Mon, 23 Oct 2017 17:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting specific string from entire xml file? on Mon, 23 Oct 2017 17:28:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/team-caffeine" aria-label="Profile: team-caffeine">@<bdi>team-caffeine</bdi></a>,</p>
<p dir="auto">This kind of manipulation is <strong>very easily</strong> performed, with <strong>regular</strong> expressions. So :</p>
<ul>
<li>
<p dir="auto">Open your <strong>XML</strong> file in N++</p>
</li>
<li>
<p dir="auto">Move back to its <strong>very beginning</strong>, if necessary  ( <strong><code>Ctrl + Origin</code></strong> )</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">Type, in <strong>Find what:</strong> zone, the regex <strong><code>(?-i)&lt;entityGroup="spiderZombie" prob="\d+"/&gt;</code></strong></p>
</li>
<li>
<p dir="auto">Let the <strong>Replace with:</strong> zone <strong><code>EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong>Replace All</strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<hr />
<p dir="auto">Assuming, for instance, the <strong>7 lines</strong> original text, below :</p>
<pre><code class="language-diff">blablablah &lt;entityGroup="spiderZombie" prob="000"/&gt; Other text
blablablah &lt;entityGroup="spiderZombie" prob="123"/&gt; Other text
blablablah &lt;entityGroup="superHero" prob="999"/&gt; Other text
blablablah &lt;entityGroup="spiderZombie" prob="456"/&gt; Other text
blablablah &lt;entityGroup="total_Destroyer" prob="10"/&gt; Other text
blablablah &lt;entityGroup="spiderZombie" prob="789"/&gt; Other text
blablablah &lt;entityGroup="spiderZombie" prob="4589"/&gt; Other text
</code></pre>
<p dir="auto">We would obtain, after global <strong>replacement</strong> :</p>
<pre><code class="language-diff">blablablah  Other text
blablablah  Other text
blablablah &lt;entityGroup="superHero" prob="999"/&gt; Other text
blablablah  Other text
blablablah &lt;entityGroup="total_Destroyer" prob="10"/&gt; Other text
blablablah  Other text
blablablah  Other text
</code></pre>
<hr />
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">I supposed that search must be <strong>sensitive</strong> to <strong>case</strong>. If <strong>not</strong>, change the <strong>modifier</strong> <strong><code>(?-i)</code></strong> by <strong><code>(?i)</code></strong></p>
</li>
<li>
<p dir="auto">I supposed that the <strong>prob</strong> number is any <strong>integer</strong>. If it has to be restricted to <strong>three digits</strong>, only, change the part <strong><code>\d+</code></strong> by <strong><code>\d{3}</code></strong></p>
</li>
<li>
<p dir="auto">On the contrary, if any string <strong>entityGroup</strong> is concerned by the <strong>suppression</strong>, use the regex, below :</p>
</li>
</ul>
<p dir="auto"><strong><code>(?-i)&lt;entityGroup="\w+" prob="\d+"/&gt;</code></strong></p>
<p dir="auto">With this regex, any <strong>entityGroup</strong> name, containing <strong>word</strong> characters ( <strong>letters</strong>, digits, or the <strong>low line</strong> character <strong><code>_</code></strong> ) would be matched and <strong>suppressed</strong>, in replacement, along with the <strong>prob</strong> string. So, it would give the <strong>resulting</strong> text :</p>
<pre><code class="language-diff">blablablah  Other text
blablablah  Other text
blablablah  Other text
blablablah  Other text
blablablah  Other text
blablablah  Other text
blablablah  Other text
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/27554</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/27554</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 23 Oct 2017 17:28:03 GMT</pubDate></item></channel></rss>