<?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[Filter the data !!!]]></title><description><![CDATA[<p dir="auto">I have a Notepad ++ text file as follows:</p>
<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
  &lt;title&gt;MD5 Database - Nitrxgen&lt;/title&gt;
  &lt;meta http-equiv="content-type" content="text/html;charset=utf-8"/&gt;
  &lt;meta http-equiv="content-language" content="en-gb"/&gt;
  &lt;meta name="author" content="Nitrxgen"/&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt;
  &lt;meta name="description" content="A free, instant MD5 lookup service with over 1 Trillion password candidates."/&gt;
  &lt;link href="/css/general.css" rel="stylesheet" type="text/css"/&gt;
  &lt;link href="/css/md5db.css" rel="stylesheet" type="text/css"/&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/js/general.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="https://www.google.com/recaptcha/api.js?render=6Lcd-pYUAAAAAAEb1ZAHtmdf3gJAmp5AQ8Pk28W9" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/js/md5db.js" type="text/javascript" defer&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id="s_main"&gt;
  &lt;div id="s_head"&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;a href="/"&gt;nitrxgen&lt;/a&gt;
    &lt;span style="background-color:rgba(255,255,255,.5);color:#FFF;height:35px;line-height:35px;"&gt;&lt;b&gt;STAY AT HOME&lt;/b&gt;&lt;/span&gt;
  &lt;/div&gt;
  &lt;div id="s_pair"&gt;
    &lt;div id="s_menu"&gt;
      &lt;a href="/"&gt;Home&lt;/a&gt;
      &lt;a href="/contact/"&gt;Contact&lt;/a&gt;
      &lt;a href="/donations/"&gt;&lt;img alt="" src="/img/star.png" style="vertical-align:-1px;"/&gt; Donations&lt;/a&gt;
      &lt;hr/&gt;
      &lt;a href="/collatz/"&gt;Collatz Conjecture&lt;/a&gt;
      &lt;a href="/hashgen/"&gt;Hash Generator&lt;/a&gt;
      &lt;a href="/ntlmcase/"&gt;NTLM Case Corrector&lt;/a&gt;
      &lt;a href="/youtube_cc/"&gt;YouTube CC Downloader&lt;/a&gt;
      &lt;hr/&gt;
      &lt;a href="/factorialdb/"&gt;Factorial Calculator&lt;/a&gt;
      &lt;a class="current" href="/md5db/"&gt;MD5 Database&lt;/a&gt;
    &lt;/div&gt;
    &lt;div id="s_body"&gt;

      &lt;a class="section" name="md5_database"&gt;MD5 Database&lt;/a&gt;
      &lt;p&gt;
        This is a look-up tool for typical unsalted &lt;acronym title="Message Digest v5"&gt;MD5&lt;/acronym&gt; cryptographic hashes. The
        database currently contains &lt;acronym title="Or, exactly 1,127,962,538,784 passwords"&gt;&lt;b&gt;1.1+ trillion&lt;/b&gt;&lt;/acronym&gt;
        passwords.
      &lt;/p&gt;
      &lt;p&gt;
        To use this service, please use the &lt;a href="https://www.nitrxgen.net/md5db_info/#api"&gt;&lt;b&gt;the dedicated API&lt;/b&gt;&lt;/a&gt;.
      &lt;/p&gt;

      &lt;hr/&gt;

      &lt;p&gt;&lt;/p&gt;
      &lt;!-- &lt;hr/&gt; --&gt;

      &lt;a class="section" name="rfh"&gt;Recently Found Passwords&lt;/a&gt;
      &lt;p&gt;&lt;/p&gt;
      &lt;!-- IF YOU REALLY WANT TO CRAWL THIS BIT, GO FIND THE XML LOCATION IN THE JAVASCRIPT --&gt;
      &lt;!-- this bit MAY change in the future to use Server-Sent Events instead, so don't assume the XML will forever be available --&gt;
      &lt;div class="md5db_rfp"&gt;
        &lt;div&gt;&lt;div&gt;Hash Value&lt;/div&gt;&lt;div&gt;Password&lt;/div&gt;&lt;div&gt;Hits&lt;/div&gt;&lt;div&gt;Found By&lt;/div&gt;&lt;div&gt;When&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;37fdf1254303be28b01538692425c1a0&lt;/div&gt;&lt;div class="ellipsis"&gt;nFpRJC5166&lt;/div&gt;&lt;div&gt;874&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;a28a5338b9bdf5946f164091b180d4c7&lt;/div&gt;&lt;div class="ellipsis"&gt;e7219089&lt;/div&gt;&lt;div&gt;5&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;3b6b878850b5858771a83e0a270313f9&lt;/div&gt;&lt;div class="ellipsis"&gt;dfh333&lt;/div&gt;&lt;div&gt;5&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;a93c6c7f2c3af560ed647a05a83318b8&lt;/div&gt;&lt;div class="ellipsis"&gt;12butterflies&lt;/div&gt;&lt;div&gt;178&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;627e25817432ff801ccce621f39e4ff2&lt;/div&gt;&lt;div class="ellipsis"&gt;uZ005287&lt;/div&gt;&lt;div&gt;6&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;43ba96c671cd4e4bec558fc82838dea9&lt;/div&gt;&lt;div class="ellipsis"&gt;thegr81&lt;/div&gt;&lt;div&gt;177&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;0f5347444c2907992c7aea817b723644&lt;/div&gt;&lt;div class="ellipsis"&gt;cvbnuiop82&lt;/div&gt;&lt;div&gt;183&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;428ca2a132023d13ec3d73af48ce2b6a&lt;/div&gt;&lt;div class="ellipsis"&gt;540322&lt;/div&gt;&lt;div&gt;28&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;bddd7f92b46ae022c5b590a22459634d&lt;/div&gt;&lt;div class="ellipsis"&gt;jo08jo02&lt;/div&gt;&lt;div&gt;101&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;c0a741e5e2fb2e3df81c1b003547825a&lt;/div&gt;&lt;div class="ellipsis"&gt;cyl1008&lt;/div&gt;&lt;div&gt;9&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;45fd035ccac01f33baa48e91fb014dca&lt;/div&gt;&lt;div class="ellipsis"&gt;6eu5v7sLwI&lt;/div&gt;&lt;div&gt;251&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;6f3a1642b22f6e816a2979963a3b2dff&lt;/div&gt;&lt;div class="ellipsis"&gt;19860613&lt;/div&gt;&lt;div&gt;47&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;0 secs ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;d74864ba33eb47f5b9be5a6e37d9fc20&lt;/div&gt;&lt;div class="ellipsis"&gt;peduna5&lt;/div&gt;&lt;div&gt;1&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;2461b606819363e71e4f97b2b5ded126&lt;/div&gt;&lt;div class="ellipsis"&gt;19770531&lt;/div&gt;&lt;div&gt;45&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;4cd0efe4070757d2f6baeeac21cdb320&lt;/div&gt;&lt;div class="ellipsis"&gt;Fripouille76&lt;/div&gt;&lt;div&gt;365&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;112f30e72454a80f8a9e6168437cee4c&lt;/div&gt;&lt;div class="ellipsis"&gt;021440&lt;/div&gt;&lt;div&gt;11&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;c1775d5ee5751af2492bba1cc680fbd7&lt;/div&gt;&lt;div class="ellipsis"&gt;Strife1!&lt;/div&gt;&lt;div&gt;234&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;0912d4922fa5b8ec600b8ecaf3558293&lt;/div&gt;&lt;div class="ellipsis"&gt;7yjv5lzO7Y&lt;/div&gt;&lt;div&gt;243&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;d2f64eeb1a1ae8eeff8288e6ccc500d3&lt;/div&gt;&lt;div class="ellipsis"&gt;EDGAR14$&lt;/div&gt;&lt;div&gt;105&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
        &lt;div&gt;&lt;div&gt;5adc95dfd45421d8e0522c90c54a2d4d&lt;/div&gt;&lt;div class="ellipsis"&gt;hZnCinANX&lt;/div&gt;&lt;div&gt;118&lt;/div&gt;&lt;div&gt;nitrxgen&lt;/div&gt;&lt;div&gt;1 sec ago&lt;/div&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;p style="line-height: 20px;"&gt;&amp;nbsp;&lt;/p&gt;
      &lt;hr/&gt;


      &lt;p&gt;
        &lt;b&gt;GOOD NEWS&lt;/b&gt; &amp;mdash; A tool to allow users to paste hashes and have them checked against this database will be
        available very soon. It's 100% in the works. It will allow full speed lookups depending how many concurrent sessions
        there are. The time consuming part of this is making sure it won't be abused. Please check the
        &lt;a href="/changelog/"&gt;Changelog&lt;/a&gt; for further updates. &amp;ndash; 25th November, 2019.
      &lt;/p&gt;
      &lt;hr/&gt;
      &lt;a class="section" name="statistics"&gt;Live Statistics&lt;/a&gt;
      &lt;p&gt;
There is a grandtotal of &lt;span id="stats_s1" style="font-weight:bold;"&gt;27,002,118,120&lt;/span&gt; user hash requests made to this database, &lt;span id="stats_s2" style="font-weight:bold;"&gt;178,851,726&lt;/span&gt; are of unique hashes (about &lt;span id="stats_s3" style="font-weight:bold;"&gt;0%&lt;/span&gt; of grandtotal). Out of the grandtotal number of requests, &lt;span id="stats_s4" style="font-weight:bold;"&gt;26,389,883,116&lt;/span&gt; were successful or cracked (about &lt;span id="stats_s5" style="font-weight:bold;"&gt;97%&lt;/span&gt;). Regardingly only unique hashes, &lt;span id="stats_s6" style="font-weight:bold;"&gt;143,451,392&lt;/span&gt; were successful or cracked (about &lt;span id="stats_s7" style="font-weight:bold;"&gt;80%&lt;/span&gt;).      &lt;/p&gt;

      &lt;a class="section" name="gpu"&gt;GPU Processing&lt;/a&gt;
      &lt;p&gt;
        Regular visitors may notice results showing in the table above as being found by "nitrx-gpu", these are cracked locally
        by GPU power in real time. When a hash you submit is not found, it will be queued for GPU cracking at some point in the
        future. Only when it is cracked by GPU will your unfound hash become found for the next time it's requested. The moment
        it gets cracked, it will appear in the table above. Similarly with passwords as "# NOT MD5 #" means the hash was cracked
        but not using the MD5 algorithm and will not be displayed.
      &lt;/p&gt;

      &lt;a class="section" name="information"&gt;Information&lt;/a&gt;
      &lt;p class="paper"&gt;
        &lt;b&gt;Main article&lt;/b&gt;: &lt;a href="/md5db_info/"&gt;MD5 Database - Information&lt;/a&gt;&lt;br/&gt;
        &lt;b&gt;Main article&lt;/b&gt;: &lt;a href="/md5db_info/#api"&gt;MD5 Database - API&lt;/a&gt;
      &lt;/p&gt;
      &lt;p&gt;
        The only data stored as a result of using this tool is the MD5 hash you willingly submit. Invalid form/API inputs are
        stored for the sake of monitoring unknown/malicious behaviour. Such things like IP addresses, cookies, HTTP headers,
        anything about you, your client or your connection, etc. are NOT stored.
      &lt;/p&gt;
      &lt;p&gt;
        Do not contact me about hacking or accessing online accounts for any reason. Do not ask to access the list of passwords
        or hashes users submit. I do not condone any illegal or malicious activity; do not use this tool if that is your
        intention. Read more in the main article links above.
      &lt;/p&gt;
      &lt;p&gt;
        This page loads an external script from Google called &lt;i&gt;reCAPTCHA v3&lt;/i&gt; which is used to collect behavioural
        information of requests to determine if they're real users or bots. This information will eventually be used in new and
        upcoming features to combat automated requests from bots as it may place unwanted load on the server. For more
        information about Google's reCAPTCHA, please view Google's &lt;a href="https://policies.google.com/privacy"&gt;Privacy Policy&lt;/a&gt;
        and &lt;a href="https://policies.google.com/terms"&gt;Terms of Service&lt;/a&gt;.
      &lt;/p&gt;

    &lt;/div&gt;
  &lt;/div&gt;

  &lt;div id="s_tail"&gt;
    &amp;copy; Copyright 2008-2020: Nitrxgen, all rights reserved.&lt;br/&gt;
    XHTML 1.0 valid and CSS3 valid.&lt;br/&gt;
    Source last modified 141 days ago.
  &lt;/div&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
....
</code></pre>
<p dir="auto">I only post a small portion of the document that I have. However the rest of it is similar. How do I get the results:</p>
<pre><code>37fdf1254303be28b01538692425c1a0:nFpRJC5166
a28a5338b9bdf5946f164091b180d4c7:e7219089
3b6b878850b5858771a83e0a270313f9:dfh333
a93c6c7f2c3af560ed647a05a83318b8:12butterfli
627e25817432ff801ccce621f39e4ff2:uZ005287
43ba96c671cd4e4bec558fc82838dea9:thegr81
0f5347444c2907992c7aea817b723644:cvbnuiop82
428ca2a132023d13ec3d73af48ce2b6a:540322
bddd7f92b46ae022c5b590a22459634d:jo08jo02
c0a741e5e2fb2e3df81c1b003547825a:cyl1008
45fd035ccac01f33baa48e91fb014dca:6eu5v7sLwI
6f3a1642b22f6e816a2979963a3b2dff:19860613
d74864ba33eb47f5b9be5a6e37d9fc20:peduna5
2461b606819363e71e4f97b2b5ded126:19770531
4cd0efe4070757d2f6baeeac21cdb320:Fripouille7
112f30e72454a80f8a9e6168437cee4c:021440
c1775d5ee5751af2492bba1cc680fbd7:Strife1!
0912d4922fa5b8ec600b8ecaf3558293:7yjv5lzO7Y
d2f64eeb1a1ae8eeff8288e6ccc500d3:EDGAR14 \
5adc95dfd45421d8e0522c90c54a2d4d:hZnCinANX
</code></pre>
<p dir="auto">Hope this problem is simple for you. Thanks!!!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19240/filter-the-data</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:05:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19240.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Apr 2020 17:55:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filter the data !!! on Fri, 15 May 2020 22:16:15 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">This is how it looks on your system, but I assume it might look different on a system where OSMANYA is more common.<br />
That is, of course, if there is a localized version of Windows that OSMANYA takes into account.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53908</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53908</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 15 May 2020 22:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 15 May 2020 21:43:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <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">Seemingly, in the <strong><code>config.xml</code></strong> file, all characters above <strong><code>\x{007F}</code></strong> ( so <strong>non pure</strong> <strong><code>ASCII</code></strong> ) are <strong>encoded</strong> with the usual <strong><code>XML</code></strong> syntax <strong><code>&amp;#x....;</code></strong>, where a <strong>dot</strong> stands for an <strong>hexadecimal digit</strong></p>
<p dir="auto">For characters, <strong>over</strong> <strong><code>\x{FFFF}</code></strong> ( so <strong>outside</strong> the Unicode <strong><code>Basic Multilingual Plane</code></strong> - <strong>BMP</strong> ), they are represented with <strong>two 16-bit</strong> code units called a <strong>surrogate pair</strong>. Refer to :</p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/Universal_Character_Set_characters#Surrogates" rel="nofollow ugc">https://en.wikipedia.org/wiki/Universal_Character_Set_characters#Surrogates</a></p>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/UTF-16#Code_points_from_U+010000_to_U+10FFFF" rel="nofollow ugc">https://en.wikipedia.org/wiki/UTF-16#Code_points_from_U+010000_to_U+10FFFF</a></p>
<p dir="auto">An example :</p>
<p dir="auto"><img src="/assets/uploads/files/1589578872495-f2af261b-bba6-450e-ab2f-cf303a77115c-image.png" alt="f2af261b-bba6-450e-ab2f-cf303a77115c-image.png" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto">In this example, the <strong>last</strong> character, displayed by the <strong><code>Courier New</code></strong> font as a <strong>small white square</strong> box, is the <strong>OSMANYA letter BA</strong> ( Unicode code-point <strong><code>10481</code></strong> ) which can be described with the <strong>surrogate pair</strong> <strong><code>\x{D801}\x{DC81}</code></strong>, correctly handled and decoded by your <strong>OS</strong> !</p>
<p dir="auto">Refer     <a href="http://www.unicode.org/charts/PDF/U10480.pdf" rel="nofollow ugc">http://www.unicode.org/charts/PDF/U10480.pdf</a></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53907</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53907</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 15 May 2020 21:43:56 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 15 May 2020 11:58:02 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> said in <a href="/post/53871">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">So do people that use non-basic encodings get stuck looking at odd sequences in the Find what box as they are composing a search term?</p>
</blockquote>
<p dir="auto">I don’t use non-basic encodings but I don’t think that this is an issue<br />
because the system font used, which as far as I know is used by the dialog, handles this, normally.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53875</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53875</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 15 May 2020 11:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 19:41:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> said in <a href="/post/53870">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">the colors match a white background, I don’t think they look good on the dark background.</p>
</blockquote>
<p dir="auto">The colors used are mostly those defined already for other uses in Notepad++, as I believe <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> mentioned.  Thus, I’d think they’d already be set to render fairly well for whatever theme you’re using, dark or light.  The two that aren’t predefined…it should be easy to change the RGB tuples for them as they are right in the code itself?:</p>
<p dir="auto"><img src="/assets/uploads/files/1589485221395-85d4a722-40cf-42df-a233-f60f2faa7684-image.png" alt="85d4a722-40cf-42df-a233-f60f2faa7684-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Here’s a nice color picker for you:<br />
<a href="https://www.w3schools.com/colors/colors_picker.asp" rel="nofollow ugc">https://www.w3schools.com/colors/colors_picker.asp</a><br />
I’m sure there are many others, maybe better.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53872</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53872</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 14 May 2020 19:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 19:33:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> said :</p>
<blockquote>
<p dir="auto">I would like to have all the facilities of the editor in the search window.</p>
</blockquote>
<p dir="auto">I have some serious doubts that you’ll ever see this in Notepad++:</p>
<p dir="auto"><img src="/assets/uploads/files/1589484260863-b1d31706-fdce-4acd-8694-00e10d4d4db6-image.png" alt="b1d31706-fdce-4acd-8694-00e10d4d4db6-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But it raises a question I’ve always had:</p>
<p dir="auto">With copy and paste from editor window to <em>Find what</em> box, for other than “simple” encodings, how is the proper encoding maintained so that a search can be done for what the user intends?  Is the <em>Find what</em> box as “encoding aware” as a Scintilla editing buffer?</p>
<p dir="auto">Note: this question goes outside just copying “textually simple” regexes as <a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> mentioned.</p>
<p dir="auto">Font has to play into it as well, right?  Maybe not for actual content, but for what you’re visually looking at?  The <em>Find what</em> box isn’t very “font flexible”.  So do people that use non-basic encodings get stuck looking at odd sequences in the <em>Find what</em> box as they are composing a search term?</p>
<p dir="auto">I only have occasional use for “non-simple” text in my searches, but I’m just wondering how this all works for those that do the “other kind” of searching on an everyday basis.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53871</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53871</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 14 May 2020 19:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 18:47:46 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> said in <a href="/post/52894">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">I’m sure not quite what is being asked for, but here’s a curious little Pythonscript.</p>
</blockquote>
<p dir="auto">That’s right, I wasn’t asking for it, however I am always open to new ideas. Veré si puedo integrarla - me refiero a la versión final - en mi forma de trabajar. Y por lo que veo en las imágenes de los post posteriores, los colores se ajustan a un fondo blanco, no creo que se vean bien en el fondo oscuro. Va a haber que trabajarlo un poco.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53870</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53870</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Thu, 14 May 2020 18:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 18:36:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/52783">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">If it were multiline search/replace textboxes, then inserting EOLs is possible.<br />
How does Npp know that the inserted EOL should not be part of the search expression or replacement pattern?</p>
</blockquote>
<p dir="auto">No, I wasn’t thinking in that feature, but in a kind of word wrapping.</p>
<blockquote>
<p dir="auto">If it is a kind of word wrapping, how can we make sure that it is wrapped at a reasonable position to avoid confusion?</p>
</blockquote>
<p dir="auto">No worries on my part, I could live with that, as long as I could see the big picture, that is, the whole expression.</p>
<blockquote>
<p dir="auto">Personally, I’d prefer that the incremental search</p>
<p dir="auto">would be upgraded by regular expressions</p>
</blockquote>
<p dir="auto">To be honest, I have little experience with regex and incremental searching. However, if it were implemented -something under discussion- it would be beneficial, at least from an educational perspective, since the visualization of results and the interaction it provides is very helpful.</p>
<blockquote>
<p dir="auto">automatically adjusts to the window width</p>
</blockquote>
<p dir="auto">Yes.</p>
<blockquote>
<p dir="auto">provides a shortcut to easily switch to the editor and back again</p>
</blockquote>
<p dir="auto">Again, yes.</p>
<blockquote>
<p dir="auto">and, pure optional but really nice to have, a regex-lexer which colors and check my regexes.</p>
</blockquote>
<p dir="auto">Also a larger font size - my aged eyes scream for it - and the ability to apply the usual editing commands, such as delimiters - to deal better with groups an classes - and duplication.</p>
<p dir="auto">In other words, to feel totally comfortable I would like to have all the facilities of the editor in the search window. Maybe that’s why I compose my regex in the editor and it will probably stay that way for a long time. And I say this because the implementation of <a class="plugin-mentions-user plugin-mentions-a" href="/user/cmeriaux" aria-label="Profile: cmeriaux">@<bdi>cmeriaux</bdi></a> repeats the limitations of the current find dialog. It is a forward step, of course, but it doesn’t resolve the issues that bothers me.</p>
<p dir="auto">Anyway, I would be happy if only half of all these suggestions were implemented. Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53869</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53869</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Thu, 14 May 2020 18:36:33 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 18:01:52 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> said in <a href="/post/52766">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/astrosofista" aria-label="Profile: astrosofista">@<bdi>astrosofista</bdi></a> The Toolbucket plugin provides multiline Find and Replace boxes, maybe that is to your liking.  It’s probably been debated before many times that Notepad++ itself should have bigger boxes for these things, but I can’t cite any references.</p>
</blockquote>
<p dir="auto">Will take a look at that plugin and check what it delivers. Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53868</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53868</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Thu, 14 May 2020 18:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 14 May 2020 17:56:57 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> said in <a href="/post/52760">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">Personally, after dragging on the right, with the mouse, the Find dialog to its maximum, I’m able to type in up to 100 characters, with the monospaced search font ;-))</p>
</blockquote>
<p dir="auto">That solves quite well one of the problems I pointed out above, but creates another one, as it covers too much space on the only screen of my laptop. It might help in some cases, or if I had another monitor, but I don’t think it’s a long-term solution.</p>
<p dir="auto">Anyway, thanks for the suggestion.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53867</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53867</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Thu, 14 May 2020 17:56:57 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Thu, 30 Apr 2020 21:24:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <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">At the <strong>end</strong> of my description of the <strong>blending</strong> process, I made a little <strong>mistake</strong>. I should have written :</p>
<pre><code class="language-z">The GENERAL formula, for Red, Green and Blue, is :   FINAL Color = CURRENT color + Alpha x ( NEW color - CURRENT Color )
                                                     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- If NEW color Alpha opacity =  1  =&gt;  FINAL color = NEW colour            =&gt;  The NEW color is totally OPAQUE
- If NEW color Alpha opacity = .5  =&gt;  FINAL color = ( NEW + CURRENT) / 2  =&gt;  PERFECT mixing of the TWO colours
- If NEW color Alpha opacity =  0  =&gt;  FINAL color = CURRENT colour        =&gt;  The NEW color is totally TRANSPARENT
</code></pre>
<p dir="auto">This is more <strong>rigorous</strong> !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53319</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53319</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 30 Apr 2020 21:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 24 Apr 2020 18:06:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><strong>Alan</strong>, when I said :</p>
<blockquote>
<ul>
<li>When less than <strong><code>6</code></strong> groups are involved in the <strong>overall</strong> regex, …</li>
</ul>
</blockquote>
<p dir="auto">I do <strong>not</strong> see this behaviour as an <strong>issue</strong>. On the contrary, I think that it’s quite <strong>useful</strong> ;-)) I mean, as most of <strong>regex</strong> S/R don’t need <strong>more</strong> than <strong><code>5</code></strong> groups, we can :</p>
<ul>
<li>
<p dir="auto"><strong>Easily</strong> identify these <strong>groups</strong>, from <strong><code>1</code></strong> to <strong><code>5</code></strong>, with your <strong>Python</strong> script</p>
</li>
<li>
<p dir="auto">Then, <strong>easily</strong> identify <strong>successive</strong> <strong><code>$0</code></strong> matches, thanks to the <strong><code>2</code></strong> <strong>colors</strong> of styles <strong><code>17</code></strong> and <strong><code>18</code></strong>, after running the <strong>context</strong> command <strong><code>Remove style &gt; Clear all Styles</code></strong></p>
</li>
</ul>
<hr />
<p dir="auto">Ah, OK ! Here is my text, being in N++ <strong><code>Post-it</code></strong> screen mode, in my <strong>previous</strong> post :</p>
<pre><code class="language-z">
Mark Style 1                   25      Color = [  0,255,255] , Alpha = 100
Mark Style 2                   24      Color = [255,128,  0] , Alpha = 100
Mark Style 3                   23      Color = [255,255,  0] , Alpha = 100
Mark Style 4                   22      Color = [128,  0,255] , Alpha = 100
Mark Style 5                   21      Color = [  0,128,  0] , Alpha = 100
Find Mark Style                31      Color = [255,  0,  0] , Alpha = 100
Incremental highlight all      28      Color = [  0,128,255] , Alpha = 100
Smart Highlighting             29      Color = [  0,255,  0] , Alpha = 100

