<?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 Begin&#x2F;End setting]]></title><description><![CDATA[<p dir="auto">Ok, so I would like to know, if notepad++ can use a find start, find end</p>
<p dir="auto">So I have a txt files with 50,000 rows, and on each row I have 4 letter codes</p>
<p dir="auto">I would like to know, and how if possible to select between 2 sets of codes</p>
<p dir="auto">Keep in mind, holding shift, and scrolling down is not an option, it’s way to long</p>
<p dir="auto">So in my text files I have<br />
Cod1<br />
Xid2<br />
Xid3<br />
Xid4<br />
Xid5<br />
Cod2</p>
<p dir="auto">I’m looking for anything that can find both Cod1 and Cod2, highlight everything between so that I can copy or cut that out to another notepad</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20600/find-begin-end-setting</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 03:22:05 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20600.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Jan 2021 06:44:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Sat, 16 Jan 2021 21:16:16 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> thank you</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61945</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61945</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Sat, 16 Jan 2021 21:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Sat, 16 Jan 2021 13:11:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@javier-rivas</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@ekopalypse</a> and <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@javier-rivas</a>, taking in account your <strong>additional</strong> information, my regex becomes :</p>
<p dir="auto">MARK <strong><code>(?s-i)^\x20\x20"caup":.+?(?=^\x20\x20"cues":)</code></strong></p>
<p dir="auto">This regex :</p>
<ul>
<li>
<p dir="auto">Matches the <strong>literal</strong> string <strong><code>"caup":</code></strong>, <strong>preceded</strong> with two <strong>space</strong> characters ( because of <strong><code>\x20\x20</code></strong> ) beginning a line, ( because of <strong><code>^</code></strong> ), with this <strong>exact</strong> case ( because of the <strong><code>(?-i)</code></strong> <strong>modifier</strong> )</p>
</li>
<li>
<p dir="auto">Followed with the <strong>smallest</strong> ( because of <strong><code>?</code></strong> ) <strong>non</strong>-null ( because of <strong><code>+</code></strong> ) range of <strong>any</strong> character ( because of <strong><code>(?s)</code></strong> <strong>modifier</strong> )…</p>
</li>
<li>
<p dir="auto">But <em>ONLY IF</em> followed with the <strong>literal</strong> string <strong><code>"cues":</code></strong>, <strong>preceded</strong> with two <strong>space</strong> characters ( because of <strong><code>\x20\x20</code></strong> ) beginning a line, ( because of <strong><code>^</code></strong> ), with this <strong>exact</strong> case ( because of the <strong><code>(?-i)</code></strong> <strong>modifier</strong> ).</p>
</li>
</ul>
<p dir="auto">Note that the <strong><code>(?=......)</code></strong> syntax is a <strong>look-ahead</strong> structure, in other words a <strong>condition</strong>, which must be <strong>true</strong> in order the <strong>present</strong> match, so far, to be <strong>valid</strong> but which is <strong>never</strong> part of the <strong>overall</strong> match</p>
<hr />
<p dir="auto">Thus, in the text below :</p>
<pre><code class="language-z">  "caup":
-{
-adad
-adasd
-asdad
-}
],
  "cues":
