<?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 with content exclusion]]></title><description><![CDATA[<p dir="auto">I am a casual user of N++ and, definitely, not familiar with all of its functionality.<br />
One way I would like to use N++ is search for patterns, but excluding sub-results.<br />
An example would be to look for, let’s say, a “RESULTVALUE=” in a logfile, but wanting to ONLY see non-zero results.<br />
In grep this would look something like:<br />
grep “RESULTVALUE=” | grep -v “RESULTVALUE=0”<br />
Is this possible in N++ and, if so, how?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20767/search-with-content-exclusion</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 14:06:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20767.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Feb 2021 22:51:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search with content exclusion on Mon, 21 Oct 2024 15:49:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> Haha, well this was really a bit unusual.<br />
Big big thanks for the help, it was exactly what i needed!<br />
Best wishes!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97217</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97217</guid><dc:creator><![CDATA[BeatBullz]]></dc:creator><pubDate>Mon, 21 Oct 2024 15:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sun, 20 Oct 2024 09:10:09 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/23354">@beatbullz</a> and <strong>All</strong>,</p>
<p dir="auto">So, after more than <strong>three</strong> years, and with an <strong>other</strong> user-name, you’re asking me for some modifications regarding my <strong>old</strong> provided regex. Your approach is very unusual ;-))</p>
<hr />
<p dir="auto">Anyway, I’ll try to help you !</p>
<p dir="auto">First, I <strong>slightly</strong> improved my previous regex to this syntax, using the <strong><code>free-spacing</code></strong> mode <strong><code>(?x)</code></strong> :</p>
<p dir="auto">SEARCH / MARK <strong><code>(?x-i) RESULTVALUE = \K [+-]? (?: (?!  0+ ( \. 0* )? [^\d.] ) \d+ ( \. \d* )? | \. (?! 0+ \D ) \d+ )</code></strong></p>
<hr />
<p dir="auto">Thus, in order to find, <strong>independently</strong>, the lines containing the string :</p>
<ul>
<li><strong><code>ShaderMillDataHash" value="</code></strong></li>
</ul>
<p dir="auto">Or</p>
<ul>
<li><strong><code>SHADERMILLUBER.SHADER.BIN=</code></strong></li>
</ul>
<p dir="auto">Or</p>
<ul>
<li><strong><code>UBERSHADER.SHADER.BIN=</code></strong></li>
</ul>
<p dir="auto">Use the regex <strong>A</strong> , <strong>B</strong> or <strong>C</strong>, below :</p>
<p dir="auto"><strong>Regex A</strong>  :  <strong><code>(?-i)ShaderMillDataHash" value="\K[+-]?(?:(?!0+(\.0*)?[^\d.])\d+(\.\d*)?|\.(?!0+\D)\d+)</code></strong></p>
<p dir="auto"><strong>Regex B</strong> :  <strong><code>(?-i)SHADERMILLUBER.SHADER.BIN=\K[+-]?(?:(?!0+(\.0*)?[^\d.])\d+(\.\d*)?|\.(?!0+\D)\d+)</code></strong></p>
<p dir="auto"><strong>Regex C</strong> :  <strong><code>(?-i)UBERSHADER.SHADER.BIN=\K[+-]?(?:(?!0+(\.0*)?[^\d.])\d+(\.\d*)?|\.(?!0+\D)\d+)</code></strong></p>
<p dir="auto">Now, if you prefer to search for <strong>all</strong> the lines, at the <strong>same</strong> time, use the regex <strong>D</strong> below :</p>
<p dir="auto"><strong>Regex D</strong> :  <strong><code>(?-i)(?:ShaderMillDataHash" value="|SHADERMILLUBER.SHADER.BIN=|UBERSHADER.SHADER.BIN=)\K[+-]?(?:(?!0+(\.0*)?[^\d.])\d+(\.\d*)?|\.(?!0+\D)\d+)</code></strong></p>
<hr />
<p dir="auto">You can <strong>test</strong> all these regexes against the text below :</p>
<pre><code class="language-diff">
  FORBIDEN cases :

    ShaderMillDataHash" value="              No             SHADERMILLUBER.SHADER.BIN=              No            UBERSHADER.SHADER.BIN=              No
    ShaderMillDataHash" value=".             No             SHADERMILLUBER.SHADER.BIN=.             No            UBERSHADER.SHADER.BIN=.             No
    ShaderMillDataHash" value=",             No             SHADERMILLUBER.SHADER.BIN=,             No            UBERSHADER.SHADER.BIN=,             No

    ShaderMillDataHash" value="ABC           No             SHADERMILLUBER.SHADER.BIN=ABC           No            UBERSHADER.SHADER.BIN=ABC           No
    ShaderMillDataHash" value="0A123         No             SHADERMILLUBER.SHADER.BIN=0A123         No            UBERSHADER.SHADER.BIN=0A123         No
    ShaderMillDataHash" value="0000Z123      No             SHADERMILLUBER.SHADER.BIN=0000Z123      No            UBERSHADER.SHADER.BIN=0000Z123      No
    ShaderMillDataHash" value="0.Z123        No             SHADERMILLUBER.SHADER.BIN=0.Z123        No            UBERSHADER.SHADER.BIN=0.Z123        No
    ShaderMillDataHash" value="0.ABC123      No             SHADERMILLUBER.SHADER.BIN=0.ABC123      No            UBERSHADER.SHADER.BIN=0.ABC123      No
    ShaderMillDataHash" value="000.DEF1      No             SHADERMILLUBER.SHADER.BIN=000.DEF1      No            UBERSHADER.SHADER.BIN=000.DEF1      No

    ShaderMillDataHash" value="0             No             SHADERMILLUBER.SHADER.BIN=0             No            UBERSHADER.SHADER.BIN=0             No
    ShaderMillDataHash" value=".0            No             SHADERMILLUBER.SHADER.BIN=.0            No            UBERSHADER.SHADER.BIN=.0            No
    ShaderMillDataHash" value="0.            No             SHADERMILLUBER.SHADER.BIN=0.            No            UBERSHADER.SHADER.BIN=0.            No
    ShaderMillDataHash" value="0.0           No             SHADERMILLUBER.SHADER.BIN=0.0           No            UBERSHADER.SHADER.BIN=0.0           No
    ShaderMillDataHash" value="00000         No             SHADERMILLUBER.SHADER.BIN=00000         No            UBERSHADER.SHADER.BIN=00000         No
    ShaderMillDataHash" value="0.000         No             SHADERMILLUBER.SHADER.BIN=0.000         No            UBERSHADER.SHADER.BIN=0.000         No
    ShaderMillDataHash" value="00.000        No             SHADERMILLUBER.SHADER.BIN=00.000        No            UBERSHADER.SHADER.BIN=00.000        No
    ShaderMillDataHash" value="0.            No             SHADERMILLUBER.SHADER.BIN=0.            No            UBERSHADER.SHADER.BIN=0.            No
    ShaderMillDataHash" value="00.           No             SHADERMILLUBER.SHADER.BIN=00.           No            UBERSHADER.SHADER.BIN=00.           No
    ShaderMillDataHash" value=".000          No             SHADERMILLUBER.SHADER.BIN=.000          No            UBERSHADER.SHADER.BIN=.000          No


  ALLOWED cases :

    ShaderMillDataHash" value="0.00120       Yes            SHADERMILLUBER.SHADER.BIN=0.00120       Yes            UBERSHADER.SHADER.BIN=0.00120       Yes
    ShaderMillDataHash" value="0.00123       Yes            SHADERMILLUBER.SHADER.BIN=0.00123       Yes            UBERSHADER.SHADER.BIN=0.00123       Yes
    ShaderMillDataHash" value="0.12300       Yes            SHADERMILLUBER.SHADER.BIN=0.12300       Yes            UBERSHADER.SHADER.BIN=0.12300       Yes
    ShaderMillDataHash" value="0.42          Yes            SHADERMILLUBER.SHADER.BIN=0.42          Yes            UBERSHADER.SHADER.BIN=0.42          Yes
    ShaderMillDataHash" value=".71           Yes            SHADERMILLUBER.SHADER.BIN=.71           Yes            UBERSHADER.SHADER.BIN=.71           Yes
    ShaderMillDataHash" value=".00954        Yes            SHADERMILLUBER.SHADER.BIN=.00954        Yes            UBERSHADER.SHADER.BIN=.00954        Yes
    ShaderMillDataHash" value="2             Yes            SHADERMILLUBER.SHADER.BIN=2             Yes            UBERSHADER.SHADER.BIN=2             Yes
    ShaderMillDataHash" value="5.            Yes            SHADERMILLUBER.SHADER.BIN=5.            Yes            UBERSHADER.SHADER.BIN=5.            Yes
    ShaderMillDataHash" value="6.8           Yes            SHADERMILLUBER.SHADER.BIN=6.8           Yes            UBERSHADER.SHADER.BIN=6.8           Yes
    ShaderMillDataHash" value="007.1         Yes            SHADERMILLUBER.SHADER.BIN=007.1         Yes            UBERSHADER.SHADER.BIN=007.1         Yes
    ShaderMillDataHash" value="091           Yes            SHADERMILLUBER.SHADER.BIN=091           Yes            UBERSHADER.SHADER.BIN=091           Yes
    ShaderMillDataHash" value="8000          Yes            SHADERMILLUBER.SHADER.BIN=8000          Yes            UBERSHADER.SHADER.BIN=8000          Yes
    ShaderMillDataHash" value="9.000         Yes            SHADERMILLUBER.SHADER.BIN=9.000         Yes            UBERSHADER.SHADER.BIN=9.000         Yes
    ShaderMillDataHash" value="0.756000      Yes            SHADERMILLUBER.SHADER.BIN=0.756000      Yes            UBERSHADER.SHADER.BIN=0.756000      Yes

