<?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[Halving multiple numbers]]></title><description><![CDATA[<p dir="auto">Hello.<br />
I have a 10k line long .txt file which contains many set parameters for a game<br />
There is one specific every number of which I need to halve, it looks like this:<br />
gold_cost = <em>number</em><br />
This may look very simple yet I haven’t found a way to do this in Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21669/halving-multiple-numbers</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Jul 2026 15:29:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21669.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Aug 2021 08:08:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Halving multiple numbers on Sun, 15 Aug 2021 17:37:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/torn-22" aria-label="Profile: Torn-22">@<bdi>Torn-22</bdi></a> ,</p>
<p dir="auto">Further to <a class="plugin-mentions-user plugin-mentions-a" href="/user/terry-r" aria-label="Profile: Terry-R">@<bdi>Terry-R</bdi></a>’s suggestion, if you search for “<a href="https://community.notepad-plus-plus.org/search?term=add_1&amp;in=posts&amp;matchWords=all&amp;sortBy=timestamp&amp;sortDirection=desc&amp;showAs=posts">add_1</a>”, you will find examples of such calculation (because the PythonScript documentation has an example that adds one to each integer found).  All you have to do is take that <code>add_1</code> example and switch <code>+ 1</code> to <code>/ 2</code> to change from adding 1 to dividing by 2 (halving).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68951</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68951</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 15 Aug 2021 17:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Halving multiple numbers on Sun, 15 Aug 2021 08:33:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/torn-22" aria-label="Profile: Torn-22">@<bdi>Torn-22</bdi></a> said in <a href="/post/68917">Halving multiple numbers</a>:</p>
<blockquote>
<p dir="auto">There is one specific every number of which I need to halve,</p>
</blockquote>
<p dir="auto">Regular expressions in Notepad++are not capable of doing calculations like you require.</p>
<p dir="auto">I do however remember some old posts in this forum where using PytonScript achieves what you need</p>
<p dir="auto">Do some searching here using pythonscript and calculation as key words and I think you will find the relevant posts.</p>
<p dir="auto">I’m not on a PC currently so cannot provide those links currently.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68919</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68919</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 15 Aug 2021 08:33:58 GMT</pubDate></item></channel></rss>