<?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[Search positive + egative (in-/exclude)]]></title><description><![CDATA[<p dir="auto">Hi there,<br />
i got a number of configuration files that always come with identical commands lines but different values to it.</p>
<p dir="auto">For example, it always has the paramter ‘notification_days_ahead’ - I need to ensure it always gets a certain value (e.g. 5) set to it  but only if it it reads any other value than 5.</p>
<p dir="auto">The line replacement I already figured out but the selective selection not quite …</p>
<p dir="auto">May be a simple selection term but I dont get it.<br />
Thanks a good hint!<br />
Uwe</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23447/search-positive-egative-in-exclude</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 05:36:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23447.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Sep 2022 15:00:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Tue, 06 Sep 2022 12:47:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uwe-recknagel" aria-label="Profile: Uwe-Recknagel">@<bdi>Uwe-Recknagel</bdi></a></p>
<p dir="auto">As an additional hint, the information found <a href="https://www.regular-expressions.info/floatingpoint.html" rel="nofollow ugc">HERE</a> seems directly applicable to an aspect of the problem you are trying to solve.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79573</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79573</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 06 Sep 2022 12:47:49 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Tue, 06 Sep 2022 12:44:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
alright, I see. the FAQ I read in parallel, trying to understand+translate your input.<br />
Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79572</guid><dc:creator><![CDATA[Uwe Recknagel]]></dc:creator><pubDate>Tue, 06 Sep 2022 12:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Tue, 06 Sep 2022 12:24:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uwe-recknagel" aria-label="Profile: Uwe-Recknagel">@<bdi>Uwe-Recknagel</bdi></a></p>
<p dir="auto">Well, you see, you keep growing the “spec” for what you need.  You get a couple of freebies from us here (because really we just want regular-expression questioners to “go away quickly” – we’re more interested in really Notepad++ specific discussions).</p>
<p dir="auto">After your freebies are exhausted, or sometimes even before, we advise you to read FAQ about regular expressions, found <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation/1">HERE</a>, so you can “roll your own”.  You gain powerful knowledge, we get back to better Notepad++ topics.  Win/win.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79568</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79568</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 06 Sep 2022 12:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Tue, 06 Sep 2022 11:39:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
Hey Alan, Thanks a lot, that tackles this one quite nicely!</p>
<p dir="auto">Looking further into the file other parameters it apparently doesn’t catch this way - e.g.<br />
fixed_Lot=0.10000000 or fixed_Lot=0.1 (or a variable number of zeros) - I need to check for a value = -1 (to deactivate te paramter).<br />
Replacing  in your statement the number 4 by -1 doesnt return a beneficial result. May it be due to -1 is recognised as a different format than 4?</p>
<p dir="auto">Thanks again for strechting your time!<br />
Uwe</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79567</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79567</guid><dc:creator><![CDATA[Uwe Recknagel]]></dc:creator><pubDate>Tue, 06 Sep 2022 11:39:39 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Mon, 05 Sep 2022 19:07:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uwe-recknagel" aria-label="Profile: Uwe-Recknagel">@<bdi>Uwe-Recknagel</bdi></a></p>
<p dir="auto">Find: <code>notification_days_ahead=(?!5\D)\d+</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79558</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79558</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 05 Sep 2022 19:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Mon, 05 Sep 2022 18:58:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uwe-recknagel" aria-label="Profile: Uwe-Recknagel">@<bdi>Uwe-Recknagel</bdi></a> said in <a href="/post/79555">Search positive + egative (in-/exclude)</a>:</p>
<blockquote>
<p dir="auto">I am keen on touching only those files where the value in this line is not 4<br />
Does that explain the matter a bit more?</p>
</blockquote>
<p dir="auto">I thought it was <em>5</em>, not <em>4</em>, but…no matter.</p>
<p dir="auto">If the concern is about touching files, we can restrict it to non-5 (I’m sticking with 5) data.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79556</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79556</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 05 Sep 2022 18:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Mon, 05 Sep 2022 17:43:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
Hi Alan, Thanks for looking into this!<br />
Actually, the FAQ etc - I felt overwhelmed + lost surely due to my missing background…</p>
<p dir="auto">In the files the command line in question looks like this<br />
Bei_Kontraktverfall_warnen_Tage=4</p>
<p dir="auto">Since I am keen on touching only those files where the value in this line is not 4, I think I need to have the positive FIND (of the line in general) and then added the exclusion (‘where value is not 4’).<br />
Does that explain the matter a bit more?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79555</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79555</guid><dc:creator><![CDATA[Uwe Recknagel]]></dc:creator><pubDate>Mon, 05 Sep 2022 17:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to Search positive + egative (in-/exclude) on Mon, 05 Sep 2022 15:11:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/uwe-recknagel" aria-label="Profile: Uwe-Recknagel">@<bdi>Uwe-Recknagel</bdi></a></p>
<p dir="auto">Your data is incomplete, so your question can’t be answered with certainty.  Please see <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions/1">FAQ</a> for how to ask such questions properly.</p>
<p dir="auto">However, let’s assume your data looks like this: <code>notification_days_ahead=27</code>.  In this case, you would:</p>
<p dir="auto">Find: <code>notification_days_ahead=\d+</code><br />
Replace: <code>notification_days_ahead=5</code><br />
Search mode: Regular expression</p>
<p dir="auto">It doesn’t really matter if your data is already 5, because what I’ve given you would just replace that with 5 anyway.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79552</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79552</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 05 Sep 2022 15:11:22 GMT</pubDate></item></channel></rss>