<?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 0 with 0.000]]></title><description><![CDATA[<p dir="auto">I have weather data to use for simulation. In that data, I want to replace only 0 in a single line to 0.000 such as</p>
<p dir="auto">0<br />
0.221<br />
1.021<br />
0<br />
0<br />
0.223<br />
<strong>to</strong><br />
0.000<br />
0.221<br />
1.021<br />
0.000<br />
0.000<br />
0.223<br />
I tried several ways but it select 0.221 also, but I no need to select this. only need to select 0 in a single line without a decimal.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20966/replace-0-with-0-000</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 14:52:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20966.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Mar 2021 12:21:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace 0 with 0.000 on Wed, 31 Mar 2021 13:03:54 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> Thanks, it worked and solved my issue.<br />
It really saved my time.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64526</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64526</guid><dc:creator><![CDATA[Lakhwinder Singh]]></dc:creator><pubDate>Wed, 31 Mar 2021 13:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to Replace 0 with 0.000 on Wed, 31 Mar 2021 12:55:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lakhwinder-singh" aria-label="Profile: Lakhwinder-Singh">@<bdi>Lakhwinder-Singh</bdi></a> ,</p>
<p dir="auto">Under the assumption that you literally mean just 0 =&gt; 0.000, and nothing else; and under the assumption that the numbers always start at the beginning of the line, like you showed in your example data:</p>
<ul>
<li>FIND = <code>^0(?!\.)</code></li>
<li>REPLACE = <code>0.000</code></li>
<li>Search Mode = regular expression</li>
</ul>
<p dir="auto">The <code>^</code> means “beginning of line”.  The <code>0</code> is a literal character.  And <code>(?!\.)</code> says “only if the next character is NOT a literal decimal point”.</p>
<p dir="auto">If the assumptions I made are not accurate, this will likely not work for you.  If you have other conditions, or example data that is matching when it shouldn’t, or isn’t matching when it should, then you need to supply that data.  Please read and understand the recommendations below.</p>
<p dir="auto">-—</p>
<p dir="auto"><em>Do you want regex search/replace help?  Then please be patient and polite, show some effort, and be willing to learn; answer questions and requests for clarification that are made of you.  All example text should be marked as literal text using the <code>&lt;/&gt;</code> toolbar button or manual <a href="https://community.notepad-plus-plus.org/topic/14262/how-to-markdown-code-on-this-forum/4">Markdown syntax</a>. To make <code>regex in red</code> (and so they keep their special characters like *), use backticks, like <code>`^.*?blah.*?\z`</code>. Screenshots can be pasted from the clipboard to your post using <code>Ctrl+V</code> to show graphical items, but any text should be included as literal text in your post so we can easily copy/paste your data. Show the data you have <strong>and</strong> the text you want to get from that data; include examples of things that <strong>should match</strong> and be transformed, <strong>and</strong> things that <strong>don’t match</strong> and should be left alone; show <strong>edge cases</strong> and make sure you examples are as <strong>varied</strong> as your real data.  Show the regex you already tried, <strong>and why</strong> you thought it should work; tell us what’s wrong with what you <strong>do</strong> get. Read the official <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">NPP Searching / Regex docs</a> and the forum’s <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">Regular Expression FAQ</a>. If you follow these guidelines, you’re much more likely to get helpful replies that solve your problem in the shortest number of tries.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/64525</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64525</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 31 Mar 2021 12:55:28 GMT</pubDate></item></channel></rss>