<?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 Needed with COMPARE plugin..thanks in advance]]></title><description><![CDATA[<p dir="auto">Hey Everyone,<br />
I suck at this so please bare with me.<br />
I am trying to compare two notepad files. They are essentially lists of files I have.<br />
I can successfully compare them (woohoo)…<br />
Here is an example of a few lines for better understanding<br />
!MrRay	BKD-24787      -	Maren Morris - Drunk Girls Don’t Cry.zip<br />
!MrRay	BKD-24789	-	Bruno Mars - That’s What I Like.zip<br />
!MrRay	BKD-24791	-	Brett Young - Sleep Without You.zip<br />
!MrRay	BKD-24793	-	Chris Janson - Power Of Positive Drinkin’.zip<br />
!MrRay	BKD-24795	-	Drake - Passionfruit.zip<br />
!MrRay	BKD-24797	-	Drake White - Makin’ Me Look Good Again.zip<br />
!MrRay	BKD-24799	-	Brothers Osborne - It Ain’t My Fault.zip<br />
!MrRay	BKD-24801	-	Florida Georgia Line - Dig Your Roots.zip</p>
<p dir="auto">in a perfect world I would love to be able to compare by columns…<br />
I have “show only diffs” checked off but it returns the while list with differences highlighted. which requires me to mark each difference by hand<br />
700k lines compared and thousands of results need to be C&amp;P</p>
<p dir="auto">in addition…<br />
Right now it highlights some only because the spelling is different or there are a few extra characters in the titles.<br />
I would love to have the program compare what i would call the second column<br />
(BKD-xxxxx) and <strong>only show me the differences (ones missing)</strong> so I could C&amp;P them into another notepad file.</p>
<p dir="auto">Is there a way to accomplish what I am looking for?  or is it beyond what notepad++ and COMPARE plug-in is capable of?</p>
<p dir="auto">1st image attached is what I get after I compare<br />
<img src="/assets/uploads/files/1730036563667-compare-1.jpg" alt="compare 1.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">2nd is what I am looking for<br />
<img src="/assets/uploads/files/1730036777922-compare-2.jpg" alt="compare 2.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26245/help-needed-with-compare-plugin-thanks-in-advance</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 12:12:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26245.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Oct 2024 13:48:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 02 Dec 2024 13:48:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-Landolfi">@<bdi>ray-Landolfi</bdi></a> said in <a href="/post/98268">Help Needed with COMPARE plugin..thanks in advance</a>:</p>
<blockquote>
<p dir="auto">I tried to select all and copy the lines but it copies every line not just the compared lines so its back to individually marking them…</p>
</blockquote>
<p dir="auto">Check this description (I quote myself from the corresponding issue in ComparePlus repository):</p>
<blockquote>
<p dir="auto">After a compare you switch to the file which differences you want to copy, open the ComparePlus menu and use one of the new Bookmark… commands depending on what type of diffs you want to copy (for example Bookmark All Diffs in Current View). This will add a Notepad++ bookmark on every diff line matching that criteria. Next you can use the Notepad++ functionality to copy all bookmarked lines (you will find it under Search -&gt; Bookmark sub-menu).</p>
</blockquote>
<p dir="auto">BR</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98353</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98353</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Mon, 02 Dec 2024 13:48:05 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Thu, 28 Nov 2024 18:02:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">I havent tried to sort files in a while and finally came back to check your responses…</p>
<p dir="auto">Yes that latest regex worked to isolate just the files that were missing solely by the track info…  Thank you again…</p>
<p dir="auto">The added info on marking all those returned files at once however didn’t work…  I only resumed the process today and have been marking them by hand…  I tried to select all and copy the lines but it copies every line not just the compared lines so its back to individually marking them… it’s not fun but it beats looking through tens of thousands one at a time…</p>
<p dir="auto">Thanks again for all your help…<br />
If you have the urge to work out the marking issue<br />
feel free…</p>
<p dir="auto">Ray</p>
]]></description><link>https://community.notepad-plus-plus.org/post/98268</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/98268</guid><dc:creator><![CDATA[ray Landolfi]]></dc:creator><pubDate>Thu, 28 Nov 2024 18:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Thu, 31 Oct 2024 20:26:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, while seeing your picture, I note that the <strong><code>ComparePlus</code></strong> plugin tell you to add a new <strong>empty</strong> line at the <strong>very beginning</strong> of your <strong>two</strong> files in order to compare them <strong>properly</strong>. So :</p>
<ul>
<li>
<p dir="auto">First, follow this <strong>advice</strong> and add an <strong>empty</strong> line on top of <strong>each</strong> file</p>
</li>
<li>
<p dir="auto">Secondly, change the <strong>Ignore</strong> regex and use this <strong>new</strong> one <strong><code>^.+?\x20|\x20-\x20.+$</code></strong></p>
</li>
<li>
<p dir="auto">Thirdly, <strong>re-compare</strong> your <strong>two</strong> files</p>
</li>
</ul>
<p dir="auto">This time, everything should be <strong>OK</strong> !</p>
<hr />
<p dir="auto">For your information :</p>
<ul>
<li>Copy the <strong>three</strong> lines below, provided in your <strong>last</strong> post, in a <strong>new</strong> tab</li>
</ul>
<pre><code class="language-diff">!celtic KVD-59990 - Luther Vandross - Killing Me Softly.zip  ::INFO:: 2.6Mb
!beni-Lappy BKD-24733 - Brantley Gilbert - Devil Don’t Sleep.zip
!MrRay SC7515-12 - Frank Sinatra - My Way.zip
</code></pre>
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog of N++ ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto">Type in the regex <strong><code>^.+?\x20|\x20-\x20.+$</code></strong> in the <strong>Find what:</strong> zone</p>
</li>
<li>
<p dir="auto"><strong>Un</strong>-check <strong>all</strong> the box options ( <em>IMPORTANT</em> )</p>
</li>
<li>
<p dir="auto"><strong>Check</strong> only the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto"><strong>Click</strong> on the <strong><code>Mark All</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; <strong>All</strong> text should be <strong>highlighted</strong>, <strong>except</strong> for the zones <strong><code>KBD-59990</code></strong> , <strong><code>BKD-24733</code></strong> and <strong><code>SC7515-12</code></strong></p>
<p dir="auto">So, the <strong>highlighted</strong> zones are the zones <strong>excluded</strong> of the <strong>comparison</strong> by the <strong><code>ComparePlus</code></strong> plugin. Thus, <em>ONLY</em> the parts <strong><code>KBD-59990</code></strong> , <strong><code>BKD-24733</code></strong> and <strong><code>SC7515-12</code></strong> will be taken in <strong>account</strong> in the comparison process !</p>
<p dir="auto">Now :</p>
<ul>
<li>
<p dir="auto">Open a <strong>real</strong> file of yours</p>
</li>
<li>
<p dir="auto"><strong>Repeat</strong> the <strong>above</strong> <em>MARK</em> operation</p>
</li>
</ul>
<p dir="auto">=&gt; You’ll can verify that everything, but the <strong>DISK-TRACK</strong> zones, is <strong>marked</strong>, as you <strong>expected</strong> to !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97468</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97468</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 31 Oct 2024 20:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Thu, 31 Oct 2024 16:34:43 GMT]]></title><description><![CDATA[<p dir="auto">Thank you to everyone who helped…</p>
<p dir="auto">PETER:  Its true should learn this and thank you for your advice…<br />
You are correct that the <strong>“DISC”</strong> field will contain text other than “BKD” as tried to explain in the other examples I shared… and the <strong>“TRACK #”</strong> will possibly contain more then 1 or 2 digits   sometimes as many as 8 or more</p>
<p dir="auto">The first string of data is the person’s list I am getting the info from   it will vary<br />
The second string will vary in length and characters as well but always be in the same format **“<strong>DISK-TRACK</strong>”**with no-space between them</p>
<p dir="auto">Thank you for pointing out that I may have not explained the naming format fully. I have been working with this format for years and forget it’s new to others.<br />
The following examples will show that the data is different depending on the person the list is from…</p>
<p dir="auto">!celtic <strong>KVD-59990</strong> - Luther Vandross - Killing Me Softly.zip<br />
!beni-Lappy <strong>BKD-24733</strong> - Brantley Gilbert - Devil Don’t Sleep.zip<br />
!MrRay <strong>SC7515-12</strong> - Frank Sinatra - My Way.zip</p>
<p dir="auto">We can be sure that data to be sorted immediately follows the FIRST SPACE<br />
and ends immediately before the SECOND SPACE.<br />
I don’t know of any other way to describe it</p>
<p dir="auto">GUY: thank you again for your help…  The second code you shared seems to be ignoring the person the list is from…that worked<br />
However since I wasn’t specific in explaining that the disk and track could be other than always being BKD I think it is not ignoring the other text after the DISC-TRACK#</p>
<p dir="auto">Here is a screen shot of what I get when I use a list from another person and discs/tracks other than BKD with the same regex code</p>
<p dir="auto">I don’t want to be a bother or pain in the butt so I will use what I have and no hard feelings…<br />
I will follow up on seeing if I can learn this stuff but it’s going to be from the very start and this could take a while…LOL<img src="/assets/uploads/files/1730392462848-b23491f8-cccd-4059-a98b-9fa682063e2f-image.png" alt="b23491f8-cccd-4059-a98b-9fa682063e2f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks again guys</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97465</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97465</guid><dc:creator><![CDATA[ray Landolfi]]></dc:creator><pubDate>Thu, 31 Oct 2024 16:34:43 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 19:51:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-Landolfi">@<bdi>ray-Landolfi</bdi></a>,</p>
<p dir="auto">Of course, you are still being overly vague, giving only one example, when even your original screenshots prove that your data is more complicated than you are implying.  <code>!beni-lappy BKD-####</code> shows that - can occur even in the “DISC ####” section, so the regex has to accept even hyphens (the character is an ASCII hyphen, not a dash), and that despite using the # , which means “number sign” in ASCII text, “DISC ####” is <em>not</em> a number, even though for “TRACK ####”, it <em>is</em> a number.  Being ultra-loose in your examples like that is why <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> was asking for more example data, input using the <code>&lt;/&gt;</code> button in the Forum post editor, so that it shows up in a text box, and we know we aren’t missing important characters.</p>
<p dir="auto">But based on a guess as to what you mean – I think you are saying that DISC can have anything, and there is a hyphen separating DISC and TRACK, and track must be a one-or-more-digit number.</p>
<p dir="auto">Thus, instead of having <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>’d lookahead of <code>(?=BKD)</code>, which was making the assumption that BKD always came before the DISC-TRACK separating hyphen, you would actually want a lookahead of <code>(?=-\d+)</code> … and if I were you, I would also make the “match-anything” before that <code>.+?</code> instead of <code>.+</code>, so that it will stop at the first <code>-####</code> if there happens to be more than one in a given line.  Based on this, my recommendation for a more-generic regex would be <code>^.+?(?=-\d+)|\x20-\x20.+$</code></p>
<blockquote>
<p dir="auto">I actually feel LESS smart than before</p>
</blockquote>
<p dir="auto">Anytime you are learning something new that’s worth learning, you must start with the realization that you have more to learn.  Instead of using that as an excuse to give up, you need to use it as motivation.  The FAQ gave lots of resources, any one of which would be a good place to start learning.  Or just learn what each of the chunks that <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> has already shown do, and then start playing around in data that is familiar to you, and see what you can and cannot figure out how to match, and then start looking up terms in the <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ User Manual’s regex section</a> to see if you can figure out how to use the manual to figure out what other syntax does.</p>
<p dir="auto">But just saying “it looks too hard” and giving up is guaranteed to mean you will never learn, and you’re the one who gets hurt by that decision.</p>
<blockquote>
<p dir="auto">I will have to depend on someone</p>
</blockquote>
<p dir="auto">Well, okay, if you are going to assume that someone else will always do stuff for you when it’s “too hard” for you, any such people that you abuse will also be harmed (or at least saddened) by your decision.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97404</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97404</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 28 Oct 2024 19:51:29 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 19:25:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> all of the tracks are formatted the same… OMG how confusing if they didn’t…lol<br />
the length of the “DISK” and “TRACK” selections only vary by character quantity…such as<br />
zoom-1234<br />
misc-12<br />
homemade-0004</p>
<p dir="auto">they always contain the same separators<br />
“dash with no spaces” separating “Disk” &amp; “Track#”<br />
“space dash space” between "TRACK#"and “ARTIST” and again between “ARTIST &amp; TITLE”<br />
example     SC1000-15 - Frank Sinatra - My Way.zip</p>
<p dir="auto">The last code you offered seems to work well…<br />
It returned the tracks I was missing compared to the other listby highlighting them</p>
<p dir="auto">for some reason even with “return only diffs” checked off it still only highlighted the diffs…it didn’t just list the differences …but I can live with that…<br />
it basically decides what to show me by simply the differences in the “disc and track#s” and ignores any differences in the  “Artist and Title”…so THATS GREAT</p>
<p dir="auto">I then bookmark the ones I need manually, clear all non-bookmarked lines and I have a nice list to C&amp;P for my next step of acquiring them from the other persons library…<br />
you have made this process easier and THANK YOU…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97402</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97402</guid><dc:creator><![CDATA[ray Landolfi]]></dc:creator><pubDate>Mon, 28 Oct 2024 19:25:16 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 17:08:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,*</p>
<p dir="auto">To begin, I’ll just explain my <strong>previous</strong> regex. What all this stuff means ?</p>
<p dir="auto">The search regex <strong><code>^.+(?=BKD)|\x20-\x20.+$</code></strong> can first be <strong>split</strong> in <strong>two</strong> different sub-regexes, separated by the <strong>alternative</strong> regex char which is the <strong><code>|</code></strong>.</p>
<ul>
<li>
<p dir="auto">The part <strong><code>^.+(?=BKD)</code></strong> searches from <strong>beginning</strong> of line [ <strong><code>^</code></strong> ] for a <strong>non-zero</strong> amount of <strong>standard</strong> characters [ <strong><code>.+</code></strong> ] but <em>ONLY IF</em> it’s followed with the <strong><code>BKD</code></strong> string [ <strong><code>(?=BKD)</code></strong> ]. The <strong>last</strong> syntax is called a <strong>look-ahead</strong> structure which is <em>NEVER</em> part of the regex match, but <em>MUST</em> occur at this <strong>location</strong> in order that there’s a match.</p>
</li>
<li>
<p dir="auto">The part <strong><code>\x20-\x20.+$</code></strong> searches for an <strong>space</strong> char, then a <strong>dash</strong> and an other <strong>space</strong> [ <strong><code>\x20-\x20</code></strong> ] followed, again, with a <strong>non-zero</strong> amount of <strong>standard</strong> characters [ <strong><code>.+</code></strong> ], till the <strong>end</strong> of line [ <strong><code>$</code></strong> ]</p>
</li>
</ul>
<p dir="auto">In other words, if, for example, I use the <strong>first</strong> line of the <strong><code>File_B.txt</code></strong>, discussed in my <strong>previous</strong> post :</p>
<pre><code class="language-diff">!beni-Lappy BKD-24733 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
&lt;----------&gt;         &lt;-------------------------------------------------------&gt;                   
  ^.+(?=BKD)                            \x20-\x20.+$                     
</code></pre>
<p dir="auto">As you can see, everything of <strong>each</strong> line, but <strong><code>BKD-#####</code></strong>, is <strong>matched</strong> by this search regex and, thus, will be <strong>ignored</strong> by the <strong><code>ComparePlus</code></strong> plugin during the <strong>process</strong> !</p>
<hr />
<p dir="auto"><strong>Remarks</strong> :</p>
<ul>
<li>
<p dir="auto">By <strong>default</strong> for the <strong><code>ComparePlus</code></strong> plugin, the search is <strong>sensible</strong> to case</p>
</li>
<li>
<p dir="auto">By <strong>default</strong>, any <strong>dot</strong> regex symbol [ <strong><code>.</code></strong> ] stands for a <strong>standard</strong> char, <strong>not</strong> an <em>EOL</em> char</p>
</li>
<li>
<p dir="auto">The <strong>leading</strong> in-line modifiers like <strong><code>(?-i)</code></strong> or <strong><code>(?s)</code></strong> are <strong>not</strong> taken in account</p>
</li>
<li>
<p dir="auto">Do <strong>not</strong> insert any <strong>line-break</strong> [ as <strong><code>\r</code></strong>, <strong><code>\n</code></strong> or <strong><code>\R</code></strong> ] in the regex ( Comparisons is based on a <strong>line by line</strong> process ! )</p>
</li>
</ul>
<hr />
<p dir="auto">Now, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, I pleased to see that your file seems <strong>well</strong> structured, like below :</p>
<pre><code class="language-diff">DISC ### - TRACK ### - ARTIST ......... - TITLE .........
</code></pre>
<p dir="auto">As you say that, both, the <em>ARTIST</em> and the <em>TITLE</em> could be <strong>ignored</strong> and that you just bother for the <em>DISC</em> and <em>TRACK</em> entities, then the <strong>Ignore</strong> regex could be simply as below :</p>
<p dir="auto"><strong><code>\x20-\x20(?!TRACK).+$</code></strong></p>
<pre><code class="language-diff">DISC ### - TRACK ### - ARTIST ......... - TITLE .........
                    &lt;--- \x20-\x20(?!TRACK).+$ ---------&gt; 
</code></pre>
<hr />
<p dir="auto">However, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, I suppose that there are a <strong>lot</strong> of other conditions to respect in your files ! If so, in your reply, just <strong>insert</strong> your text as <strong>raw</strong> text, using the <strong><code>&lt;/&gt;</code></strong> icon !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97401</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97401</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 28 Oct 2024 17:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 16:06:30 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> thank you…</p>
<p dir="auto">upon reading that I have realized I am not as smart as I previously thought…<br />
I actually feel <strong>LESS</strong> smart than before…</p>
<p dir="auto">I will have to depend on someone coming up with a universal regex expression based on my follow up as I am no where capable of doing it myself…  LOL</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97400</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97400</guid><dc:creator><![CDATA[ray Landolfi]]></dc:creator><pubDate>Mon, 28 Oct 2024 16:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 15:29:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-Landolfi">@<bdi>ray-Landolfi</bdi></a> said in <a href="/post/97396">Help Needed with COMPARE plugin..thanks in advance</a>:</p>
<blockquote>
<p dir="auto">where does one learn how to construct a regex expression?</p>
</blockquote>
<p dir="auto">Start <a href="https://community.notepad-plus-plus.org/topic/15765/faq-where-to-find-regular-expressions-regex-documentation">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97398</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97398</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 28 Oct 2024 15:29:31 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 15:25:51 GMT]]></title><description><![CDATA[<p dir="auto">THAT WORKED FANTASTICALLY…YOU SAVED ME “HOURS” OF WORK…<br />
thank you…   thank you …  thank you</p>
<p dir="auto">Using that expression got be through the"BKX-xxxxxs" in minutes</p>
<p dir="auto">I know that expression was made for just that example I gave<br />
How to I learn to make expressions for other track names?<br />
there are hundreds of different naming combinations like<br />
scxxxx-xx ,      zpcp2024-xx,     kv-xxxxx<br />
but the all follow the same format just have different letters and numbers<br />
typically the standard format for all like this…<br />
<strong>DISC #</strong><em>(dash)<em><strong>TRACK #</strong></em>(SpaceDashSpace</em>)<strong>ARTIST</strong>(<em>SpaceDashSpace</em>)<strong>TITLE</strong><br />
the artist and title could be ignored if they are sorted by just the DISK &amp; TRACK #s</p>
<p dir="auto">I really need to learn the process of creating an expression if there is no way to make a universal one.</p>
<p dir="auto">where does one learn how to construct a regex expression?</p>
<p dir="auto">oh and THANK YOU AGAIN for what you already provided…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97396</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97396</guid><dc:creator><![CDATA[ray Landolfi]]></dc:creator><pubDate>Mon, 28 Oct 2024 15:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 14:07:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-Landolfi">@<bdi>ray-Landolfi</bdi></a> ,</p>
<p dir="auto">Just follow <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> 's <a href="https://community.notepad-plus-plus.org/topic/26245/help-needed-with-compare-plugin-thanks-in-advance/3">instuctions</a> and you should achieve your goal without problems.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> ,<br />
Thank you for helping users here on the forum and for providing work-around solution.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> ,<br />
Thank you as always for your invaluable RegEx wizardy ;)</p>
<p dir="auto">BR</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97393</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97393</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Mon, 28 Oct 2024 14:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Mon, 28 Oct 2024 09:02:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ray-landolfi" aria-label="Profile: ray-landolfi">@<bdi>ray-landolfi</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: coises">@<bdi>coises</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I think that there’s a way to achieve want you want to, <strong>natively</strong>, from within the <strong><code>ComparePlus</code></strong> plugin :-))</p>
<ul>
<li>First, in order to <strong>verify</strong> my assertion, here are, below, <strong>two</strong> texts. The <strong>first</strong> one will be saved ad <strong><code>File_A.txt</code></strong> and the second as <strong><code>File_B.txt</code></strong></li>
</ul>
<pre><code class="language-diff">
!MrRay BKD-24734 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24734 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24734 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24735 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24735 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24736 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!MrRay BKD-24736 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
</code></pre>
<p dir="auto">And :</p>
<pre><code class="language-diff">
!beni-Lappy BKD-24733 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!beni-Lappy BKD-24734 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!beni-Lappy BKD-24735 - Brantley Gilbert - Aaaaaaaaaaaaaaaaa.zip  ::INFO:: 3.6
!beni-Lappy BKD-24735 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!beni-Lappy BKD-24735 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!beni-Lappy BKD-24736 - Brantley Gilbert - Bbbbbbbbbbbbbbbbb.zip  ::INFO:: 3.6
!beni-Lappy BKD-24736 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
!beni-Lappy BKD-24737 - Brantley Gilbert - Devil Don't Sleep.zip  ::INFO:: 3.6
</code></pre>
<hr />
<p dir="auto">Then, follow these <strong>few</strong> steps :</p>
<ul>
<li>
<p dir="auto">Select the option <strong><code>Plugins &gt; ComparePlus &gt; Ignore Regex...</code></strong></p>
</li>
<li>
<p dir="auto">In the pop-up window which appears, enter the regex <strong><code>^.+(?=BKD)|\x20-\x20.+$</code></strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Enable</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; You can verify that the <strong><code>Ignore Regex...</code></strong> option is <strong>checked</strong></p>
<ul>
<li>Now, (re)compare the <strong>two</strong> files <strong><code>File_A.txt</code></strong> and <strong><code>File_B.txt</code></strong> with the option <strong><code>Plugins &gt; ComparePlus &gt; Compare</code></strong></li>
</ul>
<p dir="auto">=&gt; This time, <em>ONLY</em> the part <strong><code>BKD-#####</code></strong> will be taken in account in the comparison process.  More <strong>easy</strong> to read, isn’t it !</p>
<ul>
<li>
<p dir="auto">To improve the reading, you may even <strong>check</strong> the <strong><code>Plugins &gt; ComparePlus &gt; Show Only Diffs (Hide Matches)</code></strong> option</p>
</li>
<li>
<p dir="auto">You may also select the <strong><code>File_B.txt</code></strong> file and <strong>bookmark</strong> all its differences !</p>
</li>
</ul>
<p dir="auto">Voila ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto">My <strong>Debug Info</strong> :</p>
<pre><code class="language-diff">Notepad++ v8.7.1   (64-bit)
Build time : Oct 25 2024 - 04:07:21
Path : D:\871_x64\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.5011
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)
    ComparePlus (1.2)