StraightBox Style 1            17      Color = [240,128,160] , Alpha =  40
StraightBox Style 2            18      Color = [128,200,240] , Alpha =  40

(?-i)(\l+)11111|22222(\l+)|(\l+)33333|44444(\l+)|(\l+)55555|66666(\l+)|(\l+)77777|88888(\l+)

abcde1111122222abcde12345abcde3333344444abcde12345abcde5555566666abcde12345abcde7777788888abcde
ABCDE          FGHIJ     KLMNO          PQRST     UVWXY          ZABCD


- UPPERCASE strings are hightligted with "Mark" style, from 1 to 5, and the "Find Mark" style ( "Match case" option ON )
                                                                                                 ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- StraightBox Style 1 ( id = 17, [240,128,160] ), of Group 0 color, highlights the string "abcde" + five ODD digits

- StraightBox Style 2 ( id = 18, [128,200,240] ), of Group 0 color, highlights five EVEN digits + the string "abcde"


For instance, the process for coloring the FIRST string "abcde", with "Mark Style 1" [0,255,255], is : 

- First, "StraightBox Style 1", with Alpha =  40/255, is blended with "White" backgroud         =&gt; Color [252,235,240]

- Secondly, "Mark Style 1", with Alpha = 100/255, is blended with color [252,235,240]           =&gt; Color [153 243 246]

