<?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 with two strings in line]]></title><description><![CDATA[<p dir="auto">Hi<br />
I want to search for lines in a text file, that contains the following two strings “CATALOG” and “FINISHED” somewhere in the line.</p>
<p dir="auto">Example:<br />
12:42:35,700 CATALOG [LSG_BRN_Gleisabschnitt_0021] FINISHED OK<br />
–&gt; This is a valid result</p>
<p dir="auto">12:42:35,700 TEST [Testfall Gleisabschnitt BRN-GA_0021] FINISHED OK<br />
–&gt; This is not a valid result, since the string “CATALOG” is missing in the line.</p>
<p dir="auto">How can I do such a search?<br />
Thanks Peter</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23200/search-with-two-strings-in-line</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 14:48:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23200.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Jul 2022 06:29:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search with two strings in line on Tue, 17 Sep 2024 08:27:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25718">@Peter-Reichmuth</a> please, exactly which one of the solutions work *perfectly</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96642</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96642</guid><dc:creator><![CDATA[Taiwo tope]]></dc:creator><pubDate>Tue, 17 Sep 2024 08:27:10 GMT</pubDate></item><item><title><![CDATA[Reply to Search with two strings in line on Tue, 05 Jul 2022 07:37:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> and All<br />
Thank you very much for your quick help!<br />
The solution works perfect and fits my need.<br />
Peter</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78132</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78132</guid><dc:creator><![CDATA[Peter Reichmuth]]></dc:creator><pubDate>Tue, 05 Jul 2022 07:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to Search with two strings in line on Tue, 05 Jul 2022 07:44:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25718">@peter-reichmuth</a> and <strong>All</strong>,</p>
<p dir="auto">Re-reading the post that <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12335">@terry-r</a> referred to, indeed, you may use that more <strong>simple</strong> solution :</p>
<p dir="auto">SEARCH / MARK <strong><code>(?-is)^(?=.*CATALOG)(?=.*FINISHED).+\R?</code></strong></p>
<p dir="auto">=&gt; The <strong>complete</strong> lines, containing, <strong>both</strong>, the strings <strong><code>CATALOG</code></strong> and <strong><code>FINISHED</code></strong>, whatever their respective <strong>order</strong>, should be selected or marked !</p>
<p dir="auto">BR</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78130</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78130</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 05 Jul 2022 07:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Search with two strings in line on Tue, 05 Jul 2022 07:28:54 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25718">@peter-reichmuth</a> and <strong>All</strong>,</p>
<p dir="auto">Easy with <strong>regexes</strong> !</p>
<ul>
<li>
<p dir="auto">Open the <strong>Find</strong> or <strong>Mark</strong> dialog ( <strong><code>Ctrl + F / Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH / MARK <strong><code>(?-is)^.*CATALOG.*FINISHED.*\R?</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Ckick on the <strong><code>Find Next</code></strong> or <strong><code>Find All in Current Document</code></strong> or <strong><code>Mark All</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; Every <strong>complete</strong> line, containing these <strong>two</strong> strings, in this <strong>order</strong>, are <strong>selected</strong> or <strong>marked</strong> !</p>
<hr />
<p dir="auto">In case that the word <strong>FINISHED</strong> may come <strong>before</strong> the word <strong>CATALOG</strong>, prefer that <strong>second</strong> version :</p>
<ul>
<li>SEARCH / MARK <strong><code>(?-is)^.*(?:CATALOG.*FINISHED|FINISHED.*CATALOG).*\R?</code></strong></li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78128</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78128</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 05 Jul 2022 07:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to Search with two strings in line on Tue, 05 Jul 2022 06:56:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/25718">@Peter-Reichmuth</a> said in <a href="/post/78126">Search with two strings in line</a>:</p>
<blockquote>
<p dir="auto">How can I do such a search?</p>
</blockquote>
<p dir="auto">I know this was presented in the forum and after a while I found it. Try reading <a href="https://community.notepad-plus-plus.org/topic/20942/developing-generic-regex-sequences/13">this post</a>. It’s the AND option you need to look at.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78127</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Tue, 05 Jul 2022 06:56:44 GMT</pubDate></item></channel></rss>