</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97189</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97189</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 20 Oct 2024 09:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 19 Oct 2024 01:33:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a><br />
So i’m using this one actually:</p>
<p dir="auto">(?-i)ShaderMillDataHash" value="\K[±]?((?!0.0?\D|0[^\d.])\d+(.\d*)?|.(?!0\D)\d+)</p>
<p dir="auto">like all values behind ShaderMillDataHash except 0:<br />
ShaderMillDataHash" value="</p>
<p dir="auto">But i need to find another value in the same files.</p>
<p dir="auto">Two generally to split the search results.</p>
<p dir="auto">All search results with UBERSHADER.SHADER.BIN in the files + the regex from above<br />
And all search results with SHADERMILLUBER.SHADER.BIN + regex from above</p>
<p dir="auto">I tried<br />
(?-i)(UBERSHADER.SHADER.BIN|ShaderMillDataHash" value=")\K[±]?((?!0.0?\D|0[^\d.])\d+(.\d*)?|.(?!0\D)\d+)</p>
<p dir="auto">(?-i)SHADERMILLUBER.SHADER.BIN|ShaderMillDataHash" value="\K[±]?((?!0.0?\D|0[^\d.])\d+(.\d*)?|.(?!0\D)\d+)</p>
<p dir="auto">and it doesnt even use the first search parameter *SHADER.BIN</p>
<p dir="auto">So how do i do this?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97187</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97187</guid><dc:creator><![CDATA[BeatBullz]]></dc:creator><pubDate>Sat, 19 Oct 2024 01:33:05 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 21:09:18 GMT]]></title><description><![CDATA[<p dir="auto">Good afternoon @Folks,<br />
I am off to regex school, although, admittedly, these last expressions do make my head spin @Exorcist :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63089</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63089</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Sat, 20 Feb 2021 21:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 21:18:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@peter-cohen</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18057">@astrosofista</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto">Let’s imagine that we want to search for any <strong>integer</strong> or <strong>floating decimal</strong> number, <strong>different</strong> of any <strong>zero</strong> syntax, when it follows the <strong><code>RESULTVALUE=</code></strong> string, with this <strong>exact</strong> case. Then a possible <strong>regex</strong>, expressed with the <strong>free-spacing</strong> mode ( <strong><code>(?x)</code></strong> ) could be :</p>
<pre><code class="language-z">(?x-i)  RESULTVALUE=  \K  [+-]?  (  (?! 0 \. 0? \D | 0 [^\d.] )  \d+  ( \. \d* )?  |  \.  (?! 0 \D ) \d+  )
</code></pre>
<hr />
<ul>
<li><strong>Paste</strong> the text, below, in a N++ <strong>new</strong> tab</li>
</ul>
<pre><code class="language-z">    RESULTVALUE=              No               ResultValue=              No                                      
    RESULTVALUE=.             No               ResultValue=.             No                 .               No   
                                                                                                                 
    RESULTVALUE=,             No               ResultValue=,             No                 ,               No   
    RESULTVALUE=ABC           No               ResultValue=ABC           No                 ABC             No   
                                                                                                                 
    RESULTVALUE=0             No               ResultValue=0             No                 0               No   
    RESULTVALUE=-0            No               ResultValue=-0            No                 -0              No   
    RESULTVALUE=+0            No               ResultValue=+0            No                 +0              No   
                                                                                                                 
    RESULTVALUE=.0            No               ResultValue=.0            No                 .0              No   
    RESULTVALUE=-.0           No               ResultValue=-.0           No                 -.0             No   
    RESULTVALUE=+.0           No               ResultValue=+.0           No                 +.0             No   
                                                                                                                 
    RESULTVALUE=0.            No               ResultValue=0.            No                 0.              No   
    RESULTVALUE=+0.           No               ResultValue=+0.           No                 +0.             No   
    RESULTVALUE=-0.           No               ResultValue=-0.           No                 -0.             No   
                                                                                                                 
    RESULTVALUE=0.0           No               ResultValue=0.0           No                 0.0             No   
    RESULTVALUE=+0.0          No               ResultValue=+0.0          No                 +0.0            No   
    RESULTVALUE=-0.0          No               ResultValue=-0.0          No                 -0.0            No   
                                                                                                                 
    RESULTVALUE=0.00120       Yes              ResultValue=0.00120       No / Yes           0.00120         No   
    RESULTVALUE=0.00123       Yes              ResultValue=0.00123       No / Yes           0.00123         No   
    RESULTVALUE=0.12300       Yes              ResultValue=0.12300       No / Yes           0.12300         No   
    RESULTVALUE=0.42          Yes              ResultValue=0.42          No / Yes           0.42            No   
    RESULTVALUE=.71           Yes              ResultValue=.71           No / Yes           .71             No   
    RESULTVALUE=2             Yes              ResultValue=2             No / Yes           2               No   
    RESULTVALUE=5.            Yes              ResultValue=5.            No / Yes           5.              No   
    RESULTVALUE=6.8           Yes              ResultValue=6.8           No / Yes           6.8             No   
    RESULTVALUE=007.1         Yes              ResultValue=007.1         No / Yes           007.1           No   
    RESULTVALUE=091           Yes              ResultValue=091           No / Yes           091             No   
                                                                                                                 
    RESULTVALUE=+0.00120      Yes              ResultValue=+0.00120      No / Yes           +0.00120        No   
    RESULTVALUE=+0.00123      Yes              ResultValue=+0.00123      No / Yes           +0.00123        No   
    RESULTVALUE=+0.12300      Yes              ResultValue=+0.12300      No / Yes           +0.12300        No   
    RESULTVALUE=+0.42         Yes              ResultValue=+0.42         No / Yes           +0.42           No   
    RESULTVALUE=+.71          Yes              ResultValue=+.71          No / Yes           +.71            No   
    RESULTVALUE=+2            Yes              ResultValue=+2            No / Yes           +2              No   
    RESULTVALUE=+5.           Yes              ResultValue=+5.           No / Yes           +5.             No   
    RESULTVALUE=+6.8          Yes              ResultValue=+6.8          No / Yes           +6.8            No   
    RESULTVALUE=+007.1        Yes              ResultValue=+007.1        No / Yes           +007.1          No   
    RESULTVALUE=+091          Yes              ResultValue=+091          No / Yes           +091            No   
                                                                                                                 
    RESULTVALUE=-0.00120      Yes              ResultValue=-0.00120      No / Yes           -0.00120        No   
    RESULTVALUE=-0.00123      Yes              ResultValue=-0.00123      No / Yes           -0.00123        No   
    RESULTVALUE=-0.12300      Yes              ResultValue=-0.12300      No / Yes           -0.12300        No   
    RESULTVALUE=-0.42         Yes              ResultValue=-0.42         No / Yes           -0.42           No   
    RESULTVALUE=-.71          Yes              ResultValue=-.71          No / Yes           -.71            No   
    RESULTVALUE=-2            Yes              ResultValue=-2            No / Yes           -2              No   
    RESULTVALUE=-5.           Yes              ResultValue=-5.           No / Yes           -5.             No   
    RESULTVALUE=-6.8          Yes              ResultValue=-6.8          No / Yes           -6.8            No   
    RESULTVALUE=-007.1        Yes              ResultValue=-007.1        No / Yes           -007.1          No   
    RESULTVALUE=-091          Yes              ResultValue=-091          No / Yes           -091            No   
</code></pre>
<hr />
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>(?-i)RESULTVALUE=\K[+-]?((?!0\.0?\D|0[^\d.])\d+(\.\d*)?|\.(?!0\D)\d+)</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Purge for each search</code></strong> option</p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong>    search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
</ul>
</li>
</ul>
<p dir="auto">=&gt; <strong>Only</strong> numbers, located after the <strong><code>RESULTVALUE=</code></strong> string, with this <strong>case</strong>, and <strong>strictly different</strong> from <strong><code>0</code></strong>, should be <strong>highlighted</strong> in <strong><code>red</code></strong></p>
<p dir="auto">Now, if you <strong>modify</strong> the regex as <strong><code>(?i)RESULTVALUE=\K[+-]?((?!0\.0?\D|0[^\d.])\d+(\.\d*)?|\.(?!0\D)\d+)</code></strong>, the numbers, located after the string <strong><code>ResultValue=</code></strong> are also <strong>highlighted</strong> !</p>
<hr />
<p dir="auto"><strong>Peter</strong>, this example is simply provided to show the <strong>powerful</strong> of <strong>regular</strong> expressions. Of course, you <strong>cannot</strong> fully understand that <strong>example</strong>, by now. Just <strong>execute</strong> the regexes to get the results and, from the <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a>’s link, try to learn the <strong>basic regex</strong> features !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63088</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63088</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 20 Feb 2021 21:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 16:02:52 GMT]]></title><description><![CDATA[<p dir="auto">Holy cow - let me play with this - thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63086</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63086</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Sat, 20 Feb 2021 16:02:52 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 12:05:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a> said in <a href="/post/63081">Search with content exclusion</a>:</p>
<blockquote>
<p dir="auto">RESULTVALUE=090 and now the search doesn’t find it, I suspect because it starts with a 0.</p>
</blockquote>
<p dir="auto">You got it, that’s correct.</p>
<p dir="auto">However that doesn’t mean that you cannot match a number that starts with a 0. The following regex will match <code>RESULTVALUE=090</code> but not <code>RESULTVALUE=0</code> or  <code>RESULTVALUE="</code>, that is, when <code>RESULTVALUE=</code> is followed by any other symbol than a number:</p>
<pre><code class="language-z">RESULTVALUE=(?!0\D)(?=\d)
</code></pre>
<p dir="auto">Hope this helps.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63084</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63084</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sat, 20 Feb 2021 12:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 02:58:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> - going through a crash course here.<br />
BTW - I used to be a computer programmer in a previous life, but this, definitely, is new territory for me :-|<br />
I will definitely have to read up on this - thanks for the link.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63083</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63083</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Sat, 20 Feb 2021 02:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 02:50:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a> said in <a href="/post/63081">Search with content exclusion</a>:</p>
<blockquote>
<p dir="auto">would it be impertinent from me to ask WHY/HOW this works?</p>
</blockquote>
<p dir="auto">Of course not.</p>
<p dir="auto">The construct <code>(?!</code>…<code>)</code> is a negative lookahead assertion.<br />
It means that at the current position, for there to be a composite match, whatever <code>...</code> is, cannot be a match for the data (or the overall match fails).</p>
<p dir="auto">Traditionally, in computer science, <code>!</code> means “not”.</p>
<p dir="auto">So in an Englishy way, the expression <code>RESULTVALUE=(?!0)</code> means:</p>
<p dir="auto">match <code>RESULTVALUE=</code> literally, and then insist that the next character is not <code>0</code> for a match to be possible.</p>
<p dir="auto">But the way <code>(?!0)</code> is used here, it precludes <code>090</code> from matching (the search stops trying to match at the first 0).</p>
<p dir="auto">If something is unclear, post again.</p>
<p dir="auto">You can find many more details about the concepts begun here, in <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">THIS</a> thread.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63082</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63082</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 20 Feb 2021 02:50:56 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 02:43:25 GMT]]></title><description><![CDATA[<p dir="auto">BTW - would it be impertinent from me to ask WHY/HOW this works?<br />
I am trying to decipher (?!0) and - admittedly - don’t understand what it actually stands for.<br />
Interestingly, I changed one of the lines to:<br />
RESULTVALUE=090 and now the search doesn’t find it, I suspect because it starts with a 0.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63081</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63081</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Sat, 20 Feb 2021 02:43:25 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 02:16:14 GMT]]></title><description><![CDATA[<p dir="auto">Gentlemen,<br />
Thank you very much, RESULTVALUE=(?!0) did the trick.<br />
Sorry if I confused you - I was even more confused.<br />
This is definitely very powerful and useful (and tricky).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63080</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63080</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Sat, 20 Feb 2021 02:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 01:33:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18057">@astrosofista</a> said in <a href="/post/63073">Search with content exclusion</a>:</p>
<blockquote>
<p dir="auto">Remove the quote from my regex if not needed.</p>
</blockquote>
<p dir="auto">At which point, doesn’t it become the same as MY regex?  ;-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63076</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63076</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 20 Feb 2021 01:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 00:27:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a></p>
<p dir="auto">Good point :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a></p>
<p dir="auto">Remove the quote from my regex if not needed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63073</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63073</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sat, 20 Feb 2021 00:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 00:21:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18057">@astrosofista</a></p>
<p dir="auto">I really don’t think that <code>"</code> enter into the OP’s need at all.<br />
He was just using the quotes because he’s familiar with doing it when using grep, I think.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63072</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63072</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 20 Feb 2021 00:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 00:19:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a></p>
<p dir="auto">You’re welcome. My regex says: match every <code>RESULTVALUE=</code> that is followed by a quote <code>"</code>, as I read your example. However it seems that I misunderstood your needs.</p>
<p dir="auto">Try this other regex instead:</p>
<pre><code class="language-z">RESULTVALUE=(?!0")
</code></pre>
<p dir="auto">It will match every ‘RESULTVALUE=’ that is not followed by <code>0"</code>.</p>
<p dir="auto">Hope it’s fine now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63071</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63071</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Sat, 20 Feb 2021 00:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Sat, 20 Feb 2021 00:18:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a></p>
<p dir="auto">For “not zero”, try <code>(?!0)</code>, so <code>RESULTVALUE=(?!0)</code> for your need.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63070</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63070</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 20 Feb 2021 00:18:25 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Fri, 19 Feb 2021 23:49:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello astrofista,<br />
Thanks for putting me on the path to a solution.<br />
However, using your expression, I did not get the result I want.<br />
Using the table below, I ONLY want to find line 2 &amp; 4.<br />
Using RESULTVALUE=(?=") gets me nothing.<br />
Using RESULTVALUE=(?=0) gets me all the zero (0) values.<br />
Is there a way to specify (?=Not 0)</p>
<p dir="auto">RESULTVALUE=0<br />
RESULTVALUE=5<br />
RESULTVALUE=0<br />
RESULTVALUE=7<br />
RESULTVALUE=0</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63069</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63069</guid><dc:creator><![CDATA[Peter Cohen]]></dc:creator><pubDate>Fri, 19 Feb 2021 23:49:57 GMT</pubDate></item><item><title><![CDATA[Reply to Search with content exclusion on Fri, 19 Feb 2021 23:31:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/9771">@Peter-Cohen</a></p>
<p dir="auto">Sure is possible. In order to accomplish your wish, <code>search</code> or <code>mark</code> with the following regular expressión</p>
<pre><code class="language-z">RESULTVALUE=(?=")
</code></pre>
<p dir="auto">Put the caret at the very beginning of the document, select the <code>Regular Expression mode</code> and click on <code>Find Next</code>, <code>Find All in Current Document</code> or <code>Mark All</code> as appropriated.</p>
<p dir="auto">Take care and have fun!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63068</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63068</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Fri, 19 Feb 2021 23:31:18 GMT</pubDate></item></channel></rss>