<?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 result with e.g. 5 lines before and 5 lines after result]]></title><description><![CDATA[<p dir="auto">hallo,</p>
<p dir="auto">is there any function in Notepad ++ where you are able to search in files for an expression.<br />
As result should be given e.g. 5 lines before result and 5 lines after result.<br />
Does anyone has an idea if possible.</p>
<p dir="auto">thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16980/search-result-with-e-g-5-lines-before-and-5-lines-after-result</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 00:22:50 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16980.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jan 2019 21:45:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Search result with e.g. 5 lines before and 5 lines after result on Mon, 21 Jan 2019 01:55:34 GMT]]></title><description><![CDATA[<p dir="auto">My interpretation is that the OP really wants to see 5 lines of context before/after hits for his search.  The LineFilter plugin can do it.  Or the following regex search can, if one is searching for the word <code>text</code> (as just an example):</p>
<p dir="auto">Find what: <code>^(?:.*\R){5}.*text.*\R(?:.*\R){5}</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/38729</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38729</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 21 Jan 2019 01:55:34 GMT</pubDate></item><item><title><![CDATA[Reply to Search result with e.g. 5 lines before and 5 lines after result on Sun, 20 Jan 2019 22:13:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/korea-visit" aria-label="Profile: Korea-Visit">@<bdi>Korea-Visit</bdi></a></p>
<p dir="auto">You will need to expand on your description considerably if you expect a solution.<br />
Currently the statement “search in files for an expression” could mean either supply a folder and search all files for something, or maybe the file you want to search is currently loaded in Notepad++ (NPP).<br />
Then your other statement "As result should be given e.g. " also begs the question, what do you want to do with the result. Do you only want to highlight it, or do you want to edit it, or maybe remove all other data from the open file and just leave the 11 lines (5 before + line with expression + 5 lines after) for each instance found.</p>
<p dir="auto">Terry</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38724</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38724</guid><dc:creator><![CDATA[Terry R]]></dc:creator><pubDate>Sun, 20 Jan 2019 22:13:17 GMT</pubDate></item></channel></rss>