<?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 using columns?]]></title><description><![CDATA[<p dir="auto">Good morning. I marked in red in the image the columns that interest me in this document. This is the list of all chess players registered with FIDE, which is freely available to the public at this address (I can’t post the link because human beings love to complicate simple things!.) I would like to know if notepad++ can filter only what interests me using the columns? For example: I would like it to show me only players with standard ratings from 2100 to 2900, the column responsible for ratings is (SRtng) marked in red, this would be my first player filter, then I would like to filter only players titled, the column responsible for this is (Tit) marked in red in the document. fide provides the lists in xml and txt, I downloaded the txt, I downloaded the full version which is over 200mb. I don’t know if xml would be better for what I want to do, I don’t understand any of these things. Trying to filter by arm would be unfeasible, the list has almost a million names. Thank you for your attention. PS: I want to inform you that I don’t work with this, the list will be for my personal use, later I will create a database to study the matches of the players that interest me. I don’t understand anything about regular expressions, so any help, if it’s possible to do what I want, will have to be for someone who is completely new to the subject. <img src="https://i.vgy.me/drMmvy.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25014/filter-using-columns</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 11:24:31 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25014.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Oct 2023 12:27:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Filter using columns? on Wed, 11 Oct 2023 08:43:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/znc-gatilho" aria-label="Profile: znc-gatilho">@<bdi>znc-gatilho</bdi></a>, <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>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: mark-olson">@<bdi>mark-olson</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"><a class="plugin-mentions-user plugin-mentions-a" href="/user/znc-gatilho" aria-label="Profile: znc-gatilho">@<bdi>znc-gatilho</bdi></a>, could you confirm me that your <strong>three</strong> important zones are, by <strong>priority</strong> order :</p>
<pre><code class="language-diff">Zone 'SRtng' : Between columns 114 and 118  ( 5 chars )
Zone 'Tit'   : Between columns  77 and  79  ( 3 chars )
Zone 'WTit'  : Between columns  82 and  85  ( 4 chars )
</code></pre>
<p dir="auto">If so, let’s start with this <em>INPUT</em> text, containing the <strong>headers</strong> line <strong><code>1</code></strong> and <strong><code>3</code></strong> <strong>random</strong> records ( lines <strong><code>626897</code></strong>, <strong><code>626912</code></strong> and <strong><code>626917</code></strong> )</p>
<pre><code class="language-diff">ID Number      Name                                                 Fed Sex Tit  WTit OTit                   FOA SRtng SGm SK RRtng RGm Rk BRtng BGM BK B-day Flag
4109228        Kryukova, Irina                                      RUS F   WGN  WNM                             2232  0   20              2240  0   20 1968  wi
36016672       Kryvinski, Jenny                                     FRA F                                                                               2001  w
14102897       Kryvolapov, Kostiantyn                               UJR M   IM                                   2356  1   10              2327  0   20 1962
</code></pre>
<ul>
<li>
<p dir="auto">Open these <strong>four</strong> lines text in a <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">Move to the <strong>very beginning</strong> of your file ( <strong><code>Ctrl + Home</code></strong> )</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Un-tick</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">Type in <strong><code>(?-s)^.{76}(...)..(....).{28}(.....).+</code></strong> in the <strong>Find what :</strong> zone</p>
</li>
<li>
<p dir="auto">Type in <strong><code>\3 \1 \2 $0</code></strong> in the <strong>Replace with :</strong> zone</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; At once, you should get this <strong>temporary</strong> text :</p>
<pre><code class="language-diff">SRtng Tit WTit ID Number      Name                                                 Fed Sex Tit  WTit OTit                   FOA SRtng SGm SK RRtng RGm Rk BRtng BGM BK B-day Flag
2232  WGN WNM  4109228        Kryukova, Irina                                      RUS F   WGN  WNM                             2232  0   20              2240  0   20 1968  wi
               36016672       Kryvinski, Jenny                                     FRA F                                                                               2001  w
2356  IM       14102897       Kryvolapov, Kostiantyn                               UJR M   IM                                   2356  1   10              2327  0   20 1962
</code></pre>
<ul>
<li>
<p dir="auto">Now, select the <strong>three</strong> lines, after the <strong>headers</strong> line</p>
</li>
<li>
<p dir="auto">Run the <strong><code>Edit &gt; Line Operations &gt; Sort Lines Lexicographically Ascending</code></strong> option</p>
</li>
</ul>
<p dir="auto">=&gt; You should get your <strong>expected</strong> <em>OUTPUT</em> text :</p>
<pre><code class="language-diff">SRtng Tit WTit ID Number      Name                                                 Fed Sex Tit  WTit OTit                   FOA SRtng SGm SK RRtng RGm Rk BRtng BGM BK B-day Flag
               36016672       Kryvinski, Jenny                                     FRA F                                                                               2001  w
2232  WGN WNM  4109228        Kryukova, Irina                                      RUS F   WGN  WNM                             2232  0   20              2240  0   20 1968  wi
2356  IM       14102897       Kryvolapov, Kostiantyn                               UJR M   IM                                   2356  1   10              2327  0   20 1962
</code></pre>
<p dir="auto">As you can see your file is, <strong>automatically</strong> sorted by the <strong>three</strong> zones <strong><code>SRtng</code></strong> then by <strong><code>Tit</code></strong> then by <strong><code>WTit</code></strong> ascending</p>
<p dir="auto">BTW, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: Peterjones">@<bdi>Peterjones</bdi></a>, I suppose that the <strong><code>SRtng</code></strong> zone is the <strong><code>ELO</code></strong> rating of <strong>chess</strong> players, which is <em>ALWAYS</em> a <strong><code>4</code></strong> number string for <strong>experienced</strong> players and grand <strong>masters</strong> ! . So, <strong>no</strong> trouble for the <strong>sort</strong></p>
<hr />
<p dir="auto">Now, just <strong>repeat</strong> the steps above, with your <strong><code>players_list_FOA.txt</code></strong> file</p>
<p dir="auto">Of course, do a <strong>backup</strong> of your <strong><code>players_list_FOA.txt</code></strong>, before <strong>any</strong> action</p>
<p dir="auto"><strong>Beware</strong> that your file is really an <strong>huge</strong> file ( <strong><code>216,785,860</code></strong> bytes for <strong><code>1,321,866</code></strong> lines !! )</p>
<p dir="auto">Thus, I cannot tell you how <strong>longer</strong> the <strong>search/replacement</strong> and the <strong>save</strong> operations will take till <strong>completion</strong>, when applied to <em>THIS</em> file !</p>
<p dir="auto">However, you can give it a try !</p>
<hr />
<p dir="auto">Of course, in case that the zones do <strong>not</strong> belong to the <strong>mentioned</strong> ranges, just tell me the <strong>exact</strong> values in order to <strong>modify</strong> the <strong><code>search</code></strong> regex, accordingly :-)</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89819</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89819</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 11 Oct 2023 08:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 17:09:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/89809">Filter using columns?</a>:</p>
<blockquote>
<p dir="auto">Coises will likely be around and will hopefully chime in</p>
</blockquote>
<p dir="auto">Perhaps I’m missing something… but from the screenshots <a class="plugin-mentions-user plugin-mentions-a" href="/user/znc-gatilho" aria-label="Profile: ZNC-Gatilho">@<bdi>ZNC-Gatilho</bdi></a> included, this isn’t very hard. The text file appears to be in fixed-width columns. No need for any plugin; just make a rectangular selection around the column of interest, sort, and then delete everything except the range of interest. A numeric sort will work on the SRtng column and a lexicographic sort on the others.</p>
<p dir="auto">Obviously, make a copy of the file first.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89815</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89815</guid><dc:creator><![CDATA[Coises]]></dc:creator><pubDate>Tue, 10 Oct 2023 17:09:04 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 15:43:01 GMT]]></title><description><![CDATA[<p dir="auto">I thank Peter and the others who responded. I was going to detail a few more things, but I give up! There’s so much blocking that it’s impossible, congratulations to Akismet. The internet has become a paradise where the good pay for the bad. Since I lack computer knowledge, but I don’t lack money, I will resolve it in other ways.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89814</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89814</guid><dc:creator><![CDATA[ZNC Gatilho]]></dc:creator><pubDate>Tue, 10 Oct 2023 15:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 15:27:18 GMT]]></title><description><![CDATA[<p dir="auto">I <em>could</em> talk about ways you could use various plugins (including plugins I’ve made) to approach this problem, but IMO Notepad++ is not a good tool for this. Sometimes I’ve tried using NPP plugins to analyze or manipulate really huge tabular datasets like this, and in the end I found it easier to use the most popular and well-known tools.</p>
<p dir="auto">I personally would use Python and Jupyter Notebooks for this, and if you want any more details it has to be in chat because the details of a non-NPP solution are not pertinent to this forum.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89813</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89813</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Tue, 10 Oct 2023 15:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 13:44:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/znc-gatilho" aria-label="Profile: ZNC-Gatilho">@<bdi>ZNC-Gatilho</bdi></a> said in <a href="/post/89803">Filter using columns?</a>:</p>
<blockquote>
<p dir="auto">This is the list of all chess players registered with FIDE, which is freely available to the public at this address (I can’t post the link because human beings love to complicate simple things!.)</p>
</blockquote>
<p dir="auto">And the “human beings” who complicate things are the spammers who have inflicted non-stop AI/bot-based posts on our small community.  Preventing accounts with 0 reputation from posting links has <em>dramatically</em> reduced the amount of spam we have to deal with.  The best way to overcome that is to post one well-asked question, with textual data that’s easy to copy/paste, following the FAQ that <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> linked you to before I finished writing this post: one such <em>good</em> post is usually enough to garner the single upvote necessary.</p>
<p dir="auto">And since the link is irrelevant to the question (unless someone wanted to download a 200mb file, just to help you), it’s not overly important to the discussion.</p>
<p dir="auto">However, you could have pasted about about a screen’s worth of text from the textfile – ie, the one screenshot worth of data from your image, but as text that we could copy/paste – using the <code>&lt;/&gt;</code> button found in the create-a-post toolbar, as described in our <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">formatting posts FAQ</a><br />
<img src="https://community.notepad-plus-plus.org/assets/uploads/files/1687269718593-ce652379-4ede-4ac5-af76-ab3e2b322a42-image.png" alt="" class=" img-fluid img-markdown" /><br />
… which would have made it much easier for people to help you, without having to download a 200mb file.</p>
<blockquote>
<p dir="auto">I would like to know if notepad++ can filter only what interests me using the columns?</p>
</blockquote>
<p dir="auto">Any filter done in Notepad++ would be destructive – ie, removing data from the file.  Make sure you have a backup before you try anything suggested in response to your query.</p>
<blockquote>
<p dir="auto">For example: I would like it to show me only players with standard ratings from 2100 to 2900,</p>
</blockquote>
<p dir="auto">Yeah, well, text editors aren’t great at numerical comparisons.  That’s not what they’re designed for.  The file you have is a text <em>report</em> from some <em>database</em> application, which isn’t the best for filtering after being generated.</p>
<p dir="auto">What would be best for you (though it wouldn’t involve Notepad++) is for FIDE to give you access to an API for the database itself, rather than just letting you look at reports.  Second best (again, not using Notepad++) would be to parse the text file with some tool that would turn it back into a database on your end, and then use the tools with that database to do your extraction to create a new report with the filtered data that you want.  Third best would be to import it into a spreadsheet – I know that Excel can take a textfile input, and then prompt you to manually insert the column divisions (and probably LibreOffice’s Calc can as well); once it’s in the spreadsheet, you can use the spreadsheet “filter” tool to do your filtering quite easily.</p>
<p dir="auto">Destructive search-and-replace in Notepad++ would be fourth in line (at best… there might be other better options between spreadsheet and Notepad++ search-and-replace that I cannot think of)… but it’s the only one that we can help you with here.</p>
<blockquote>
<p dir="auto">I don’t know if xml would be better for what I want to do,</p>
</blockquote>
<p dir="auto">In pure Notepad++, I’m doubtful that it would make it any easier – definitely not if you end up having to use regex, because parsing XML with regex is no easier than parsing fixed-width text table with regex.  With the XML Tools plugin or other XML processing plugin, it might be better, if you knew the XPath syntax for searching (assuming XML Tools has an XPath searcher… I don’t honestly remember right now).</p>
<p dir="auto">I would think that a JSON file might be easier to search/replace than an XML file, but I cannot guarantee that.  And one of the JSON plugins (JSON Viewer or JSON Tools) has a builtin filter/searching, which probably would be helpful.  So if FIDE has a JSON version of the data, I might suggest that</p>
<blockquote>
<p dir="auto">PS: … I don’t understand anything about regular expressions, so any help, if it’s possible to do what I want, will have to be for someone who is completely new to the subject</p>
</blockquote>
<p dir="auto">If you are unwilling to learn, you are unlikely to find help here.  If you <em>are</em> willing to learn, someone might be able to come up with a regex that will help.  The way you’ve phrased this PS, I cannot tell if you are willing to learn or not.</p>
<p dir="auto">In Notepad++ proper, the only way to come close to your goal would be to use regular expressions.  Though since one of your filters is mathematical in nature, I will direct you to our <a href="https://community.notepad-plus-plus.org/topic/23170/faq-desk-can-i-do-a-mathematical-replacement">Math replacement FAQ</a> for an explanation of why that won’t be simple,</p>
<p dir="auto">I’m betting that <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a>’s <a href="https://github.com/Coises/ColumnsPlusPlus" rel="nofollow ugc">Columns++ plugin</a> will be able to help you – unfortunately, it’s still in beta, so you’ll have to manually install it, since you cannot use Notepad++'s Plugins Admin to install the plugin.  But that plugin has its own regex engine which might handle your columnar data better than a vanilla Notepad++ regex; and it has an added feature of mathematical notation (though I’m not sure if that only works in the replacement, or if it can also work for comparing a range of numbers in the search… <a class="plugin-mentions-user plugin-mentions-a" href="/user/coises" aria-label="Profile: Coises">@<bdi>Coises</bdi></a> will likely be around and will hopefully chime in).</p>
<p dir="auto">Since I’m not a Columns++ expert, if I were interested in doing this, I’d pull out the PythonScript plugin (if I was forced to do it in Notepad++) or my favorite scripting language (if I were doing it solely for my own use, not for this Forum) and I would write the script in Notepad++, but wouldn’t have to have the 200mb file open in Notepad++, since that’s pretty slow for N++.</p>
<p dir="auto">-—</p>
<h3>Useful References</h3>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting">Please Read Before Posting</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/22022/template-for-search-replace-questions">Template for Search/Replace Questions</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">Formatting Forum Posts</a></li>
<li><a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">Notepad++ Online User Manual: Searching/Regex</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">FAQ: Where to find other regular expressions (regex) documentation</a></li>
</ul>
<p dir="auto">-—</p>
<p dir="auto"><em><strong>Please note</strong>: This Community Forum is not a data transformation service; you should not expect to be able to always say “I have data like X and want it to look like Y” and have us do all the work for you.  If you are new to the Forum, and new to regular expressions, we will often give help on the first one or two data-transformation questions, especially if they are well-asked and you show a willingness to learn; and we will point you to the documentation where you can learn how to do the data transformations for yourself in the future.  But if you repeatedly ask us to do your work for you, you will find that the patience of usually-helpful Community members wears thin.  The best way to learn regular expressions is by experimenting with them yourself, and getting a feel for how they work; having us spoon-feed you the answers without you putting in the effort doesn’t help you in the long term and is uninteresting and annoying for us.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/89809</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89809</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 10 Oct 2023 13:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 13:14:59 GMT]]></title><description><![CDATA[<p dir="auto">What you’re asking for is a rather ambitious ask for Notepad++ and/or the people here.  What you have is a “searching” question, and thus you should read and follow the instructions <a href="https://community.notepad-plus-plus.org/topic/22022/faq-desk-template-for-search-replace-questions">HERE</a> to give people interested in helping you a better starting point.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89808</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89808</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 10 Oct 2023 13:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to Filter using columns? on Tue, 10 Oct 2023 13:12:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/znc-gatilho" aria-label="Profile: ZNC-Gatilho">@<bdi>ZNC-Gatilho</bdi></a> said in <a href="/post/89803">Filter using columns?</a>:</p>
<blockquote>
<p dir="auto">I can’t post the link because human beings love to complicate simple things!</p>
</blockquote>
<p dir="auto">No, you can’t post the link because human beings do DUMB things.  The fact that you can’t post a link is a countermeasure to these dumb things.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/89807</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/89807</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 10 Oct 2023 13:12:41 GMT</pubDate></item></channel></rss>