<?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 the math expression with the calculated result]]></title><description><![CDATA[<p dir="auto">Example:</p>
<ul>
<li>Before : 1+1,1-1,1*2,1/3</li>
<li>After :  2,0,2,0.3</li>
</ul>
<p dir="auto">I tried using Textfx, but it only pops up a result window</p>
<p dir="auto">I tried the answer <a href="https://superuser.com/questions/968315/search-and-replace-math-operations-with-the-result-in-notepad?noredirect=1&amp;lq=1" rel="nofollow ugc">here</a>. But it only calculates multiplication and division and the expression must be in " ".</p>
<p dir="auto">I need to calculate about 14000 lines like that</p>
<p dir="auto">Please help me to write a script that resembles the answer <a href="https://superuser.com/questions/968315/search-and-replace-math-operations-with-the-result-in-notepad?noredirect=1&amp;lq=1" rel="nofollow ugc">there</a> but works with my case</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15979/replace-the-math-expression-with-the-calculated-result</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 18:15:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15979.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Jun 2018 14:05:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replace the math expression with the calculated result on Thu, 28 Jun 2018 14:25:42 GMT]]></title><description><![CDATA[<p dir="auto">There’s also a plugin for Notepad++ called MathPad, which can be installed via the Plugin Manager, with more info at <a href="http://www.semelinanno.com/downloads/mathpad/MathPad_Page.html" rel="nofollow ugc">it’s homepage</a>.  I don’t know whether it will meet your needs, but it’s something to look into.</p>
<p dir="auto">Here is me helping you write the script: study the VBScript and/or PowerShell script at the SuperUser question you linked.  Tweak it, and see how those changes affect the results.  Experiment until it no longer requires the quote marks.  Continue experimenting until it does everything you want it to.  If you have shown some effort, but still cannot get it to work, ask a question in <a href="https://notepad-plus-plus.org/community/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place" rel="nofollow ugc">an appropriate forum</a>, where the topic is about the scripting language you are using (SuperUser/StackOverflow might be a good location).</p>
<p dir="auto">Some here would be able to use the PythonScript plugin to automate those calculations inside Notepad++.  Others might suggest skipping the middle-man: if you have a file with 14000 instances, it might be simpler to run it through an offline script, which could be written in VBA, Python, Lua, Perl, or your favorite scripting language.  But it might take a few hours to write something: and that brings me to my last point:</p>
<p dir="auto">But if by “help me to write a script” you mean, “write a script for me”, then you’ve <a href="https://notepad-plus-plus.org/community/topic/15958/faq-desk-you-ve-asked-your-question-in-the-wrong-place" rel="nofollow ugc">come to the wrong place</a>.  It sounds like you’re asking for custom coding services, which will likely cost you something.  Good luck in presenting the question, as framed (ie, without showing any effort of your own), in any coding forum and getting the exact script you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33218</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33218</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 28 Jun 2018 14:25:42 GMT</pubDate></item></channel></rss>