<?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[Marking a large text]]></title><description><![CDATA[<p dir="auto">Hi! I’ve just used notepad++ and had a great experience with it. I’ve got a question regarding marking a larger text. Is there any way in notepad++ to search for a text and mark from the current writing location to the searched text? I’ve got a text as following</p>
<p dir="auto">A<br />
xx<br />
b<br />
A<br />
xx<br />
b<br />
…</p>
<p dir="auto">I manually find A and have to scroll down tons of text in order to get to B, in order to shift click b. Would there be a plugin or a method for me to click A, search for b and the xx between A and B would get marked.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/76/marking-a-large-text</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 15:10:22 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/76.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Jul 2015 12:17:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Marking a large text on Sun, 12 Jul 2015 11:58:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Erik</strong> and <strong>Scott</strong>,</p>
<p dir="auto">Oh, yes, <strong>Scott</strong>, I forgot this <strong>obvious</strong> solution :-(</p>
<p dir="auto">In addition, since the N++<strong>v6.4.2</strong> version, the <strong>Begin/End Select</strong>, command is recordable in a <strong>macro</strong> :-)</p>
<p dir="auto">The nice thing, with N++, is that there are, very often, <strong>several</strong> ways to achieve the same goal !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/342</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/342</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 12 Jul 2015 11:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Marking a large text on Sun, 12 Jul 2015 01:33:17 GMT]]></title><description><![CDATA[<p dir="auto">While I like the elegance of guy038’s solution, it may be worth pointing out that the “Begin/End Select” feature could also be utilized to solve the original problem.  Do a Find on the first text, then enable Begin/End Select via the Edit menu choice, right-click context menu, or shortcut key, doing so with the caret just after the found text.  Then do another Find on the ending text, and end/turn-off the Begin/End Select feature (before doing this it will be enabled/checked on the Edit menu) after moving the cursor just before the found text from this second find.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/337</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/337</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Sun, 12 Jul 2015 01:33:17 GMT</pubDate></item><item><title><![CDATA[Reply to Marking a large text on Sun, 12 Jul 2015 00:32:04 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <strong>Erik</strong>,</p>
<p dir="auto">There’s a simple method, using a search, in <strong>regular expression</strong> mode !</p>
<p dir="auto">It’s not exactly what you would like to, because you’ll need to type the <strong>two</strong> limits, inside the <strong>regular</strong> expression search, <em>instead of clicking on the <strong>first</strong> limit and searching for the <strong>second</strong> one</em>.</p>
<p dir="auto">Anyway, it’s works fine :-)</p>
<p dir="auto">Then, let’s suppose the subject text, below :</p>
<pre><code>aa
bb
Begin
xx
yy
End

Begin

vv
ww
xx
yy
zz

End

12345 Begin 67 89 01 23 45 End 67890
</code></pre>
<p dir="auto">Now, follow the few steps, below :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Search</strong> dialog</p>
</li>
<li>
<p dir="auto">Choose the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">Check the <strong>Wrap around</strong> and/or <strong>Match case</strong> options, if necessary</p>
</li>
<li>
<p dir="auto">In the <strong>Find what</strong> zone, type the regex <strong><code>(?s)Begin\R?\K.*?(?=End)</code></strong></p>
</li>
<li>
<p dir="auto">Finally, click on the <strong>Find Next</strong> button</p>
</li>
</ul>
<p dir="auto">Notes :</p>
<ul>
<li>
<p dir="auto">This regex select <strong>all</strong> the lines, located between the line <strong>Begin</strong> and the <strong>nearest</strong> line <strong>End</strong> OR all the text, between two strings <strong>Begin</strong> and <strong>End</strong>, located on the <strong>same</strong> line</p>
</li>
<li>
<p dir="auto">The modifier <strong><code>(?s)</code></strong> means that any <strong>dot</strong>, in the expression, matches any character, even <strong>End of Line</strong> characters</p>
</li>
<li>
<p dir="auto">The regex tries, first, to match the string <strong>Begin</strong>, eventually followed by its <strong>End of Line</strong> characters <strong><code>\R?</code></strong></p>
</li>
<li>
<p dir="auto">Then the <strong><code>\K</code></strong> syntax forces the regex engine to <strong>forget</strong> any <strong>previous</strong> match. So, <em>the regex to match is, ONLY, <strong><code>.*?(?=End)</code></strong></em></p>
</li>
<li>
<p dir="auto">Therefore, the regex matches <strong>any</strong> character, even <strong>End of Line</strong> characters, till the <strong>nearest</strong> string <strong>End</strong>, which is, however, NOT part of the final match, too, because it’s included in a <strong>lookahead</strong> structure <strong><code>(?=....)</code></strong></p>
</li>
<li>
<p dir="auto">Of course, the strings <strong>Begin</strong> and <strong>End</strong> can be replaced by a <strong>simple</strong> character, like <strong>A</strong> and <strong>B</strong> or by regexes, like <strong>[01234]</strong> and <strong>[56789]</strong>, or, even, more complex regexes !</p>
</li>
</ul>
<p dir="auto">IMPORTANT :</p>
<p dir="auto">If you intend to <strong>replace</strong> these selected blocks by any text, or <strong>delete</strong> them, <em>you must use the <strong>global</strong> replacement, clicking on the <strong>Replace All</strong> button</em> and NOT the <strong>Replace</strong> button, because of the presence of the <strong>\K</strong> form !</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
<p dir="auto">P.S. :</p>
<p dir="auto">You’ll find <strong>good documentation</strong>, about the new <strong>Boost C++ Regex library, v1.55.0</strong> ( similar to the <strong>PERL Regular Common Expressions, v1.48.0</strong> ), used by <strong><code>Notepad++</code></strong>, <em>since its <strong><code>6.0</code></strong> version</em>, at the <strong>TWO</strong> addresses below :</p>
<p dir="auto"><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html</a></p>
<p dir="auto"><a href="http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html" rel="nofollow ugc">http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html</a></p>
<ul>
<li>
<p dir="auto">The <strong>FIRST</strong> link explains the <strong>syntax</strong>, of regular expressions, in the <strong>SEARCH</strong> part</p>
</li>
<li>
<p dir="auto">The <strong>SECOND</strong> link explains the <strong>syntax</strong>, of regular expressions, in the <strong>REPLACEMENT</strong> part</p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/331</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/331</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sun, 12 Jul 2015 00:32:04 GMT</pubDate></item></channel></rss>