</code></pre>
<p dir="auto">It would mark and bookmark <strong>all</strong> the lines but the <strong>last</strong> one !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61922</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61922</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 16 Jan 2021 13:11:42 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Sat, 16 Jan 2021 12:28:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a> said in <a href="/post/61917">Find Begin/End setting</a>:</p>
<blockquote>
<p dir="auto">there should be a cut mark and and replace mark that would be awesome</p>
</blockquote>
<p dir="auto">That would be nice I suppose, but in practice it is not so bad without it.</p>
<p dir="auto">I’d like to see <em>two</em> separate commands:  <em>Begin Select</em> and <em>End Select</em>.  That way it would be easier to abort a begin-point by setting a new one (if you realize you’ve made a mistake in setting the origin), and it could also be a reminder in the menu that you haven’t yet set the begin point (<em>Begin Select</em> would be enabled and <em>End Select</em> would be disabled).</p>
<p dir="auto">BUT…it is definitely OK the way it currently works.  And a downside of two commands is that using it from a shortcut would require two shortcuts to be allocated.</p>
<p dir="auto">Speaking of shortcuts, one thing that <em>is</em> lacking is tying this handy functionality to a shortcut by default.  I tie mine to Ctrl+b.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61920</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61920</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 16 Jan 2021 12:28:59 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Sat, 16 Jan 2021 06:07:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> there should be a cut mark and and replace mark that would be awesome</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61917</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61917</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Sat, 16 Jan 2021 06:07:12 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 22:32:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> Yes, I call it motivation…lmao<br />
Yea, I wanted to add a comment and I clicked on reply to myself…hahahaha</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61879</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61879</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 22:32:17 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 22:29:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> OK, so I have improved the code search to my use so here is my original search<br />
(?=  "caup).+(?=  "cues) &lt; — notices the spacing and I removed the &lt;</p>
<p dir="auto">first to find is “caup”, and it starts with 2 spaces in front of it<br />
last to find is “cues”, and it needs to stop 2 spaces before the “cues”</p>
<p dir="auto">—“caup”:  &lt; ---- it highlights the spaces and the code<br />
-{<br />
-adad<br />
-adasd<br />
-asdad<br />
-}<br />
],  &lt; ------- it stops right here<br />
—“cues”: &lt; ----- it ignores the spaces and the code</p>
<p dir="auto">so now it’s perfect to my standards</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61877</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61877</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 22:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:22:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a></p>
<p dir="auto">Learn what it does, for yourself for the future:</p>
<ul>
<li>match <code>Cod1</code> exactly</li>
<li><code>.+?</code> match any single character (the dot means “any single”), one or more times (the <code>+</code> means 1+ times), but as few times as needed (the <code>?</code> specifies that)</li>
<li>match <code>Cod2</code> exactly</li>
</ul>
<p dir="auto">All 3 of these things must exist for you to have an overall match.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61861</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61861</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:19:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> Perfect</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61860</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61860</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:17:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a></p>
<blockquote>
<p dir="auto">could it also highly the Cod 1 and Cod2, I know I said between, but I thought it would find the Cod1 and Cod2 and include it</p>
</blockquote>
<p dir="auto">find: <code>Cod1.+?Cod2</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/61859</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61859</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:17:34 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:15:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> OK your code works, question, could it also highly the Cod 1 and Cod2, I know I said between, but I thought it would find the Cod1 and Cod2 and include it as well</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61857</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61857</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:12:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a> said in <a href="/post/61855">Find Begin/End setting</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a> OK the first regex worked, now to test on my real txt file</p>
</blockquote>
<p dir="auto">Are you talking to yourself? :-)<br />
Convincing yourself that it really does work?? :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61856</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61856</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:12:56 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:12:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a> OK the first regex worked, now to test on my real txt file</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61855</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61855</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:12:16 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 18:07:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> great, but the mark didn’t work, the data I used is an example, but to test the regex, I made a txt file and added Cod1 and many data between, and add Cod2. I pressed on all and found nothing. Marked nothing</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61853</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61853</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 18:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 17:57:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a></p>
<p dir="auto">You just need N++ version 7.9.1 or greater.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61850</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61850</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 17:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 17:52:05 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> do I need to download a plugin. Because my Mark screen does not look like the one in the screen shot</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61849</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61849</guid><dc:creator><![CDATA[Javier Rivas]]></dc:creator><pubDate>Fri, 15 Jan 2021 17:52:05 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 13:38:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a></p>
<blockquote>
<p dir="auto">so that I can copy … that out to another notepad</p>
</blockquote>
<p dir="auto">If you highlight the text using either <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@Ekopalypse</a> or <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> methods, you’ll want to use the <code>Copy Marked Text</code> button after.</p>
<blockquote>
<p dir="auto">… or cut …</p>
</blockquote>
<p dir="auto">There is no <code>Cut Marked Text</code> capability – maybe there should be?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61833</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61833</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 13:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 13:15:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@javier-Rivas</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14479">@ekopalypse</a> and <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@alan-kilborn</a> and <strong>All</strong>,</p>
<p dir="auto">I think that a more <strong>accurate</strong> regex would be :</p>
<p dir="auto">MARK <strong><code>(?s-i)^Cod1\R\K.+?(?=^Cod2\R)</code></strong></p>
<p dir="auto">Because :</p>
<ul>
<li>
<p dir="auto">The <strong><code>(?-i)</code></strong> ensures that search of the <strong>limits</strong> <strong><code>Cod1</code></strong> and <strong><code>Cod2</code></strong>  are done with <strong>case</strong> respect</p>
</li>
<li>
<p dir="auto">The <strong>lazy</strong> quantifier <strong><code>+?</code></strong> is needed if <strong>several</strong> sections <strong><code>Cod1.......Cod2</code></strong> exist in a <strong>same</strong> file</p>
</li>
<li>
<p dir="auto">The <strong>start</strong> of line assertion <strong><code>^</code></strong> and the <strong>EOL</strong> characters <strong><code>\R</code></strong> ensure, for instance, that the line <strong><code>Cod2</code></strong> will <strong>not</strong> be matched, <strong>either</strong>, in lines <strong><code>XXXCod2</code></strong>, <strong><code>Cod2XXX</code></strong> or <strong><code>XXXCod2XXX</code></strong></p>
</li>
<li>
<p dir="auto">The <strong><code>\R</code></strong> syntax, after <strong>Cod1</strong>, prevents from <strong>marking</strong> the line <strong><code>Cod1</code></strong>, too</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61830</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61830</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 15 Jan 2021 13:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 12:55:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a> said in <a href="/post/61819">Find Begin/End setting</a>:</p>
<blockquote>
<p dir="auto">Keep in mind, holding shift, and scrolling down is not an option, it’s way to long</p>
</blockquote>
<p dir="auto">Check out the <em>Edit</em> menu’s <em>Begin/End select</em> feature.  Invoke it once to set a “beginning” position (you get no visual indication that you’ve done this).  Sometime later, when you are somewhere vastly different from you starting point, invoke that same command again.  This looks up your previously-set beginning position and creates selected text between there and your current position.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/61828</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61828</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 15 Jan 2021 12:55:14 GMT</pubDate></item><item><title><![CDATA[Reply to Find Begin&#x2F;End setting on Fri, 15 Jan 2021 12:16:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/20928">@Javier-Rivas</a></p>
<p dir="auto">If this is your real data then you can do a regular expression search <code>(?&lt;=Cod1).+(?=Cod2)</code></p>
<p dir="auto"><img src="/assets/uploads/files/1610712954125-4a8f0731-a8b5-4949-8ae5-35ee08eb2d9e-image.png" alt="4a8f0731-a8b5-4949-8ae5-35ee08eb2d9e-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/61824</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/61824</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 15 Jan 2021 12:16:06 GMT</pubDate></item></channel></rss>