<?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 with multiple Strings]]></title><description><![CDATA[<p dir="auto">``</p>
<p dir="auto">I want to find all the files which has both the strings in any order.</p>
<p dir="auto">string are; abc and def or def and abc.</p>
<p dir="auto">The result should return only the files which has both the string in a file.</p>
<p dir="auto">‘’</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21347/find-files-with-multiple-strings</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 14:36:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21347.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2021 16:57:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find files with multiple Strings on Fri, 18 Jun 2021 16:27:18 GMT]]></title><description><![CDATA[<p dir="auto">All,</p>
<p dir="auto">See also my <a href="https://community.notepad-plus-plus.org/post/67179">in-development expressions</a> for generic logic “gates” in regular expressions: AND, OR, XOR, NOR, NAND</p>
<p dir="auto">Some day, they might get a blog post all of their own, rather than be buried in that thread.  But they are still in-development, so they’ll stay there for now.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67180</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67180</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 18 Jun 2021 16:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to Find files with multiple Strings on Fri, 18 Jun 2021 16:08:25 GMT]]></title><description><![CDATA[<p dir="auto">Hello, @vijay-s <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">As <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, I’ve already used this <strong>method</strong>. However, it quickly becomes <strong>tedious</strong> if you increase the <strong>number</strong> of expressions :-((</p>
<p dir="auto">I think, that this <strong>other</strong> formulation is <strong>stronger</strong> and can be <strong>easily</strong> used, even if more than <strong>two</strong> expressions to match !</p>
<ul>
<li>
<p dir="auto"><strong><code>(?-is)^(?=.*</code>Expr_1<code>)(?=.*</code>Expr_2<code>)(?=.*</code>Expr_3<code>)</code>…<code>(?=.*</code>Expr_n<code>).+</code></strong> ( <strong>sensitive</strong> to case )</p>
</li>
<li>
<p dir="auto"><strong><code>(?i-s)^(?=.*</code>Expr_1<code>)(?=.*</code>Expr_2<code>)(?=.*</code>Expr_3<code>)</code>…<code>(?=.*</code>Expr_n<code>).+</code></strong> ( <strong>insensitive</strong> to case )</p>
</li>
</ul>
<hr />
<p dir="auto">For instance, the regex <strong><code>(?i-s)^(?=.*abc)(?=.*def)(?=.*ghi)(?=.*jkl).+</code></strong> will find <strong>all</strong> files which have, at least, <strong>one</strong> line containing the <strong>four</strong> strings <strong><code>abc</code></strong>, <strong><code>def</code></strong> , <strong><code>ghi</code></strong> and <strong><code>jkl</code></strong>, in <strong>any</strong> order and <strong>whatever</strong> their case !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67178</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67178</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 18 Jun 2021 16:08:25 GMT</pubDate></item><item><title><![CDATA[Reply to Find files with multiple Strings on Thu, 17 Jun 2021 17:42:47 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/67131">Find files with multiple Strings</a>:</p>
<blockquote>
<p dir="auto">(?s)(abc).+?(def)|(?2).+?(?1)</p>
</blockquote>
<p dir="auto">``<br />
Works like a charm. Thank You…<br />
‘’</p>
]]></description><link>https://community.notepad-plus-plus.org/post/67134</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67134</guid><dc:creator><![CDATA[VijayPrabakar]]></dc:creator><pubDate>Thu, 17 Jun 2021 17:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to Find files with multiple Strings on Thu, 17 Jun 2021 17:16:20 GMT]]></title><description><![CDATA[<p dir="auto">@vijay-S</p>
<p dir="auto">Maybe try something like this:</p>
<p dir="auto"><code>(?s)(abc).+?(def)|(?2).+?(?1)</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/67131</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/67131</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 17 Jun 2021 17:16:20 GMT</pubDate></item></channel></rss>