<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Search for large numbers]]></title><description><![CDATA[<p dir="auto">I have a relatively large dataset  (~1.5 million lines) that contains ~45 000 scientific abstracts. What I would like to do is to locate all the abstracts that have 1000 or more patients. So I need some kind of search strategy that can help me do this</p>
<p dir="auto">Search for: “digit” “digit” “digit” “space” “patients” (i.e. 1938 patients)</p>
<p dir="auto">AND</p>
<p dir="auto">Search for: “digit” “comma” “digit” “digit” “digit” “space” “patients” i.e. (1,938 patients)</p>
<p dir="auto">Is this feasible??</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/10207/search-for-large-numbers</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 20:33:16 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/10207.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Sep 2015 10:26:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search for large numbers on Sat, 12 Sep 2015 15:28:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <strong>Eirik</strong>,</p>
<p dir="auto">If I suppose that :</p>
<ul>
<li>
<p dir="auto">Any <strong>subset</strong> of <strong>three</strong> digits, <em>except for the <strong>first</strong> one</em>, of the numbers, in your dataset, can be <strong>preceded</strong> or <strong>NOT</strong>, by a <strong>comma</strong>,</p>
</li>
<li>
<p dir="auto">The <strong>space</strong> delimiter can be present or <strong>NOT</strong>, before the word <strong>patients</strong>, which can either be written in a <strong>singular</strong> mode,</p>
</li>
</ul>
<p dir="auto">an other SEARCH <strong>regex</strong> expression could be :<strong><code> +\d+(,?\d{3})+ *patients?</code></strong>, with a <strong>space</strong> BEFORE the <strong>first +</strong> sign of that regex.</p>
<hr />
<p dir="auto">With that regex, it would <strong>match</strong> all these following items :</p>
<pre><code>abc 1234         patients xyz
abc 1,234        patients xyz
abc              patients xyz
abc 12345        patients xyz
abc 12,345       patients xyz
abc              patients xyz
abc 123456       patients xyz
abc 123,456      patients xyz
abc              patients xyz
abc 1234567      patients xyz
abc 1,234567     patients xyz
abc 1234,567     patient  xyz
abc 1,234,567    patients xyz
abc              patients xyz
abc 12345678     patients xyz
abc 12,345678    patients xyz
abc 12345,678    patients xyz
abc 12,345,678   patients xyz
abc              patients xyz
abc 123456789    patients xyz
abc 123,456789   patient  xyz
abc 123456,789   patient  xyz
abc 123,456,789  patients xyz
abc              patients xyz
abc 1234567890   patients xyz
abc 1,234567890  patients xyz
abc 1,234,567890 patient  xyz
abc 1,234567,890 patients xyz
abc 1,234,567,890patient  xyz
abc 1234,567890  patients xyz
abc 1234,567,890 patients xyz
abc 1234567,890  patients xyz
</code></pre>
<p dir="auto">But, it would <strong>ignore</strong> all <strong>natural</strong> numbers, under <strong>1000</strong> and some <strong>odd</strong> syntaxes as <strong>1,2,3</strong> or <strong>,1a,23</strong>, like below :</p>
<pre><code>abc 0            patient  xyz
abc 0,           patient  xyz
abc 1            patient  xyz
abc 1,           patient  xyz
abc 12           patients xyz
abc 12,          patients xyz
abc 123          patients xyz
abc 999          patients xyz
abc 123,         patients xyz
abc ,123         patients xyz
abc 1,2,3        patients xyz
abc 12,34        patients xyz
abc 12,3,4       patients xyz
abc 123,4        patients xyz
abc ,            patients xyz
abc ,,,,,,       patients xyz
abc ,,4,,4,,     patients xyz
abc              patients xyz
abc ,1234        patients xyz
abc ,1,234       patients xyz
abc 123a456b789  patients xyz
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11075</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11075</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 12 Sep 2015 15:28:12 GMT</pubDate></item><item><title><![CDATA[Reply to Search for large numbers on Fri, 11 Sep 2015 12:58:29 GMT]]></title><description><![CDATA[<p dir="auto">Oops. Sorry.  <strong>The “\w” in my previous post should be “\s”</strong>.</p>
<p dir="auto">The stupid web interface wouldn’t let me post this for 20 minutes because I have no reputation. :-(  Also, I never saw an edit button or link after I posted, so I’m assuming that’s because I’m a nobody too…  Maybe some day I’ll be all powerful here. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11038</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11038</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Fri, 11 Sep 2015 12:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Search for large numbers on Fri, 11 Sep 2015 12:38:09 GMT]]></title><description><![CDATA[<p dir="auto">You might try this search expression (be sure to check the “Regular expression” check box in the search dialog):</p>
<pre><code>[0-9,]+\w+patients
</code></pre>
<p dir="auto">This will find any string of one or more digits and commas followed by white space (1 or more spaces and/or tabs) and then the text “patients”. So, it should find strings like:</p>
<pre><code>4 patients
1234    patients
9,345,111 patients
0         patients
</code></pre>
<p dir="auto">It would also find some nonsense strings like these, that I assume would not appear in the file:</p>
<pre><code>,    patients
,,,, patients
</code></pre>
<p dir="auto">If the strings you are looking for are at the beginning of a line (possibly preceded by white space, you could use:</p>
<pre><code>^\w*[0-9,]+ +patients
</code></pre>
<p dir="auto">The “^” character means the string must start at the beginning of a line. The “\w*” means there can be zero or more white space characters.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11037</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11037</guid><dc:creator><![CDATA[Jim Dailey]]></dc:creator><pubDate>Fri, 11 Sep 2015 12:38:09 GMT</pubDate></item><item><title><![CDATA[Reply to Search for large numbers on Fri, 11 Sep 2015 11:08:35 GMT]]></title><description><![CDATA[<p dir="auto">You left out one ‘“digit”’ in your top search-for explanation.</p>
<p dir="auto">In Find dialog:</p>
<p dir="auto">Find What:</p>
<pre><code>\d,?\d{3}\spatients
</code></pre>
<p dir="auto">Search Mode: Regular Expression</p>
]]></description><link>https://community.notepad-plus-plus.org/post/11029</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/11029</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 11 Sep 2015 11:08:35 GMT</pubDate></item></channel></rss>