<?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 in Files filter, include AND exclude combined]]></title><description><![CDATA[<p dir="auto">When using Find in Files, I would like to have a filter that will tell it to scan PHP, JS, CSS, CGI, and LIB, but ignore anything in the “backup” directory.</p>
<p dir="auto">I thought this would work, but it doesn’t:</p>
<pre><code>*.php *.js *.css *.cgi *.lib !*backup
</code></pre>
<p dir="auto">I’m guessing that this assumes that these are all “OR” delimited. So then I tried these:</p>
<pre><code>!*backup &amp;&amp; (*.php *.js *.css *.cgi *.lib)
!*backup* &amp;&amp; (*.php *.js *.css *.cgi *.lib)
</code></pre>
<p dir="auto">but it still returned files that were in the backup directory.</p>
<p dir="auto">Any other suggestions?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23795/find-in-files-filter-include-and-exclude-combined</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 14:21:49 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23795.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Nov 2022 19:08:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find in Files filter, include AND exclude combined on Thu, 24 Nov 2022 19:14:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jason-carlton" aria-label="Profile: Jason-Carlton">@<bdi>Jason-Carlton</bdi></a> said in <a href="/post/81920">Find in Files filter, include AND exclude combined</a>:</p>
<blockquote>
<p dir="auto">I thought this would work, but it doesn’t:</p>
</blockquote>
<p dir="auto">Did you read the online manual about the specific requirements of this tab? Try looking at <a href="https://npp-user-manual.org/docs/searching/#find-in-files-tab" rel="nofollow ugc">this</a> section of the manual. Ver 8.2 and better will allow what you need, but you must define it correctly.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/81921</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/81921</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Thu, 24 Nov 2022 19:14:37 GMT</pubDate></item></channel></rss>