</code></pre>
<hr />
<p dir="auto"><strong>BEFORE</strong> :</p>
<p dir="auto"><img src="/assets/uploads/files/1730105935461-7346ddeb-c09c-4c1e-93d3-716c9d139c24-capture-d-%C3%A9cran-2024-10-28-095608.png" alt="7346ddeb-c09c-4c1e-93d3-716c9d139c24-Capture d’écran 2024-10-28 095608.png" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto"><strong>AFTER</strong> :</p>
<p dir="auto"><img src="/assets/uploads/files/1730105995657-e41b6c67-0cc6-4602-abf1-2faafdf8d2e0-capture-d-%C3%A9cran-2024-10-28-095245.png" alt="e41b6c67-0cc6-4602-abf1-2faafdf8d2e0-Capture d’écran 2024-10-28 095245.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/97383</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97383</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 28 Oct 2024 09:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to Help Needed with COMPARE plugin..thanks in advance on Sun, 27 Oct 2024 19:53:59 GMT]]></title><description><![CDATA[<p dir="auto">I <em>think</em> the problem you are trying to solve is this:</p>
<ol>
<li>Only the numbers after <strong>BKD-</strong> matter.</li>
<li>What you want to know is which numbers occur in the first file but not in the second file.</li>
</ol>
<p dir="auto">I can tell you how I would solve this problem. I’m sure it’s not the only way.</p>
<p dir="auto">First, make <strong>copies</strong> of each of your files. Edit the copies (open both — you’ll have two tabs).</p>
<p dir="auto">In each file, delete the part that comes before the <strong>BKD-</strong>, and add a marker that will help us know which file is which.</p>
<p dir="auto">To do that in the first file:</p>
<ul>
<li>From the main menu, choose <strong>Search</strong> | <strong>Replace</strong>.</li>
<li>In the dialog, enter:<br />
<strong>Find what: <code>^.* (BKD-\d++)</code></strong><br />
<strong>Replace with: <code>\1 1</code></strong><br />
<strong>Wrap around:</strong> checked<br />
<strong>Search Mode: Regular expression</strong><br />
<strong>. matches newline:</strong> <em>not</em> checked</li>
<li>Click <strong>Replace All</strong>.</li>
<li>Close the dialog.</li>
</ul>
<p dir="auto">Do the same in the second file, but replace with <strong><code>\1 2</code></strong> instead of <strong><code>\1 1</code></strong>.</p>
<p dir="auto">Next, select all of the second file (Ctrl+A) and copy to the clipboard (Ctrl+C).</p>
<p dir="auto">Switch to the first file and go to the bottom. If there is a numbered, empty line at the bottom, click on that line and paste there (Ctrl+V). If the last line is not empty, go to the end of the last line and press the <strong>Enter</strong> key to create an empty line, then paste there.</p>
<p dir="auto">Next, make sure nothing is selected and use <strong>Edit</strong> | <strong>Line Operations</strong> | <strong>Sort Lines Lexicographically Ascending</strong> to sort the combined file so that all of a single BKD number are together, with the first file cases of each number preceeding the second file cases.</p>
<p dir="auto">Now we can use a regular expression to delete sequences of lines that contain a single BKD number with both 1 and 2 variants:</p>
<ul>
<li>From the main menu, choose <strong>Search</strong> | <strong>Replace</strong>.</li>
<li>In the dialog, enter:<br />
<strong>Find what: <code>^(BKD-\d++) 1.*\R(\1 1.*\R)*(\1 2.*(\R|\Z))+</code></strong><br />
<strong>Replace with:</strong> <em>(leave empty)</em><br />
<strong>Wrap around:</strong> checked<br />
<strong>Search Mode: Regular expression</strong><br />
<strong>. matches newline:</strong> <em>not</em> checked</li>
<li>Click <strong>Replace All</strong>.</li>
<li>Close the dialog.</li>
</ul>
<p dir="auto">You’ll be left with the BKD numbers that didn’t occur in both files.</p>
<p dir="auto">If you need to condense that list so that each number appears only once, even if it occurred multiple times in one file (but not at all in the other), you can do another regular expression to eliminate all but the first of each <strong>BKD-</strong> number. I’ll leave it to you to see if you can figure out how to do that; if you need guidance, tell us what you tried and what went wrong.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/97382</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/97382</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Sun, 27 Oct 2024 19:53:59 GMT</pubDate></item></channel></rss>