<?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[Help with formula]]></title><description><![CDATA[<p dir="auto">How do i search for “log” and “quantity”  then replace the numbers after it…</p>
<p dir="auto">…contents log quantity 76 lastaccessed 2323.00 end</p>
<p dir="auto">…contents log quantity 344 lastaccessed 7854.00 end</p>
<p dir="auto">Chane the numbers (76, 344) to say (1000) but NOT change anything else (the file has a lot of other info.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12096/help-with-formula</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 12:54:12 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12096.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jul 2016 03:54:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with formula on Tue, 19 Jul 2016 06:40:32 GMT]]></title><description><![CDATA[<p dir="auto">ok I’m getting flagged as spam (not sure why) so I’m going to try to post this…</p>
<p dir="auto">thanks guy038<br />
question<br />
I need to add in two lines of text<br />
training 57<br />
and<br />
tazertrained true</p>
<p dir="auto">after the line:<br />
BodyArmour StabVest</p>
<p dir="auto">and before the line<br />
END</p>
<p dir="auto">do you know how to add in the two last lines<br />
note: they should be indented</p>
<p dir="auto"><a href="http://www78.zippyshare.com/v/r6Sh5S7m/file.html" rel="nofollow ugc">http://www78.zippyshare.com/v/r6Sh5S7m/file.html</a><br />
screenshot</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16918</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16918</guid><dc:creator><![CDATA[Joe Blow]]></dc:creator><pubDate>Tue, 19 Jul 2016 06:40:32 GMT</pubDate></item><item><title><![CDATA[Reply to Help with formula on Sat, 16 Jul 2016 10:37:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Joe</strong>,</p>
<p dir="auto">If there’s only <strong>ONE</strong> string <strong>log quantity</strong> ( or <strong>zero</strong>, of course ), in each line of your file, with only <strong>ONE space</strong>, between the <strong>two</strong> words, I think that <strong>two</strong> solutions are possible :</p>
<p dir="auto">SEARCH = <strong><code>(?&lt;=log quantity ) *\d+</code></strong>  and REPLACE = <strong><code>1000</code></strong> with a <strong>SPACE</strong>, <strong>before</strong> and <strong>after</strong> the <strong>ending</strong> round bracket</p>
<p dir="auto">SEARCH = <strong><code>log quantity \K *\d+</code></strong> and REPLACE = <strong><code>1000</code></strong> with a <strong>SPACE</strong>, after the word <strong>quantity</strong> and after the syntax <strong>\K</strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">In the <strong>first</strong> regex, we look for a <strong>possible</strong> range of spaces ( <strong><code> *</code></strong>), followed by a <strong>non empty</strong> range of <strong>digits</strong>, ONLY IF it is preceded with the string <strong>"log quantity "</strong></p>
</li>
<li>
<p dir="auto">In the <strong>second</strong> regex, we, first, try to match the string <strong>"log quantity "</strong> and, due to the <strong><code>\K</code></strong> syntax, the regex engine <strong>restart</strong> the search process. So, we, finally, looks, as before, for a <strong>possible</strong> range of spaces ( <strong><code> *</code></strong>), followed by a <strong>non empty</strong> range of <strong>digits</strong></p>
</li>
</ul>
<p dir="auto"><strong>IMPORTANT</strong> :</p>
<ul>
<li>
<p dir="auto">Due to the <strong><code>\K</code></strong> syntax  or the <strong><code>(?&lt;=log quantity )</code> look-behind</strong>, this S/R does <strong>NOT</strong> work, if you click, <strong>several</strong> times, on the <strong>Replace</strong> button, for <strong>step by step</strong> replacement</p>
</li>
<li>
<p dir="auto">You need to us, <strong>exclusively</strong>, the buttons <strong>Replace All</strong> or <strong>Replace All in All Opened Documents</strong>, of the Replace dialog</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">If the words <strong>log</strong> and <strong>quantity</strong> may be separated by an <strong>arbitrary</strong> number of spaces, the <strong>first</strong> regex must <strong>NOT</strong> be used. Indeed, the syntax <strong><code>(?&lt;=log +quantity ) *\d+</code></strong> is an <strong>invalid regular</strong> expression, because the expression <strong>log +quantity</strong> is NOT a <strong>fixed length</strong> string, inside a <strong>look-behind</strong> !</p>
<p dir="auto">On the contrary, the regex <strong><code>log +quantity \K *\d+</code></strong> is a <strong>correct regular</strong> expression :-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16874</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16874</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 16 Jul 2016 10:37:24 GMT</pubDate></item><item><title><![CDATA[Reply to Help with formula on Fri, 15 Jul 2016 05:16:44 GMT]]></title><description><![CDATA[<p dir="auto">Ok nevermind…i recalled what guy038 said about the subject and figured out what i needed thanks anyway…and if you read this guy038, thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16863</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16863</guid><dc:creator><![CDATA[Joe Blow]]></dc:creator><pubDate>Fri, 15 Jul 2016 05:16:44 GMT</pubDate></item><item><title><![CDATA[Reply to Help with formula on Fri, 15 Jul 2016 04:37:35 GMT]]></title><description><![CDATA[<p dir="auto">You know something like<br />
Log quantity +./k (?=lastaccess)<br />
Its something like that…but im not sure???</p>
<p dir="auto">Log+quantity /k(??=lastaccess)</p>
<p dir="auto">Does anyone know about that…or even a different way to change those amounts only…i have other amounts of other things in the file, so it must change logs only nothing else</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16862</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16862</guid><dc:creator><![CDATA[Joe Blow]]></dc:creator><pubDate>Fri, 15 Jul 2016 04:37:35 GMT</pubDate></item></channel></rss>