<?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* How to change multiple unknown text string with just one?]]></title><description><![CDATA[<p dir="auto">Hello everybody!<br />
I hope you are all alright and healthy.</p>
<p dir="auto">So, I’ve searched for this on Google and on this Forum and haven’t been able to find it. Either that, or the solutions I found didn’t work for me (probably because I’m just too dumb).</p>
<p dir="auto">So, I have a big XML file in which I have multiple strings with a constant text, followed by different strings.<br />
I’d like to keep that constant text and change all of the different options that follow, with another new constant text.</p>
<p dir="auto">For example -<br />
Example 1: <strong>&lt;property name=“Name” type=“string” value=“Iso”/&gt;</strong><br />
Example 2: <strong>&lt;property name=“Name” type=“string” value=“Bin”/&gt;</strong><br />
Example 3: <strong>&lt;property name=“Name” type=“string” value=“Wire”/&gt;</strong><br />
Example 4: <strong>&lt;property name=“Name” type=“string” value=“Whatever”/&gt;</strong></p>
<p dir="auto">And I’d like to change the Iso, Bin, Wire and Whatever for: <strong>HELLO</strong>.<br />
Obviously, all of those lines are in different places of the file, and there are many more. I just simplified the task at hand for the sake of simplicity.</p>
<p dir="auto">I hope you can help a newbie out.</p>
<p dir="auto">Thank you all in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19554/help-how-to-change-multiple-unknown-text-string-with-just-one</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 19:44:43 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19554.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Jun 2020 02:23:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sun, 11 Oct 2020 23:28:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a> said in <a href="/post/58470">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">If I want to replace “-12.5” with “11” at every found string, it actually comes up like this:</p>
</blockquote>
<p dir="auto">OK, some more changes required then. The latest revision of the Find What regex is:<br />
<code>(?s-i)(gameMinExposure.+?&lt;value&gt;).+?(&lt;/value&gt;)</code><br />
So in this instance I’ve put the 2 tags (&lt;value&gt; and &lt;/value&gt;) around the “other” characters (number) that we need to replace. So the <code>.+?</code> does not care what currently exists in this position, but whatever is there will be replaced with the new number which you have in the Replace With field.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58473</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58473</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 11 Oct 2020 23:28:15 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sun, 11 Oct 2020 22:57:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">So… Terry!<br />
I’m very sorry to keep dragging you into this, but a new issue came up.<br />
It looks like when the value has a decimal, when I use the string you provided, it only replaces the part after the “.”.</p>
<p dir="auto">For example:</p>
<p dir="auto"><strong>&lt;property name=“gameMinExposure” type=“float” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;-12.5&lt;/value&gt;</strong></p>
<p dir="auto">If I want to replace “-12.5” with “11” at every found string, it actually comes up like this:</p>
<p dir="auto"><strong>&lt;property name=“gameMinExposure” type=“float” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;-12.11.5&lt;/value&gt;</strong></p>
<p dir="auto">Using:<br />
Find: <strong>(?s-i)(gameMinExposure.+?)-*\d+(&lt;/value&gt;)</strong><br />
Replace With: <strong>($1)11.5($2)</strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/58470</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58470</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sun, 11 Oct 2020 22:57:15 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 05 Oct 2020 02:17:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">That’s amazing, Terry!<br />
I will give it a try right now!</p>
<p dir="auto">Thank you very much for all the help and quickness!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58227</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58227</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Mon, 05 Oct 2020 02:17:57 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 05 Oct 2020 01:10:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a> said in <a href="/post/58225">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">And see if it works for you</p>
</blockquote>
<p dir="auto">Sadly my last regex was still not working. Getting to see the actual lines in the file has helped, having “indented” lines didn’t help.<br />
So my latest version is<br />
Find What:<code>(?s-i)(gameMinExposure.+?)-*\d+(&lt;/value&gt;)</code><br />
Replace With:<code>($1)123($2)</code></p>
<p dir="auto">You would change the “gameMinExposure” to the correct tag name, such as the other one you were looking for “dateTimeHour”. Note I have added the <code>-i</code> to the modifier at the start of the line, the search string is case sensitive. So for example if your file had “Datetimehour” and this regex is looking for “dateTimeHour”, with the <code>-i</code> modifier it will NOT find it, this is by design. Remove the <code>-i</code> if you don’t care, then you can type the string in any format “DaTeTiMeHoUr” for example and it will find “datetimehour”, “DATETIMEHOUR” or any other combinations.</p>
<p dir="auto">I also noted that the number to be replaced was sometimes negative. So my latest regex has to look for that possibility as well. If found, then it will be removed when writing the number back. So you type into the Replace With field the number you want (including a <code>-</code> at the front if desired) replacing the <code>123</code> there.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58226</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58226</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Mon, 05 Oct 2020 01:10:13 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 05 Oct 2020 00:47:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a> said in <a href="/post/58182">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">(?-s)(.+?dateTimeHour.+?\R?&lt;value&gt;)\d+</p>
</blockquote>
<p dir="auto">Look mate,<br />
I uploaded the file here: <a href="https://www83.zippyshare.com/v/rHBggLMf/file.html" rel="nofollow ugc">https://www83.zippyshare.com/v/rHBggLMf/file.html</a></p>
<p dir="auto">Please look for lines like:</p>
<p dir="auto">**&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;</p>
<p dir="auto">And/Or</p>
<p dir="auto">**&lt;property name=“gameMinExposure” type=“float” container=“StaticArray” arraySize=“1”&gt;</p>
<p dir="auto">Where the numbers between the &lt;value&gt; &lt;/value&gt; tags can be different everytime you search for them.</p>
<p dir="auto">And see if it works for you.</p>
<p dir="auto">Thank you again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58225</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58225</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Mon, 05 Oct 2020 00:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 03 Oct 2020 07:31:24 GMT]]></title><description><![CDATA[<p dir="auto">Actually thinking further another amendment is needed so try<br />
Find What:<code>(?-s)(.+?dateTimeHour.+?\R?&lt;value&gt;)\d+</code><br />
The <code>.+?</code> minimally tries to capture up to a possible CRLF sequence, and just beyond to the first (hopefully) sequence of the &lt;value&gt; tag.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58182</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58182</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 03 Oct 2020 07:31:24 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 03 Oct 2020 07:20:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a> said in <a href="/post/58179">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">the whole document gets replaced by the number I entered :(</p>
</blockquote>
<p dir="auto">My regex works by capturing part of 1 line, then the first part of the next line. If the “whole” document is being replaced it suggests you don’t have many or most likely ANY CRLF (carriage return line feeds in it.</p>
<p dir="auto">When the file is loaded in Notepad++ by default the left side shows line numbers. Can you determine if it only contains 1 or a small number of lines? If so then I would need to do some more testing, but my initially reaction would be to change that regex to:<br />
Find What:<code>(?-s)(.+?dateTimeHour.+\R?&lt;value&gt;)\d+</code><br />
This will not force a CRLF between the 2 lines, but if it exists then it will include it.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58181</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58181</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 03 Oct 2020 07:20:35 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 03 Oct 2020 06:00:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a></p>
<p dir="auto">For instance, there’s another thing I’d like to change:</p>
<p dir="auto">&lt;property name=“gameMinExposure” type=“float” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;-14&lt;/value&gt;</p>
<p dir="auto">This line appear multiple times along this large document, but with different values along the way.<br />
If I wanted to replace al those different values with just one (like -10 for example), I can’t do that.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58180</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58180</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sat, 03 Oct 2020 06:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 03 Oct 2020 05:58:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a><br />
Hello Terry<br />
Doesn’t quite work.</p>
<p dir="auto">If I do that, the whole document gets replaced by the number I entered :(</p>
<p dir="auto">The strange thing is that when I first started this thread, the help I was getting was always working! And the files are still XML, the structure is quite similar, although the properties are different. So I don’t get why neither the first tips I was provided nor the new ones are working.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/58179</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/58179</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sat, 03 Oct 2020 05:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 26 Sep 2020 22:17:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a> said in <a href="/post/57953">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">And then the file ends.</p>
</blockquote>
<p dir="auto">I presume you mean the file gets truncated? In  large files with some types of look-aheads there can be instances of this occuring, but I wouldn’t have thought this in your case.<br />
Try this alternative regex.<br />
Find What:<code>(?-s)(.+?dateTimeHour.+\R&lt;value&gt;)\d+</code><br />
Replace With:<code>\1xx</code></p>
<p dir="auto">Where xx is the number you wish to use, it can be any length i.e. 1, 3765 etc. In this case as we are capturing the previous line and a bit of the current line (so we only get the datetimehour values you want to change) we need to write it back, hence the <code>\1</code> in front of the number you want to insert.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57954</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sat, 26 Sep 2020 22:17:26 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 26 Sep 2020 21:41:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">Hello Terry<br />
Unfortunately, after further analysis, somehow when I use that expression, the file gets messed up after some of those lines I mentioned above.</p>
<p dir="auto">What I was doing is, replacing all those different dateTimeHour values, with the number 17.</p>
<p dir="auto">In one particular line, (it’s like after the 8th modification), I get this:</p>
<p dir="auto"><strong>&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;1717</strong><br />
And then the file ends.</p>
<p dir="auto">But originally, the file continued with several other strings.<br />
In the original file, that line was like this:</p>
<p dir="auto"><strong>&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;19&lt;/value&gt;</strong></p>
<p dir="auto">And, like I said, there were plenty other lines after that. The document was huge.<br />
But after using your command, I get what I described above and then the file ends.</p>
<p dir="auto">I tried placing it with other values, like 0. But no matter which value I enter, that value gets duplicated<br />
For example&gt;<br />
<strong>&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;00</strong></p>
<p dir="auto">…And then, the file ends.</p>
<p dir="auto">Very strange.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57953</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sat, 26 Sep 2020 21:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Fri, 25 Sep 2020 02:52:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a></p>
<p dir="auto">That worked like a charm, Terry!<br />
Thanks a lot!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57905</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57905</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Fri, 25 Sep 2020 02:52:54 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Fri, 25 Sep 2020 02:52:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a> said in <a href="/post/57903">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">I only need to change those with DateTimeHour</p>
</blockquote>
<p dir="auto">How about using the following regex in place of the current one:<br />
Search:<code>(?-s).+?dateTimeHour.+\R&lt;value&gt;\K(\d)+(?=&lt;/value&gt;)</code></p>
<p dir="auto">So it finds the line with dateTimeHour, then progresses to the NEXT line, finds the number and what ever you type into the Replace field is what is inserted.</p>
<p dir="auto">As this uses the <code>\K</code> regex command you must use the “Replace All” button. So if you need to cyle through the changes one at a time using the singular “Replace” button please come back with that request and another regex could be made to suit.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57904</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57904</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Fri, 25 Sep 2020 02:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Fri, 25 Sep 2020 02:38:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a></p>
<p dir="auto">Thank you!<br />
Although, there are many other strings with<br />
&lt;value&gt;X&lt;/value&gt; but with different properties.</p>
<p dir="auto">Like:<br />
&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;12&lt;/value&gt;<br />
&lt;property name=“dateTimeMinute” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;12&lt;/value&gt;<br />
&lt;property name=“overrideAtmosphere” type=“bool” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;true&lt;/value&gt;</p>
<p dir="auto">I only need to change those with DateTimeHour.<br />
If I do what you suggested, every number in-between the &lt;value&gt; &lt;/value&gt; tags will get changed!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57903</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57903</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Fri, 25 Sep 2020 02:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 19 Sep 2020 20:48:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a></p>
<p dir="auto">-Try the following:</p>
<p dir="auto">Open the Replace dialog (<code>Ctrl + H</code>) and type in:</p>
<p dir="auto">Search: <code>(?-s)(?&lt;=&lt;value&gt;)(\d)+(?=&lt;/value&gt;)</code><br />
Replace: <code>000</code></p>
<p dir="auto">Replace <code>000</code> with <code>your replacing number</code>.<br />
Check the <code>Wrap around</code> option<br />
Select the <code>Regular expression</code> search mode<br />
Click on the <code>Replace All</code> button</p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57722</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57722</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sat, 19 Sep 2020 20:48:20 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 19 Sep 2020 19:49:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello again!</p>
<p dir="auto">I need some more help.<br />
I have several lines within an XML file that have something like this:</p>
<p dir="auto">&lt;property name=“dateTimeHour” type=“uint32” container=“StaticArray” arraySize=“1”&gt;<br />
&lt;value&gt;12&lt;/value&gt;</p>
<p dir="auto">In which only the numerical value that’s within the &lt;value&gt;X&lt;/value&gt; is different in each line along different parts of the same XML File.<br />
I would like to change all those different values with the same one, just one.</p>
<p dir="auto">Could any of you kind human beings help me?.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/57721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/57721</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sat, 19 Sep 2020 19:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 04 Jul 2020 14:40:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/george-fisher" aria-label="Profile: george-fisher">@<bdi>george-fisher</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Easy</strong> with <strong>regular</strong> expressions !</p>
<ul>
<li>
<p dir="auto">Open the <strong>Find in Files</strong> dialog ( <strong><code>Ctrl + Shift + F</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-i)price:\x20\d+</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>price:\x201000</code></strong></p>
</li>
<li>
<p dir="auto">Fill in the <strong><code>Filters:</code></strong> and <strong><code>Directory:</code></strong> fields, as desired</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace in Files</code></strong> button</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>OK</code></strong> button of the <strong>confirmation</strong> dialog</p>
</li>
</ul>
<p dir="auto">Voila  ;-))</p>
<hr />
<p dir="auto">Notes :</p>
<ul>
<li>
<p dir="auto">First, the <strong><code>(?-i)</code></strong> ensures that the <strong>search</strong> process is performed in a <strong>non-insensitive</strong> way</p>
</li>
<li>
<p dir="auto">Then, the part <strong><code>price:</code></strong> looks for this <strong>literal</strong> string, with this <strong>exact</strong> case</p>
</li>
<li>
<p dir="auto">Now, <strong><code>\x20</code></strong> is the <strong>hexadecimal</strong> syntax of a <strong>space</strong> character</p>
</li>
<li>
<p dir="auto">Finally the <strong><code>\d+</code></strong> syntax represents any <strong>non-null</strong> consecutive range of <strong>digits</strong>, so any <strong>decimal</strong> number</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55542</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55542</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 04 Jul 2020 14:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sat, 04 Jul 2020 14:05:55 GMT]]></title><description><![CDATA[<p dir="auto">Instead of starting a new thread I searched and found this one which appears to address my problem.</p>
<p dir="auto">I have several files that contain this line, <em>price: 12000</em> where the number varies in every file… I tried with the (*) filter to change that to <em>price: 1000</em> in all of the files at once but the program wouldn’t cooperate.  I’m not a coder so some of the above examples are confusing to me. Can someone suggest what to enter in the replace with: line?<br />
Thanks.  ;)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55541</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55541</guid><dc:creator><![CDATA[George Fisher]]></dc:creator><pubDate>Sat, 04 Jul 2020 14:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Tue, 23 Jun 2020 03:42:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a></p>
<p dir="auto">You’re welcome. If you want to get involved in regex, let me suggest you to take a look at this page:</p>
<p dir="auto"><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#regular-expressions</a></p>
<p dir="auto">Have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55272</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55272</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Tue, 23 Jun 2020 03:42:49 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 22 Jun 2020 23:08:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> said in <a href="/post/55267">*Help* How to change multiple unknown text string with just one?</a>:</p>
<blockquote>
<p dir="auto">(?s)(&lt;Instance&gt;).*?(&lt;/Instance&gt;)</p>
</blockquote>
<p dir="auto">Thank you! It worked like a charm!<br />
Thank you for your quick reply too!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55268</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55268</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Mon, 22 Jun 2020 23:08:20 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 22 Jun 2020 22:59:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: Chuny_OK">@<bdi>Chuny_OK</bdi></a></p>
<p dir="auto">-Try this:</p>
<p dir="auto">Open the Replace dialog (<code>Ctrl + H</code>) and type in:</p>
<p dir="auto">Search: <code>(?s)(&lt;Instance&gt;).*?(&lt;/Instance&gt;)</code><br />
Replace: <code>$1HELLO$2</code></p>
<p dir="auto">Replace <code>"HELLO"</code> with your string.<br />
Check the <code>Wrap around</code> option<br />
Select the <code>Regular expression</code> search mode<br />
Click on the <code>Replace All</code> button</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55267</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55267</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Mon, 22 Jun 2020 22:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Mon, 22 Jun 2020 22:15:56 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> Hello my friend, I have another one for you!<br />
Now, I’m not sure if this is possible at all but, let’s try.</p>
<p dir="auto">I have several blocks within an XML file<br />
They are a little something like this</p>
<p dir="auto">&lt;Instance&gt;<br />
&lt;property name=“Evaluator” type=“int” value=“4”/&gt;<br />
&lt;property name=“zoomValue” type=“float” value=“0.8”/&gt;<br />
&lt;property name=“Framingn” type=“int” value=“2”/&gt;<br />
&lt;property name=“Name” type=“string” value=“High”/&gt;<br />
&lt;Property&gt;<br />
&lt;property name=“PropertyName” type=“string” value=“Whatever”/&gt;<br />
&lt;/Property&gt;<br />
&lt;/Instance&gt;</p>
<p dir="auto">Like I said, there are many blocks like that in different places of the same XML but with different values, different properties, etc.<br />
But they are all within the &lt;Instance&gt; &lt;/Instance&gt; tags.</p>
<p dir="auto">I’d like to replace all of them, not matter the content inside those tags with only one &lt;Instance&gt; &lt;/Instance&gt; of my own.<br />
Obviously, doing that one by one would take about two hours since there are probably between 70 and 100 I’d need to change. So is there any way to do what I’m after?.</p>
<p dir="auto">Thank you very much in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55266</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55266</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Mon, 22 Jun 2020 22:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sun, 14 Jun 2020 17:19:13 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> and @gurikbal-singh<br />
I tried with your suggestions and all of them worked.<br />
Much appreciated!<br />
Thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54959</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54959</guid><dc:creator><![CDATA[Chuny_OK]]></dc:creator><pubDate>Sun, 14 Jun 2020 17:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to *Help* How to change multiple unknown text string with just one? on Sun, 14 Jun 2020 21:36:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: chuny_ok">@<bdi>chuny_ok</bdi></a>, @gurikbal-singh and <strong>All</strong>,</p>
<p dir="auto">Of course, your S/R, @gurikbal-singh, is <strong>more</strong> simple and obvious but could grasp too <strong>many</strong> occurrences, as it does <strong>not</strong> care about the <strong><code>tags</code></strong> and the <strong><code>attributes</code></strong> involved, with the <strong>same</strong> value :-((</p>
<p dir="auto">But I admit, that in case of <strong>few</strong> found occurrences, the use of the <strong>step</strong> by <strong>step</strong> replacement, with the <strong><code>Replace</code></strong> button, after <strong>verification</strong>, may be enough for <a class="plugin-mentions-user plugin-mentions-a" href="/user/chuny_ok" aria-label="Profile: chuny_ok">@<bdi>chuny_ok</bdi></a> !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54955</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54955</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 14 Jun 2020 21:36:15 GMT</pubDate></item></channel></rss>