<?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[Find files that don't contain]]></title><description><![CDATA[<p dir="auto">Hi Guys.</p>
<p dir="auto">What expression would I need to find all files in a folder that don’t contain say</p>
<p dir="auto">Add-Content -path *.cfg -Value ‘input_overlay_enable = “true”’</p>
<p dir="auto">I have about 1000 files and I know some of them won’t have that line present. I just don’t know which ones.</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19134/find-files-that-don-t-contain</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 09:07:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19134.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Mar 2020 17:32:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find files that don't contain on Sun, 06 Oct 2024 10:50:59 GMT]]></title><description><![CDATA[<p dir="auto">Here’s a real feature request for making “Find files that don’t contain” a part of standard Notepad++:  <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15680" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15680</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/96970</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96970</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Oct 2024 10:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to Find files that don't contain on Tue, 31 Mar 2020 18:33: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></p>
<p dir="auto">Thank you so much for a helpful and constructive reply. I am learning and this really helped a lot. Thanks for a clear explanation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/51955</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/51955</guid><dc:creator><![CDATA[Craig McFarlane]]></dc:creator><pubDate>Tue, 31 Mar 2020 18:33:57 GMT</pubDate></item><item><title><![CDATA[Reply to Find files that don't contain on Tue, 31 Mar 2020 14:21:02 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/craig-mcfarlane" aria-label="Profile: craig-mcfarlane">@<bdi>craig-mcfarlane</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">Certainly, the <strong>regex</strong>, below, does work <strong>properly</strong> in the majority of cases :</p>
<p dir="auto">SEARCH <strong><code>(?s-i)\A(?:(?!\Q</code>Your Expression<code>\E).)+\z</code></strong></p>
<p dir="auto">However, when files scanned have a <strong>size</strong> greater than <strong><code>8 Mb</code></strong>, about, this regex may fail and <strong>wrongly</strong> matches a file which does contain your <strong>specific</strong> expression ! I did some <strong>tests</strong> with such a file, containing the string <strong><code>Your expression</code></strong> <strong>once only</strong> !</p>
<hr />
<p dir="auto">If so, here is a <strong>quicker</strong> and <strong>safer</strong> regex which is able to handle <strong>huge</strong> files. I personally tested a file of <strong><code>56 Mb</code></strong> and <strong><code>2,000,000</code></strong> lines, <strong>without</strong> any trouble ! This file contained <strong>only</strong> a <strong>single</strong> line with the string <strong><code>Your expression</code></strong> ;-))</p>
<p dir="auto">SEARCH <strong><code>(?s-i)\A(?!.*\Q</code>Your Expression<code>\E).+</code></strong></p>
<p dir="auto">=&gt; You’ll get your <strong>expected</strong> list of files which do <strong>not</strong> contain the string <strong><code>Your expression</code></strong>, with this <strong>exact</strong> case ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">In order to get the list of the <strong>files</strong>, with their <strong>full</strong> path, displayed in the <strong><code>Find result</code></strong> panel, pasted into a <strong>new</strong> tab, follow these <strong>steps</strong> :</p>
<ul>
<li>
<p dir="auto"><strong>Right</strong>-click on <strong>any</strong> zone of the <strong><code>Find result</code></strong> panel</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Select all</code></strong> option</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + C</code></strong> shortcut ( do <strong>not</strong> use the <strong><code>Copy</code></strong> option ! )</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + N</code></strong> shortcut to open a <strong>new</strong> N++ tab</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>Ctrl + V</code></strong> shortcut to <strong>paste</strong> the results, into this <strong>new</strong> tab</p>
</li>
<li>
<p dir="auto">Finally, perform the following <strong>regex</strong> S/R, below :</p>
<ul>
<li>
<p dir="auto">SEARCH <strong><code>^(?!\x20\x20).*\R|\Q (1 hit)\E$</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
</ul>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/51935</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/51935</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 31 Mar 2020 14:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Find files that don't contain on Mon, 30 Mar 2020 20:44:15 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></p>
<p dir="auto">Thanks mate. No its not to much reading at all. Simply pointing me in the right direction would have been a sufficient answer.</p>
<p dir="auto">Thank you for the time it took you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/51920</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/51920</guid><dc:creator><![CDATA[Craig McFarlane]]></dc:creator><pubDate>Mon, 30 Mar 2020 20:44:15 GMT</pubDate></item><item><title><![CDATA[Reply to Find files that don't contain on Mon, 30 Mar 2020 19:10:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craig-mcfarlane" aria-label="Profile: Craig-McFarlane">@<bdi>Craig-McFarlane</bdi></a></p>
<p dir="auto">However, if it is too much reading for you–I just read it, there’s A LOT there–then this <em>might</em> work for your situation:</p>
<p dir="auto"><em><strong>Find what</strong></em> box: <code>(?s)\A(?:(?!\QAdd-Content -path *.cfg -Value 'input_overlay_enable = "true"'\E).)+\z</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/51916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/51916</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 30 Mar 2020 19:10:54 GMT</pubDate></item><item><title><![CDATA[Reply to Find files that don't contain on Mon, 30 Mar 2020 18:03:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/craig-mcfarlane" aria-label="Profile: Craig-McFarlane">@<bdi>Craig-McFarlane</bdi></a></p>
<p dir="auto">Your question is kind of similar to this old one:  <a href="https://community.notepad-plus-plus.org/topic/16141/find-content-in-files-and-rename-delete-files-not-containing-content">https://community.notepad-plus-plus.org/topic/16141/find-content-in-files-and-rename-delete-files-not-containing-content</a></p>
<p dir="auto">As well as this one:  <a href="https://community.notepad-plus-plus.org/topic/14870/regex-find-all-files-that-do-not-contain-some-words">https://community.notepad-plus-plus.org/topic/14870/regex-find-all-files-that-do-not-contain-some-words</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/51914</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/51914</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 30 Mar 2020 18:03:25 GMT</pubDate></item></channel></rss>