<?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[Replace random values with 0]]></title><description><![CDATA[<pre><code>Hello. I want to search for this (in Notepad++)
</code></pre>
<p dir="auto">env_factor : { x , y , z }</p>
<pre><code>     Where x,y,z are random values/numbers
     And replace with this
</code></pre>
<p dir="auto">env_factor : { 0 , 0 , 0 }</p>
<pre><code>     An example
</code></pre>
<p dir="auto">env_factor : { 0.5215321 , 0.11243 , 0.94 } to replace with<br />
env_factor : { 0 , 0 , 0 }</p>
<pre><code>     Thank you.
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/topic/24916/replace-random-values-with-0</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 04:25:59 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24916.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Sep 2023 01:20:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace random values with 0 on Wed, 13 Sep 2023 01:50:38 GMT]]></title><description><![CDATA[<p dir="auto">@ Coises You are amazing,thank you very much.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89234</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89234</guid><dc:creator><![CDATA[Raoul Emil]]></dc:creator><pubDate>Wed, 13 Sep 2023 01:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to Replace random values with 0 on Wed, 13 Sep 2023 01:50:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raoul-emil" aria-label="Profile: Raoul-Emil">@<bdi>Raoul-Emil</bdi></a></p>
<p dir="auto">From the main menu, select <strong>Search | Replace…</strong> and fill in:</p>
<p dir="auto"><strong>Find what:</strong> <code>env_factor\s*:\s*\{\s*\d+(\.\d*)?\s*,\s*\d+(\.\d*)?\s*,\s*\d+(\.\d*)?\s*\}</code></p>
<p dir="auto"><strong>Replace with:</strong> <code>env_factor : { 0 , 0 , 0 }</code></p>
<p dir="auto">Be sure the radio button <strong>Regular expression</strong> is selected and use the <strong>Replace All</strong> button.</p>
<p dir="auto">This does not take into account numbers that might have minus signs or that might begin with a decimal point, without the leading zero. If you have numbers like that, replace the parts in the search like this:</p>
<p dir="auto"><code>\d+(\.\d*)?</code></p>
<p dir="auto">with:</p>
<p dir="auto"><code>-?(\d+(\.\d*)?|\.\d+)</code></p>
<p dir="auto">to get:</p>
<p dir="auto"><code>env_factor\s*:\s*\{\s*-?(\d+(\.\d*)?|\.\d+)\s*,\s*-?(\d+(\.\d*)?|\.\d+)\s*,\s*-?(\d+(\.\d*)?|\.\d+)\s*\}</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/89233</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89233</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Wed, 13 Sep 2023 01:50:20 GMT</pubDate></item></channel></rss>