<?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 a line and copy the next 10 lines]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/11567/find-a-line-and-copy-the-next-10-lines">Find a line and copy the next 10 lines</a></p>
<p dir="auto">Can some one explain how to use the line filter for this above task? I need to selecct 10 lines below one common specific lines. I installed the line filter but some one can help me with the process</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22221/find-a-line-and-copy-the-next-10-lines</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 13:40:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22221.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Dec 2021 19:47:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 12:23:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a></p>
<p dir="auto">Wow, Neil, thanks for dealing with THAT, and sparing me. :-)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: Muthuraj-Madasamy">@<bdi>Muthuraj-Madasamy</bdi></a></p>
<p dir="auto">Additional good reference on regular expressions (the technique shown above to solve the problem) is found starting <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation/1">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71863</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71863</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 04 Dec 2021 12:23:50 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 08:23:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> said in <a href="/post/71857">Find a line and copy the next 10 lines</a>:</p>
<blockquote>
<p dir="auto">any tutorial info for using notepad++</p>
</blockquote>
<p dir="auto">I’m not sure what you are asking for or needing to know, but it is good if you become familiar with these:</p>
<p dir="auto"><a href="https://npp-user-manual.org/docs/preferences" rel="nofollow ugc">https://npp-user-manual.org/docs/preferences</a><br />
<a href="https://npp-user-manual.org/docs/searching/" rel="nofollow ugc">https://npp-user-manual.org/docs/searching/</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71858</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71858</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 08:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 08:19:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a></p>
<p dir="auto">Yes Neil…Thanks a lot…</p>
<p dir="auto">Can you help me any tutorial info for using notepad++? I am new user and not much familiar with these operations.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71857</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71857</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 08:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 07:48:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> said in <a href="/post/71851">Find a line and copy the next 10 lines</a>:</p>
<blockquote>
<p dir="auto">Can you see the image which i pasted there, in that one i have entered the correct format?</p>
</blockquote>
<p dir="auto">Yes, but I noticed it too late. The text in the image is small and I didn’t think to cross-check.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> said in <a href="/post/71852">Find a line and copy the next 10 lines</a>:</p>
<blockquote>
<p dir="auto">fix this</p>
</blockquote>
<p dir="auto">I’m happy to hear it’s working.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71855</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71855</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 07:48:33 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 07:24:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a></p>
<p dir="auto">Thanks a lot. I got your point. the check point is creating trouble. I am able to make it now</p>
<p dir="auto"><img src="/assets/uploads/files/1638602618918-2a750a5c-b9c1-48da-b8cb-6189902292a2-image.png" alt="2a750a5c-b9c1-48da-b8cb-6189902292a2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">once again thanks a lot for helping to fix this</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71852</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71852</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 07:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 07:20:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> said in <a href="/post/71850">Find a line and copy the next 10 lines</a>:<br />
Hi Neil<br />
I understood that while responding the search word came default and i didn’t notice that you have taken that as a reference and providing the comments.</p>
<p dir="auto">Can you see the image which i pasted there, in that one i have entered the correct format?</p>
<p dir="auto">Thanks for spending time with me and i am a new user for notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71851</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71851</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 07:20:01 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 06:59:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> said in <a href="/post/71845">Find a line and copy the next 10 lines</a>:</p>
<blockquote>
<p dir="auto"><strong>^.pem.\R(.*\R){10}</strong><br />
I used above search but still not selecting all the lines. As you see in the below image.</p>
</blockquote>
<p dir="auto">Hi. You didn’t notice that the expression that appears above is different from what you typed or pasted in, right? It’s missing two asterisks of the original. This is because when you paste text with asterisks in this discussion board, software converts the text to italics so people can make <em>PRETTY TEXT</em>.  (The preview pane let’s you see this, but you have to look carefully.)</p>
<p dir="auto">The way to prevent this is to use one of the two <code>triple backquote techniques</code>as described in <a href="https://community.notepad-plus-plus.org/topic/21965/please-read-before-posting/1">Please Read Before Posting</a>.</p>
<p dir="auto">Well, I didn’t notice either, and I was wrong to suggest you were using the wrong expression.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71850</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71850</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 06:59:32 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 06:25:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a></p>
<p dir="auto">I don’t want to have to shout but you really need to <strong>remove the check from <code>. matches newline</code> like in the image Alan provided</strong></p>
<p dir="auto">It’s in the <em><strong>Search Mode</strong></em> box. See it?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71849</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71849</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 06:25:04 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 06:17:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a></p>
<p dir="auto">This is the output after</p>
<p dir="auto"><img src="/assets/uploads/files/1638598537875-0fcc3186-c9cd-4c6d-a07c-fdd7e8b14fc5-image.png" alt="0fcc3186-c9cd-4c6d-a07c-fdd7e8b14fc5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71848</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71848</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 06:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 04:53:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> Hi.<br />
First, remove the check from <code>. matches newline</code> like in the image Alan provided.</p>
<p dir="auto">Second, I see you used <code>^.pem.\R(.*\R){10}</code>. Again, this wrong. What you need is <code>^.*pem.*\R(.*\R){10}</code>. The dot <code>.</code> and asterisk <code>*</code> characters have special meaning to the software that performs regular expression processing; you cannot add/remove them casually.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71846</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71846</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 04:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 04:41:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a><br />
Thank you and belwo is the output. This is a huge log file.</p>
<p dir="auto">^.<em>pem.</em>\R(.*\R){10}</p>
<p dir="auto">I used above search but still not selecting all the lines. As you see in the below image.</p>
<p dir="auto"><img src="/assets/uploads/files/1638592824473-7089948e-05e7-4028-82d6-d97211cc1e77-image.png" alt="7089948e-05e7-4028-82d6-d97211cc1e77-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71845</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71845</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 04:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 04:13:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a> Your first example has missing asterisks <code>*</code> and your second has an or bar <code>|</code> that is not part of Alan’s solution.</p>
<p dir="auto">Regex machinery cares very little for your intentions, and demands rigid compliance to correct syntax.</p>
<p dir="auto">I suggest you copy his text, paste, and then carefully replace just the 5 characters <code>12345</code> with text you want.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71844</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71844</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Sat, 04 Dec 2021 04:13:13 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Sat, 04 Dec 2021 03:55:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Alan<br />
Thank you very much for spending time on my request.</p>
<p dir="auto">I tried for my file, it is not working. It is selecting all the lines.</p>
<p dir="auto">I want to search with below lines and copy the 10 lines present below to the lines. Similar blocks are there in multiple location in my log fie.</p>
<p dir="auto">common specific line is “show chassis environment pem” and i gave the regex as “^.<em>show chassis environment pem.</em>\R(.*\R){10}”</p>
<p dir="auto">It is seclecting all my lines in the log. Few words are common in other lines “show, chassis, environment”.</p>
<p dir="auto">I tried with only PEM as that is the unique as “^.* pem|.<em>\R(.</em>\R){10}” but not achieving the required one.</p>
<p dir="auto">Let me know if i miss anything here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71842</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71842</guid><dc:creator><![CDATA[Muthuraj Madasamy]]></dc:creator><pubDate>Sat, 04 Dec 2021 03:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Find a line and copy the next 10 lines on Fri, 03 Dec 2021 19:59:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/muthuraj-madasamy" aria-label="Profile: muthuraj-madasamy">@<bdi>muthuraj-madasamy</bdi></a></p>
<p dir="auto">I wouldn’t use “line filter” for this.<br />
There’s a very reasonable way to do specified by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> in the thread you linked to:</p>
<p dir="auto">a regex marking operation for <code>^.*12345.*\R(.*\R){10}</code></p>
<p dir="auto">presuming your spec for “one common specific line” was “a line containing 12345”</p>
<p dir="auto">You’d do this <em>Mark All</em> operation:</p>
<p dir="auto"><img src="/assets/uploads/files/1638561455415-f17c12fb-50b0-4fac-b84c-e93befe54c3d-image.png" alt="f17c12fb-50b0-4fac-b84c-e93befe54c3d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Which would highlight the match in red, for example:</p>
<p dir="auto"><img src="/assets/uploads/files/1638561498542-295369a2-491e-4aac-b4d4-2c0226590cd7-image.png" alt="295369a2-491e-4aac-b4d4-2c0226590cd7-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And then if you <em>Copy Marked Text</em> and paste it somewhere else, you obtain:</p>
<pre><code class="language-z">           12345
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.

    &lt;one line to give the program's name and a brief idea of what it does.&gt;
    Copyright (C) &lt;year&gt;  &lt;name of author&gt;

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/71837</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71837</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 03 Dec 2021 19:59:12 GMT</pubDate></item></channel></rss>