<?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[Need help with find and replace using wildcards and in multiple files]]></title><description><![CDATA[<p dir="auto">Fellow Notepad++ Users,</p>
<p dir="auto">Could you please help me the following search-and-replace problem I am having?</p>
<p dir="auto">I am trying to replace data under the following format in multiple files, and in multiple occurrences in single files;</p>
<p dir="auto">split = 30 40 30<br />
The “split” in each instance is not always the same.</p>
<p dir="auto">I want to replace every occurrence with the following</p>
<p dir="auto">split = 33 34 33.</p>
<p dir="auto">Please help, thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27595/need-help-with-find-and-replace-using-wildcards-and-in-multiple-files</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 05:19:20 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27595.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jul 2026 13:37:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 22:25:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Worked perfectly, thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105832</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105832</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 22:25:40 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 21:53:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-klaes" aria-label="Profile: Paul-Klaes">@<bdi>Paul-Klaes</bdi></a> ,</p>
<p dir="auto">Nope.  Replacement syntax needs fewer escapes</p>
<p dir="auto">At this point, I recommend you start reading Notepad++ Online User Manual: Searching/Regex at <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#regular-expressions</a> for the full story, or <a href="https://npp-user-manual.org/docs/searching/#substitutions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#substitutions</a> to focus on the substitution syntax.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105831</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105831</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Jul 2026 21:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 21:51:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> Would I need to use the <code>\.</code>  for the “.” in the “replace with” box also?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105830</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105830</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 21:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 21:31:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-klaes" aria-label="Profile: Paul-Klaes">@<bdi>Paul-Klaes</bdi></a> ,</p>
<p dir="auto">You don’t need to post the same reply twice.  When you made your post, you had to X away the notification that there is a post queue – you have to wait until there’s a moderator available to read and approve your post.</p>
<blockquote>
<p dir="auto">I can’t tell if it is working. It runs like it is doing something, but it doesn’t save the changes in the files. How do I tell it to save changes?</p>
</blockquote>
<p dir="auto">a normal find/replace <strong>Replace All</strong> will replace all the occurrences in the currently open file, and then you have to save it manually.  But in the <strong>Find in Files</strong> tab, the <strong>Replace All in Files</strong> will automatically make the changes, whether or not the file is open – and since Notepad++ isn’t opening the files, you won’t really see that it’s made the changes, unless you notice the <code>Replace in Files: ## occurrences were replaced</code> in the status bar of the dialog.</p>
<p dir="auto">But if it finds none, it will say <code>0 occurrences were replaced</code>, and none of the files would change.  It probably told you this, and you may or may not have noticed: see the bottom of this screenshot:<br />
<img src="/assets/uploads/files/1783200611266-41cbd93b-d545-42bc-8c0c-062c950e378c-image.jpeg" alt="41cbd93b-d545-42bc-8c0c-062c950e378c-image.jpeg" class=" img-fluid img-markdown" /></p>
<hr />
<blockquote>
<p dir="auto">the data I want to change isn’t in “split = 30 40 30” format; it is in “split = 30.40.30” format<br />
What would be the syntax for the find and replace then?</p>
</blockquote>
<p dir="auto">The <code>.</code> is the “wildcard” character in regular expressions, so don’t just use <code>.</code> to match it.  Instead, you “escape” it by putting a <code>\</code> before it, so <code>\.</code> matches one dot character.  Any place in <a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a>’s response where you want to match a <code>.</code> instead of a space, change the space from that FIND WHAT into a <code>\.</code> – so <code>(split =) \d+ \d+ \d+</code> becomes <code>(split =) \d+\.\d+\.\d+</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/105829</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105829</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 04 Jul 2026 21:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 21:25:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> I made a mistake; the data I want to change isn’t in “split = 30 40 30” format; it is in “split = 30.40.30” format.  No spaces between the numbers, just a period.  What would be the syntax for the find and replace then?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105828</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105828</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 21:25:13 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 20:49:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dr-ramaanand" aria-label="Profile: dr-ramaanand">@<bdi>dr-ramaanand</bdi></a> I can’t tell if it is working.  It runs like it is doing something, but it doesn’t save the changes in the files.  How do I tell it to save changes?  I’ve tried it both under the “Folder as workspace” and by simply opening notepad++ regularly.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105827</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 20:49:33 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 20:37:25 GMT]]></title><description><![CDATA[<p dir="auto">I can’t tell, it runs like it is making the changes, but it isn’t saving the changes.  How do you get it to save the changes?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105826</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105826</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 20:37:25 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 17:15:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-klaes" aria-label="Profile: Paul-Klaes">@<bdi>Paul-Klaes</bdi></a> So, does the solution I provided solve your problem?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105825</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105825</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 04 Jul 2026 17:15:55 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 16:46:06 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it is always 3 numbers, it represents a population split among the 3 defined classes for each province in a computer game; and I’m trying for a uniformity among provinces in the mod I’ve created.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105824</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105824</guid><dc:creator><![CDATA[Paul Klaes]]></dc:creator><pubDate>Sat, 04 Jul 2026 16:46:06 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with find and replace using wildcards and in multiple files on Sat, 04 Jul 2026 16:11:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paul-klaes" aria-label="Profile: Paul-Klaes">@<bdi>Paul-Klaes</bdi></a> Are there only 3 digits to be replaced every time? Does the line beginning with the term, “split” end with numbers? Please give a before and after (expected solution) example. If there are only 3 digits, you can hit ctrl+h on your keyboard, click on the, “Find in Files” tab, put <code>(split =) \d+ \d+ \d+</code> in the Find field and <code>$1 33 34 33</code> in the Replace field, tick (check) the Regular expression mode and hit the Replace all button. You have to ensure that you select which folder you want to do this in correctly!<br />
<strong>Explanation:</strong> <code>$1</code> represents the capturing group 1 which is what is in parentheses that is used in the “Find field”, in this case, “split =”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/105823</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/105823</guid><dc:creator><![CDATA[dr ramaanand]]></dc:creator><pubDate>Sat, 04 Jul 2026 16:11:58 GMT</pubDate></item></channel></rss>