<?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[Searching two words on different lines]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I need to search for the word new_task and the word task_pending which is supposed to be 3 lines after new_task. How can i do this? Thanks for any help.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19675/searching-two-words-on-different-lines</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 13:37:41 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19675.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jul 2020 08:29:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Searching two words on different lines on Fri, 10 Jul 2020 11:57:55 GMT]]></title><description><![CDATA[<p dir="auto">Like <em>most</em> of <a class="plugin-mentions-user plugin-mentions-a" href="/user/makwana-prahlad" aria-label="Profile: Makwana-Prahlad">@<bdi>Makwana-Prahlad</bdi></a> 's posts, this one deeply confuses me.</p>
<blockquote>
<p dir="auto">You need a new version of notepad++. Looks like old versions don’t support |.</p>
</blockquote>
<p dir="auto">Misinformation, unless by “old” you mean pre-6.0.<br />
But why would you assume OP is using a really old version anyway – the OP didn’t say what version, but…</p>
<blockquote>
<p dir="auto">egrep</p>
</blockquote>
<p dir="auto">What does <em>that</em> have to do with anything??</p>
<blockquote>
<p dir="auto">egrep “CAT|TOWN” will search for lines containing CATOWN.</p>
</blockquote>
<p dir="auto">What does <em>that</em> have to do what the OP is needing to do?</p>
<p dir="auto">I could pick apart the rest of the posting, but it is getting tiring.<br />
Just please, don’t spread misinformation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55749</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55749</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 10 Jul 2020 11:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to Searching two words on different lines on Fri, 10 Jul 2020 08:39:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<a class="plugin-mentions-user plugin-mentions-a" href="/user/kyle-warren" aria-label="Profile: Kyle-Warren">@<bdi>Kyle-Warren</bdi></a></p>
<p dir="auto">Please follow this information,To Searching two words on different lines</p>
<p dir="auto">You need a new version of notepad++. Looks like old versions don’t support |.</p>
<p dir="auto"><strong>Note:</strong> egrep <strong>“CAT|TOWN”</strong> will search for lines containing <strong>CATOWN</strong>. (CAT)|(TOWN) is the proper or extension (matching 1,3,4). Strangely you wrote and which is btw (CAT.*TOWN)|(TOWN.*CAT)</p>
<p dir="auto">I hope this information will be useful for you.<br />
Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55746</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55746</guid><dc:creator><![CDATA[Makwana Prahlad]]></dc:creator><pubDate>Fri, 10 Jul 2020 08:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to Searching two words on different lines on Thu, 09 Jul 2020 09:25:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/kyle-warren" aria-label="Profile: kyle-warren">@<bdi>kyle-warren</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Not difficult with <strong>regular</strong> expressions !</p>
<p dir="auto"><strong>Two</strong> possibilities :</p>
<ul>
<li>
<p dir="auto">The <strong>first</strong> regex <strong><code>(?-si)new_task(.+\R){3}.*task_pending</code></strong> searches for the range of <strong>any</strong> character between the <strong>two</strong> strings <strong><code>new_task</code></strong> and <strong><code>task_pending</code></strong>, with that <strong>exact</strong> case</p>
</li>
<li>
<p dir="auto">The <strong>second</strong> regex <strong><code>(?-si)^.*new_task(.+\R){3}.*task_pending.*\R?</code></strong> searches for the <strong>complete block</strong> of <strong><code>4</code></strong> lines containing, both, the strings <strong><code>new_task</code></strong> and <strong><code>task_pending</code></strong>, with this <strong>exact</strong> case</p>
</li>
</ul>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55721</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55721</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 09 Jul 2020 09:25:01 GMT</pubDate></item></channel></rss>