- When "Mark Style 1", with Alpha = 100/255, is blended with "White" background ( 1st "ABCDE" ) =&gt; Color [155,255,255]


The GENERAL formula, for Red, Green and Blue, is :   FINAL Color = CURRENT color + Alpha x ( NEW color - CURRENT Color )
                                                     ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- If Foreground Alpha opacity =  1  =&gt;  FINAL color = NEW colour            =&gt;  The NEW color is totally OPAQUE
- If Foreground Alpha opacity = .5  =&gt;  FINAL color = ( NEW + CURRENT) / 2  =&gt;  PERFECT mixing of the TWO colours
- If Foreground Alpha opacity =  0  =&gt;  FINAL color = CURRENT colour        =&gt;  The NEW color is totally TRANSPARENT

</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53051</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53051</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 24 Apr 2020 18:06:59 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 24 Apr 2020 17:38:30 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">How about supplying your screenshoted text as ACTUAL text here so that I can attempt to duplicate your coloring results without a lot of retyping?  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53045</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53045</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 24 Apr 2020 17:38:30 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 24 Apr 2020 17:31:11 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> said in <a href="/post/53042">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">a summary of the different styles, with their RGB values and their Alpha transparency as well as an example of the color alpha blending process,</p>
</blockquote>
<p dir="auto">You are the ColorMaster in addition to being the RegexMaster.</p>
<blockquote>
<p dir="auto">cannot use the Smart Highlighting style, either, natively and with your script.</p>
</blockquote>
<p dir="auto">True.  If you run the script and it uses that color, the next time you use Smart Highlighting it will erase any of that color the script placed in favor of its own results.  And the other way around.</p>
<blockquote>
<p dir="auto">if we use the Context menu Remove style &gt; Clear all Styles option</p>
</blockquote>
<p dir="auto">What that command actually does in relation to the script is to remove the coloring that the script does with indicators 21 through 25.</p>
<p dir="auto">For maximum flexibility, we <em>could</em> make the Notepad++ coloring features and this script’s coloring features totally independent.  This would eat up unallocated indicators, but that’s ok, isn’t it? :-)</p>
<p dir="auto">Really, all of the tools for you to go ahead and do this yourself <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> are already in the script.  Just don’t use indicators 21 through 25, and 28 through 31.  IIRC, 26 and 27 are also used by Notepad++ for something, so stay away from those.  If you started, say at 20 and worked your way downward…  Based upon Scintilla docs, I think they may be all unused until you get down to number 8.</p>
<p dir="auto">What do you think?  Is it worth me modifying the script?  Or can you do it, if it is valuable?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53044</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53044</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 24 Apr 2020 17:31:11 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Fri, 24 Apr 2020 22:03:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: ekopalypse">@<bdi>ekopalypse</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Perfect, <strong>Alan</strong> ! I chose an <strong>other</strong> color for <strong><code>Straightbox Style 2</code></strong>, which have the same <strong>Saturation</strong> and <strong>Lightness</strong> than <strong><code>Straightbox Style 1</code></strong> color, in the <strong><code>HSL</code></strong> Color Space ( <strong>S</strong> ≈ <strong><code>79</code></strong> and <strong>L</strong> ≈ <strong><code>72</code></strong> ). So, I could choose the same <strong>Alpha</strong> transparency ( <strong><code>40</code></strong> ).</p>
<p dir="auto">From their <strong>Hue</strong> ( <strong><code>343</code></strong> and <strong><code>201</code></strong> ) we deduce that they come from the <strong>pure</strong> colors <strong><code>[255,0,73]</code></strong> and <strong><code>[0,164,255]</code></strong> ( <strong><code>[343,100,50]</code></strong> and <strong><code>[201,100,50]</code></strong> values in the <strong><code>HSL</code></strong> Color Space )</p>
<p dir="auto">Here is, in a <strong>screenshot</strong>, a summary of the <strong>different</strong> styles, with their <strong><code>RGB</code></strong> values and their <strong><code>Alpha</code></strong> transparency as well as an example of the color <strong>alpha blending</strong> process, used in Notepad++, relative to the mixing of the <strong>ID</strong> style <strong><code>25</code></strong> with the <strong>ID</strong> style <strong><code>17</code></strong>, over the <strong><code>White</code></strong> background ( <strong><code>[255,255,255]</code></strong> ) of the <strong>Default</strong> style of <strong>Default</strong> theme ( <strong><code>Stylers.xml</code></strong> )</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/1587748670416-5764a6c0-1137-43be-96ce-4294066ce177-image.png" alt="5764a6c0-1137-43be-96ce-4294066ce177-image.png" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto"><strong>Two</strong> observations :</p>
<ul>
<li>
<p dir="auto">I noticed that you <strong>cannot</strong> use the <strong><code>Smart Highlighting</code></strong> style, either, <strong>natively</strong> and with your <strong>script</strong>. Thus, I preferred to place it at the <strong>end</strong> of the list, so for group <strong><code>8</code></strong></p>
</li>
<li>
<p dir="auto">When <strong>less</strong> than <strong><code>6</code></strong> groups are involved in the <strong>overall</strong> regex, <strong>after</strong> running your script, if we use the <strong>Context menu</strong> <strong><code>Remove style &gt; Clear all Styles</code></strong> option, we just see the highlighting of each <strong><code>$0</code></strong> occurrence, <strong>alternatively</strong>, in light <strong>sky-blue</strong> or <strong>carmine</strong> color</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/53042</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/53042</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 24 Apr 2020 22:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Wed, 22 Apr 2020 15:28:05 GMT]]></title><description><![CDATA[<p dir="auto">This version seems to delineate the start of a following match beginning right where the previous match ended:</p>
<pre><code># -*- coding: utf-8 -*-

# see https://community.notepad-plus-plus.org/topic/19240/filter-the-data
# see https://community.notepad-plus-plus.org/topic/14501/has-a-plugin-like-sublime-plugin-brackethighlighter

from Npp import editor, notepad, INDICATORSTYLE

class T19240c(object):

    def __init__(self):
        free_indic_list_for_group0 = [ 17, 18 ]
        self.indicator_set_options(free_indic_list_for_group0[0], INDICATORSTYLE.ROUNDBOX, (240,128,160), 40, 255, True)
        self.indicator_set_options(free_indic_list_for_group0[1], INDICATORSTYLE.ROUNDBOX, (240,128,160), 40, 255, True)
        indic_list = [ free_indic_list_for_group0[0], 25, 24, 23, 22, 21, 31, 29, 28, free_indic_list_for_group0[1] ]
        for i in indic_list: self.clear_all(i)
        regex = editor.getSelText()
        if len(regex) == 0:
            regex = r'(?-s)(notepad|editor)\.(.*?)\(.*?\)'  # a regex just for demo purposes; delete this line if desired
            regex = notepad.prompt('Enter regex (just Cancel to clear colors from previous run):', '', regex)
        if regex == None or len(regex) == 0: return
        def match_fn(m):
            for grp in range(len(m.groups()) + 1):
                print('{g} -&gt; {s} |{text}|'.format(g=grp, s=m.span(grp), text=m.group(grp)))
                if m.span(grp)[0] != m.span(grp)[1]:  # don't bother with zero-length groups; or groups not matched: (-1, -1)
                    if grp &lt; len(indic_list) - 1:  # we only have a finite number of colors but we could have more groups than that
                        self.fill(indic_list[grp], m.span(grp)[0], m.span(grp)[1])
                (indic_list[0], indic_list[-1]) = (indic_list[-1], indic_list[0])  # toggle between 2 indicators for subsequent group 0
        editor.research(regex, match_fn)

    def fill(self, indic, start_pos, end_pos):
        editor.setIndicatorCurrent(indic)
        editor.indicatorFillRange(start_pos, end_pos - start_pos)

    def clear_all(self, indic):
        editor.setIndicatorCurrent(indic)
        editor.indicatorClearRange(0, editor.getTextLength())

    def indicator_set_options(self, indicator_number, indicator_style, rgb_color_tup, alpha, outline_alpha, draw_under_text):
        for ed in (editor1, editor2):
            ed.indicSetStyle(indicator_number, indicator_style)       # e.g. INDICATORSTYLE.ROUNDBOX
            ed.indicSetFore(indicator_number, rgb_color_tup)          # (red, green, blue)
            ed.indicSetAlpha(indicator_number, alpha)                 # integer
            ed.indicSetOutlineAlpha(indicator_number, outline_alpha)  # integer
            ed.indicSetUnder(indicator_number, draw_under_text)       # boolean

if __name__ == '__main__': T19240c()
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/52974</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52974</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 22 Apr 2020 15:28:05 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Wed, 22 Apr 2020 12:00:15 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> said in <a href="/post/52954">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">May be using two different styles, let’s say 17 and 18 ( if free, of course ), and swapping, successively,  to each style, for each $0  occurrence ?</p>
</blockquote>
<p dir="auto">Exactly what I had in mind, I just have to find a bit of free time to do it. :-)</p>
<blockquote>
<p dir="auto">17 and 18 ( if free, of course )</p>
</blockquote>
<p dir="auto">I believe these are “free” on a default system, but of course, it is worth pointing out that if others happen to be using these, and still want to use this script, they should alter the numbers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52956</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 22 Apr 2020 12:00:15 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Wed, 22 Apr 2020 11:12:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a></strong>,</p>
<p dir="auto">Regarding the issue of <strong>consecutive</strong> <strong><code>$0</code></strong> ranges of text :</p>
<p dir="auto">May be using <strong>two</strong> different styles, let’s say <strong><code>17</code></strong> and <strong><code>18</code></strong> ( if <strong>free</strong>, of course ), and swapping, <strong>successively</strong>,  to each style, for <strong>each</strong> <strong><code>$0 </code></strong> occurrence ?</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52954</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 22 Apr 2020 11:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Wed, 22 Apr 2020 17:08:47 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I first joined the <strong>Notepad++</strong> forum, on <strong><code>SourceForge.net</code></strong>, on <strong><code>May 08 2013</code></strong>. Then, from <strong><code>Jun 24 2015</code></strong>, as others, I <strong>migrated</strong> to our <strong><code>NodeBB</code></strong> forum</p>
<p dir="auto">I’m used to <strong>save</strong> any of my posts in a simple <strong><code>.txt</code></strong> file , in a <strong>specific</strong> folder, giving the <strong>OP</strong>’s name to that file. So, at <strong>any</strong> moment, I keeps opened <strong>tabs</strong> of my <strong>recent</strong> posts because, sometimes, the OP does <strong>not</strong> answer <strong>immediately</strong> !</p>
<p dir="auto">Of course, I should, daily, <strong>close</strong> some of these tabs, when either, the OP <strong>succeeded</strong> to solve his problem or do <strong>not</strong> reply, after a while ! But, I have to admit that I do <strong>not</strong> apply myself to this daily task, but only <strong>from time to time</strong>, which explains the <strong>numerous</strong> tabs of my session !</p>
<p dir="auto">However, and this seems <strong>obvious</strong>, regarding your case, <strong>Alan</strong> and <strong>Peter</strong>, and some others, you are quite <strong>active</strong> on our forum. Therefore, I simply keeps <strong>your</strong> tab opened <strong>permanently</strong> ;-))</p>
<p dir="auto">Up to now, after a look into <strong><code>Users &gt; Most Reputation</code></strong>, I created <strong><code>2,361</code></strong> posts. The <strong>specific</strong> folder, where are all my <strong>saved</strong> posts, contains <strong><code>1,265</code></strong>  <strong>text</strong> files. Let’s say that a <strong>couple</strong> of them are from mine : this means that I created <strong>about</strong> <strong><code>1.87</code></strong> post per <strong>OP</strong> ;-))  ( <strong><code>2,361 / 1,260</code></strong> )</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52953</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 22 Apr 2020 17:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Wed, 22 Apr 2020 00:48:07 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> said in <a href="/post/52938">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">I’m sure Peter will be scanning your tabs in your screenshot <a href="https://community.notepad-plus-plus.org/post/15236">HERE</a> looking for interesting things. :-)</p>
</blockquote>
<p dir="auto">Well, I’m mildly surprised.  One, because I’d forgotten I’d passed my four-year anniversary in December.  Two, because I had only about 8 posts (if the search for my posts, sorted by ascending date doesn’t miss any).  He had replied once or twice to me in that timeframe, but I’m surprised I was “on his radar” yet – at least enough to save a tab for that long.</p>
<p dir="auto">While looking at the early posts, I was amused to see me say, in <a href="https://community.notepad-plus-plus.org/post/13196">this Jan 2016 post</a>,</p>
<blockquote>
<p dir="auto">I am not a Notepad++ expert</p>
</blockquote>
<p dir="auto">I don’t think I can rightly claim that anymore. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52946</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52946</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 22 Apr 2020 00:48:07 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Tue, 21 Apr 2020 22:52:48 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> said in <a href="/post/52942">Filter the data !!!</a>:</p>
<blockquote>
<p dir="auto">Ah… too late, I promised ! I just forgot the case when two $0 regexes are consecutive. then the straight-boxes are joined and no separation appears</p>
</blockquote>
<p dir="auto">It’s a critical bug, not a new feature request.  I will work on it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52943</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52943</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Apr 2020 22:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Tue, 21 Apr 2020 22:37:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>,</p>
<p dir="auto">Yes, I also remember the <a class="plugin-mentions-user plugin-mentions-a" href="/user/claudia-frank" aria-label="Profile: claudia-frank">@<bdi>claudia-frank</bdi></a>’s <strong>regex_tester</strong> script However it does <strong>not</strong> behave the <strong>same</strong> way than your script !</p>
<p dir="auto">As far as I can remember, it just used <strong>two</strong> colors for <strong>two consecutive</strong> groups + a <strong>third</strong> color for the <strong>overall</strong> match. So, if your regex contained, for instance, <strong><code>3</code></strong> groups =&gt; groups <strong><code>1</code></strong> and <strong><code>3</code></strong> were highlighted with the <strong>first</strong> color, the group <strong><code>2</code></strong> with the <strong>second</strong> color and the <strong>overall</strong> regex/occurrence with the <strong>third</strong> color !</p>
<p dir="auto">And I think that your script, with a <strong>different</strong> color for <strong>each</strong> group, is quite <strong>interesting</strong>, too !</p>
<hr />
<p dir="auto">Ah… too late, I <strong>promised</strong> ! I just forgot the case when <strong>two</strong> <strong><code>$0</code></strong> regexes are <strong>consecutive</strong>. then the <strong>straight-boxes</strong> are <strong>joined</strong> and <strong>no</strong> separation appears to show where the <strong>boundary</strong> between the <strong>two</strong> occurrences, is !</p>
<p dir="auto">I will survive this ;-))</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52942</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52942</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 21 Apr 2020 22:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Tue, 21 Apr 2020 21:28:47 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">Of course, with this new script, aren’t we somewhat reinventing a four-year-old <a href="https://community.notepad-plus-plus.org/post/15100">WHEEL</a> ??</p>
<p dir="auto">I’m sure Peter will be scanning your tabs in your screenshot <a href="https://community.notepad-plus-plus.org/post/15236">HERE</a> looking for interesting things. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52938</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52938</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Apr 2020 21:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Tue, 21 Apr 2020 21:16:58 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>
<blockquote>
<p dir="auto">I renamed Groups_Highlighter.py</p>
</blockquote>
<p dir="auto">I called my copy <code>ColorizeRegex.py</code> but to each his own!</p>
<blockquote>
<p dir="auto">what means, exactly, the syntax T19240 ?</p>
</blockquote>
<p dir="auto">It’s the topic id of this thread in the forum! :-)<br />
This is a Peter-ism. :-)</p>
<blockquote>
<p dir="auto">tried to change the draw_under_text value from True to False. But I did not see any difference ?!</p>
</blockquote>
<p dir="auto">Not sure, it was in the code I stole from the earlier referenced thread, about bracket-highlighting.<br />
I don’t think I fully follow the <a href="https://www.scintilla.org/ScintillaDoc.html#SCI_INDICSETUNDER" rel="nofollow ugc">DOCS</a> about it, either.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52937</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52937</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 21 Apr 2020 21:16:58 GMT</pubDate></item><item><title><![CDATA[Reply to Filter the data !!! on Tue, 21 Apr 2020 21:06:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <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"><strong>Alan</strong>, this version is just <strong>perfect</strong> ! Up to now, when building a <strong>complicated</strong> <strong>search</strong> regex, containing some <strong>groups</strong>, I was used to type in this regex, in the <strong>Replace</strong> dialog, to <strong>clearly</strong> see the <strong>contents</strong> of each group :</p>
<p dir="auto">REPLACE <strong><code>\r\n&gt;$1&lt;\r\n&gt;$2&lt;\r\n&gt;$3&lt;\r\n&gt;$4&lt;\r\n&gt;$5&lt;\r\n......&gt;$n&lt;\r\n</code></strong></p>
<p dir="auto">Now, with your script :</p>
<ul>
<li>
<p dir="auto"><strong>Select</strong> the regex where you want to notice the <strong>different</strong> groups, from <strong><code>1</code></strong> to <strong><code>8</code></strong>, as well as the <strong>overall</strong> match <strong><code>$0</code></strong> , for each <strong>occurrence</strong>, in current file</p>
</li>
<li>
<p dir="auto">Execute the <strong>last</strong> version of your <strong>Python</strong> script, that I renamed <strong><code>Groups_Highlighter.py</code></strong>, BTW ;-))</p>
</li>
</ul>
<p dir="auto">Much more <strong>elegant</strong>, isn’t it ?</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> : <strong>Two</strong> more points :</p>
<ul>
<li>
<p dir="auto">Out of <strong>curiosity</strong>, what means, exactly, the syntax <strong><code>T19240</code></strong> ?</p>
</li>
<li>
<p dir="auto">I tried to change the <strong>draw_under_text</strong> value from <strong><code>True</code></strong> to <strong><code>False</code></strong>. But I did <strong>not</strong> see any difference ?!</p>
</li>
</ul>
<p dir="auto">Thanks, again, <strong>Alan</strong>, for this <strong>valuable</strong> script :-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52936</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52936</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 21 Apr 2020 21:06:49 GMT</pubDate></item></channel></rss>