<?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[Batch replacing questions]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am trying to batch replace through multiple files a certain line. But while usually it’s easy  with the Find in Files  interface , in this case i’m puzzled as the line i want to replace is not always exactly the same :   By example i want to replace that line<br />
blablabla = number<br />
by<br />
blablabla = 0</p>
<p dir="auto">My problem there is that “number” in the blablabla = is not always the same through all the files, but i need all of them to be = 0 in the end result, so i searched a bit and noticed some people mentionning “wildcard” and suggesting to look into “extended” and “regular expression” that you can tick in the bottom of the “Find in Files” box.</p>
<p dir="auto">So searching the online manual i ran into<br />
<a href="https://npp-user-manual.org/docs/searching/#extended-search-mode" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#extended-search-mode</a><br />
and<br />
<a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/#regular-expressions</a><br />
that does not mean anything to me as unfortunately it seems wrote for people that already know those controls and how to use and code them (and as those provide no example of each controls figuring it out on my own … well ) .</p>
<p dir="auto">So please, anyone can help me in my problem ?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23566/batch-replacing-questions</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 15:24:16 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23566.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Oct 2022 15:04:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Batch replacing questions on Thu, 06 Oct 2022 15:31:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/26481">@Sanc-Tuary</a> said in <a href="/post/80323">Batch replacing questions</a>:</p>
<blockquote>
<p dir="auto">the \d+  and how / where to use it solved my problem</p>
</blockquote>
<p dir="auto">I caught you a fish today.  Tomorrow, catch your own by reading some of the references cited above.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80326</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80326</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 06 Oct 2022 15:31:01 GMT</pubDate></item><item><title><![CDATA[Reply to Batch replacing questions on Thu, 06 Oct 2022 15:19:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a><br />
Thank you very much, your examples really helped, the \d+  and how / where to use it solved my problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80323</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80323</guid><dc:creator><![CDATA[Sanc Tuary]]></dc:creator><pubDate>Thu, 06 Oct 2022 15:19:03 GMT</pubDate></item><item><title><![CDATA[Reply to Batch replacing questions on Thu, 06 Oct 2022 15:19:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/26481">@Sanc-Tuary</a> said in <a href="/post/80321">Batch replacing questions</a>:</p>
<blockquote>
<p dir="auto">it seems wrote for people that already know those controls and how to use and code them</p>
</blockquote>
<p dir="auto">Well, kind of.</p>
<p dir="auto">But it is a big topic not just belonging to Notepad++, so the manual doesn’t attempt to reinvent the wheel…</p>
<p dir="auto">First, forget “Extended” mode – it won’t help.  “Regular expression” land is where you want to be.</p>
<p dir="auto">You might be interested in the <code>\d</code> regular expression…that one finds a “digit”, i.e., 0-9.  So:</p>
<p dir="auto">Find: <code>blablabla = \d</code><br />
Search mode: Regular expression</p>
<p dir="auto">This would match <code>blablabla = 4</code> or <code>blablabla = 7</code> or etc.</p>
<p dir="auto">But it would not match <code>blablabla = 24</code> exactly because that is two digits.  It would match that as <code>blablabla = 2</code> which isn’t what you want.</p>
<p dir="auto">So maybe switch to:</p>
<p dir="auto">Find: <code>blablabla = \d+</code><br />
Search mode: Regular expression</p>
<p dir="auto">which would match <code>blablabla = 24</code> or <code>blablabla = 357</code> or etc.</p>
<p dir="auto">But maybe “number” in your question could be a negative number, or a positive number with a leading <code>+</code>, or a floating point number, or one in exponential notation…</p>
<p dir="auto">And whew, that got complicated fast, didn’t it?</p>
<p dir="auto">There are some good references <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation/1">HERE</a> and one of them will lead directly <a href="https://www.regular-expressions.info/floatingpoint.html" rel="nofollow ugc">HERE</a> which is (or could be) more specific to your problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/80322</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/80322</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 06 Oct 2022 15:19:27 GMT</pubDate></item></channel></rss>