<?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 last value in row with 0]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have a .csv file, which I need to zero out as part of our monthly process. The file has the following structure:</p>
<p dir="auto">Year;MPC ID;Company;Unit;Costcode;Name;Headcount<br />
2017;16699101;12000000;1001;1271120000;N. Jensen                   ;1<br />
2017;16699201;12000000;1001;1271120000;N. Jensen                   ;1<br />
2017;16699101;2009;5936;2010;A. Fevang           ;1<br />
2017;16699201;2009;5936;2010;A. Fevang           ;1<br />
2017;16699101;2009;4100;3050;L. Halstein      ;1<br />
2017;16699201;2009;4100;3050;L. Halstein      ;1<br />
2017;16699124;2009;4403;2260;K. Basalt          ;1<br />
2017;16699224;2009;4403;2260;K. Basalt          ;1<br />
2017;16699101;2009;92;9010;M. Kalsas       ;1<br />
2017;16699201;2009;92;9010;M. Kalsas       ;1<br />
2017;16699103;2009;3541;2100;B. Fonag              ;0.5<br />
2017;16699203;2009;3541;2100;B. Fonag              ;1<br />
2017;16699101;2009;4403;2260;S. Jørgensen               ;0.35<br />
2017;16699201;2009;4403;2260;S. Jørgensen               ;1<br />
2017;16699101;2009;4403;2260;K. Pedersen                ;0.69<br />
2017;16699201;2009;4403;2260;K. Pedersen                ;1</p>
<p dir="auto">Currently I copy/paste the content over to Excel where it’s easy for me to apply zeroes in the last column. However I would really like to process this within Notepad++.  So how would I replace any ending value ‘;x’ with ‘;0’?</p>
<p dir="auto">I have been trying to find relevant examples in the forum, however didn’t succeed to adapt similar solutions for my problem.</p>
<p dir="auto">Thank you in advance</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13556/replace-last-value-in-row-with-0</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 12:17:34 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13556.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Mar 2017 08:50:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace last value in row with 0 on Fri, 31 Mar 2017 07:09:31 GMT]]></title><description><![CDATA[<p dir="auto">That worked like a charm. Thanks a stack Scott. :)<br />
And also thanks for elaborating. That’ll really help going onwards to getting more acquainted with these strings.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23218</guid><dc:creator><![CDATA[Daniel Holzmann]]></dc:creator><pubDate>Fri, 31 Mar 2017 07:09:31 GMT</pubDate></item><item><title><![CDATA[Reply to Replace last value in row with 0 on Thu, 30 Mar 2017 12:33:08 GMT]]></title><description><![CDATA[<p dir="auto">A regular expression replace will work for your situation:</p>
<p dir="auto">Find-what box:  <code>[\d.]+$</code><br />
Replace-with box:  <code>0</code><br />
Search mode:  <code>Regular expression</code></p>
<p dir="auto">The rough English explanation of the parts of this is:<br />
<code>[\d.]</code>:  look for digit or period in any order<br />
<code>[\d.]+</code>:  look for one or more digits or periods in any order<br />
<code>[\d.]+$</code>:  look for one or more digits or periods in any order at the end of a line</p>
]]></description><link>https://community.notepad-plus-plus.org/post/23187</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/23187</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 30 Mar 2017 12:33:08 GMT</pubDate></item></channel></rss>