<?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[delete line between bookmark]]></title><description><![CDATA[<p dir="auto">Is it possible to delete lines between 2 bookmarks?<br />
if not, as i believe, i hope this feature is implemented in future versions of np++</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18884/delete-line-between-bookmark</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 03:42:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18884.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Feb 2020 16:44:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to delete line between bookmark on Fri, 14 Feb 2020 08:32:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> tank you so much, your last string <code>(?-s)^((?!.+@).+\R?)+</code> work very well for my purpose! Regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50616</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50616</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Fri, 14 Feb 2020 08:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 19:58:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> said in <a href="/post/50607">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">greeting to all. closed.</p>
</blockquote>
<p dir="auto">You’ll probably not read this (or see Guy’s excellent reply), but for future readers of this thread, I have to make a couple more statements</p>
<blockquote>
<p dir="auto">I wasn’t sure that guy038 was answering me,</p>
</blockquote>
<p dir="auto">Because it took more than 12 hours!?  For future readers: some problems take more than 30seconds to solve, and on non-live forums, it can take a day or two.</p>
<blockquote>
<p dir="auto">and since nobody was helping me here,</p>
</blockquote>
<p dir="auto">We were all helping you.  And both Guy and I answered almost simultaneously today explaining exactly why <strong>replace all</strong> worked but <strong>replace (once)</strong> didn’t.  If that’s not helping you, I don’t know what is.</p>
<p dir="auto">Beyond that, we were helping you, explaining that in help forums, asking politely, not demanding immediate response, and showing an effort to learn is a much better way to get help.</p>
<blockquote>
<p dir="auto">I asked my question and not only as you say it has not been closed, but indeed they replied immediately</p>
</blockquote>
<p dir="auto">Well, the userbase of of Stack Exchange is probably a thousandfold more than this Community, so there are a lot more to draw from.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50611</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50611</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Feb 2020 19:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 19:38:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a></p>
<p dir="auto">I think some degree of discussion is quite fine and appropriate.  People start out with some data, a need to do something to it, and a tool (our beloved N++).  What else are they to do but ask (on a N++ forum) “how can I do this with N++?”   And that’s totally fine.</p>
<p dir="auto">And the “weirdness” of the N++ engine?  Also a very good topic here.</p>
<p dir="auto">But, yea, slogging thru a lot of posts of typical regex handholding gets old, and I agree with you that it is better on a regex dedicated site.  Hopefully you are patrolling those as well and helping the rest of the world with regex!  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50610</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Feb 2020 19:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 19:36:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: Peterjones">@<bdi>Peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, you said :</p>
<blockquote>
<p dir="auto">And all this in a forum that isn’t about regular expressions, but rather Notepad++!</p>
</blockquote>
<p dir="auto">You’ve got a <strong>point</strong>, there !! <a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-sumner">@<bdi>Scott-sumner</bdi></a> felt the <strong>same</strong> way, in this post :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/post/35723">https://community.notepad-plus-plus.org/post/35723</a></p>
<p dir="auto">Have a look, at the <strong>same</strong> time, to my <strong>reply</strong> and <strong>question</strong> :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/post/35742">https://community.notepad-plus-plus.org/post/35742</a></p>
<p dir="auto">Again, I wonder if <strong>most</strong> of my answers are <strong>relevant</strong>, in this forum ? I mean, all this should be dealt with in a forum dedicated to <strong>regular expressions</strong> However, note that I <strong>specifically</strong> speak about N++ functionalities of our <strong>regex engine</strong> !</p>
<p dir="auto">Ah, ah : that could be a government <strong>slogan</strong> : <em>Too many regular expressions can seriously damage your health !</em></p>
<p dir="auto">Cheers</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50609</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50609</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 13 Feb 2020 19:36:41 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 19:31:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">That’s it, I got it !. In fact, the <strong>new</strong> regexes, below, are simply <strong>derived</strong> from the one given in a <strong>previous</strong> post of this <strong>present</strong> discussion :</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/post/50425">https://community.notepad-plus-plus.org/post/50425</a></p>
<hr />
<p dir="auto">So :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^((?!.+@).+\R?)+</code></strong> ( to <strong>delete</strong> any bunch of <strong>consecutive</strong> lines, <strong>not</strong> containing an <strong>e-mail</strong> address</p>
<p dir="auto">SEARCH <strong><code>(?-s)^((?!.+@).*\R?)+</code></strong> ( to delete the <strong>empty</strong> lines, as well ! )</p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">These <strong>two</strong> regexes match any <strong>non-null</strong> range of lines, which does <strong>not</strong> contain, <strong>each</strong>, the <strong><code>@</code></strong> symbol</p>
</li>
<li>
<p dir="auto">Of course, if your <strong>caret</strong> is located somewhere between two <strong>e-mail</strong> addresses, it will catch, <strong>only</strong>, from <strong>current</strong> location till the <strong>last</strong> line <strong>before</strong> a line containing an <strong>e-mail</strong> address</p>
</li>
<li>
<p dir="auto">With these syntaxes, you may use the <strong>step-by-step</strong> replacement, with <strong>successive</strong> clicks on the <strong><code>Replace</code></strong> button</p>
</li>
<li>
<p dir="auto">It does <strong>not</strong> mind the <strong>lack</strong> of a last <strong>line-break</strong>, at the <strong>very end</strong> of of the current file</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50608</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50608</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 13 Feb 2020 19:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 19:27:07 GMT]]></title><description><![CDATA[<p dir="auto">with this post I always want to thank guy038 very much for his availability towards me.</p>
<p dir="auto">moreover, @ PeterJones, leaving aside unnecessary controversy, I would just like to tell you that instead on Stackoverflow, since I wasn’t sure that guy038 was answering me, and since nobody was helping me here, I asked my question and not only as you say it has not been closed, but indeed they replied immediately, within a few minutes, solving my problem skillfully … in a few minutes …<br />
so rest assured that I will no longer bother you here. luckily there are other forums, and other users (as I do when I can) who are happy to satisfy a request for help.<br />
with this, however, a greeting to all. closed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50607</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50607</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Thu, 13 Feb 2020 19:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 18:58:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/50604">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">randomly typed</p>
</blockquote>
<p dir="auto">Heheh, hadn’t seen the “randomly typed” part before, but, not being the one that has ever needed to read your boilerplate thoroughly, I guess I’m not surprised. :-)</p>
<p dir="auto">BTW, I can’t see any of the “takers” truly ever reading your BP either, but…  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50606</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50606</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Feb 2020 18:58:06 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 18:19:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/50603">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/50602">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">we expect you to show some effort.  Try some regexes, see if you can make them work for what you want to do.  If you have trouble with one, show the regex you tried, show why you tried it, and explain what is wrong with the results it gives</p>
</blockquote>
<p dir="auto">This is good and proper advice, but I think what the “takers” will start doing (to satisfy it) is grabbing the last freebie regex given to them, throw a couple of crap characters in it, and then post back, going “Wah wah it doesn’t work!”, without putting any real thought (or, forbid, learning) into it.</p>
</blockquote>
<p dir="auto">That’s why here I said “show why you tried it”, and in my fuller boilerplate, I say, “why you thought that regex would work (to prove it wasn’t just something randomly typed)”</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50604</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50604</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Feb 2020 18:19:28 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 18:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/50602">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">we expect you to show some effort.  Try some regexes, see if you can make them work for what you want to do.  If you have trouble with one, show the regex you tried, show why you tried it, and explain what is wrong with the results it gives</p>
</blockquote>
<p dir="auto">This is good and proper advice, but I think what the “takers” will start doing (to satisfy it) is grabbing the last freebie regex given to them, throw a couple of crap characters in it, and then post back, going “Wah wah it doesn’t work!”, without putting any real thought (or, forbid, learning) into it.</p>
<p dir="auto">The “takers” seem to quickly establish a pattern in their behavior, as exemplified above, and in many other chains.</p>
<p dir="auto">And all this in a forum that isn’t about regular expressions, but rather Notepad++!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50603</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50603</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Feb 2020 18:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 18:07:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> said in <a href="/post/50596">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">I’m very sorry to have come to this, but someone’s behavior is really heavy …</p>
</blockquote>
<p dir="auto">Your behavior is really greedy.  You have asked many questions, demanded quick replies, requested specific attention, and never posted one helpful answer to anyone else’s questions.</p>
<blockquote>
<p dir="auto">it doesn’t seem appropriate to study a code that i don’t need.</p>
</blockquote>
<p dir="auto">It doesn’t seem appropriate for us to do your work for you.  Since you have proven at least four times in the last month that you <em>do</em> need the tool (regex), claiming you <em>don’t</em> need it is deceiving yourself, at best.</p>
<p dir="auto">You don’t have to become an expert at regex right away… and we don’t expect you to.  However, we expect you to show some effort.  Try some regexes, see if you can make them work for what you want to do.  If you have trouble with one, show the regex you tried, show why you tried it, and explain what is wrong with the results it gives.  With that much effort on your part, we will help you understand what you are doing wrong, so that we can help you learn.  But if you just say “make this change for me – and make it right now! on my schedule!”, then you will not be able to learn.</p>
<blockquote>
<p dir="auto">if you don’t want to help me for anything else, nobody forces you.</p>
</blockquote>
<p dir="auto">You are not asking for help.  you are asking us to write regexes for you, showing no effort to try to do them yourself.  Throwing fish down your mouth isn’t helping you; teaching you how to fish is helping you; and asking that you at least learn how to cast the lure yourself, even if you’ve chosen the wrong lure for your specific fish, is a reasonable expectation.</p>
<blockquote>
<p dir="auto">I am registered in numerous forums, and where i can i give my contribution.</p>
</blockquote>
<p dir="auto">But you’ve never contributed anything but questions, and have shown a demanding, unwilling to try to learn attitude here.  That’s all we have to go on.  We haven’t seen you be willing to learn; we haven’t seen you try to help others.  We have just seen your demands.</p>
<blockquote>
<p dir="auto">and anyway to conclude, there are other forums, including stackoverflow, where others help without controversy. from now I will turn there.</p>
</blockquote>
<p dir="auto">hahaha!  Stack Overflow is about the most unhelpful forum I’ve ever seen.  If you deign to ask a question similar to what’s been asked before, your question gets closed without any input from you.</p>
<blockquote>
<p dir="auto">I only hoped, since guy038 had shown me a way, that he would help me to reach a conclusion.</p>
</blockquote>
<p dir="auto">This is not personal one-on-one time.  When Guy has opportunity, I am sure he will come back and answer your slight tweak.  But demanding a certain person reply, and starting to ask “why haven’t you answered” after only 12 hours delay, is not polite forum behavior.</p>
<blockquote>
<p dir="auto">my post was addressed to him, who without controversy has kindly helped me to solve my problem.</p>
</blockquote>
<p dir="auto">But he has repeatedly asked you to show some effort, and you ignore that.</p>
<blockquote>
<p dir="auto">I repeat, i believe that if one person can help others, he or she is better, otherwise it is better to refrain from controversy. regards.</p>
</blockquote>
<p dir="auto">We are helping you.  We are explaining to you the best way to get help: be polite, don’t be demanding, show that you are willing to try things and to learn.</p>
<p dir="auto">Back to your question:</p>
<blockquote>
<p dir="auto">but i don’t understand why if i click (after the text block after mail has been selected) Replace with: empty don’t delete simply this block… i have to exit the find and delete it manually with the DEL key.<br />
it would be very nice to remove the block with the Replace with key… it’s not possible that??</p>
</blockquote>
<p dir="auto">It is possible to replace all.  However, inside the dialog, single replaces don’t work with the <code>\K</code>, as <a href="https://community.notepad-plus-plus.org/post/50469">Guy <strong>already explained</strong> to you</a>.  If you want to replace one at a time, you do the first search from the dialog, then exit out of the dialog box.  From then on, DEL and F3 will allow you delete and then do the next one-at-a-time search.</p>
<p dir="auto"><strong>edit</strong>: I see that Guy posted the same thing while I was typing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50602</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50602</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Feb 2020 18:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 18:09:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I already explained to you, in this <strong>previous</strong> post, that if the <strong><code>\K</code></strong> syntax is <strong>present</strong> in the regex, this means that <strong>step by step</strong> replacement, by clicking the <strong><code>Replace</code></strong> button, is <strong>not</strong> functional !</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/post/50469">https://community.notepad-plus-plus.org/post/50469</a></p>
<hr />
<p dir="auto">So, you have <strong>two</strong> possibilities, only :</p>
<p dir="auto"><strong>A)</strong> Use a <strong>global</strong> replacement :</p>
<ul>
<li>
<p dir="auto">Move your <strong>caret</strong> to a line containing an <strong>e-mail</strong> address if you want to run the <strong>global</strong> replacement from <strong>current</strong> location till the <strong>very end</strong> of your file. If you want to process <strong>all</strong> the file, your <strong>present</strong> location does <strong>not</strong> matter</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s).*\R\K(?s:.+?)(?=^.+@|\z)</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option, in order that the <strong>global</strong> replacement acts on the <strong>totality</strong> of your file</p>
</li>
<li>
<p dir="auto">Or <strong>untick</strong> the <strong><code>Wrap around</code></strong>  option for a <strong>global</strong> replacement from <strong>current</strong> location till the <strong>very end</strong> of your file</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click, <strong>exclusively</strong>, on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<hr />
<p dir="auto"><strong>B)</strong> Use the <strong>search</strong> feature and a <strong>manual</strong> suppression :</p>
<ul>
<li>
<p dir="auto"><strong>Whatever</strong> your current location, open the <strong><code>Search</code></strong> dialog  ( <strong><code>Ctrl + F</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s).*\R\K(?s:.+?)(?=^.+@|\z)</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option, in order to navigate <strong>anywhere</strong>, throughout in your <strong>current</strong> file</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click <strong>once</strong> on the <strong><code>Find Next</code></strong> button, in order to <strong>memorize</strong> this regex</p>
</li>
<li>
<p dir="auto">Close the <strong>Find</strong> dialog with the <strong><code>ESC</code></strong> key</p>
</li>
<li>
<p dir="auto">Now, hit the <strong><code>F3</code></strong> key to get the <strong>bunch</strong> of lines following the <strong>next</strong> e-mail address</p>
</li>
<li>
<p dir="auto">If this selection is <strong>not</strong> wanted, just press the <strong><code>Delete</code></strong> key for <strong>suppression</strong>, else press, again, the <strong><code>F3</code></strong> key for <strong>next</strong> search and so on…</p>
</li>
</ul>
<p dir="auto">Note that pressing the <strong><code>Delete</code></strong> key is a <strong>one-step</strong> operation, just like a <strong>single</strong> click on the <strong><code>Replace</code></strong> button, anyway ;-))</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S</strong> :</p>
<p dir="auto">Of course, the <strong>best</strong> would be to find a <strong>new</strong> regex S/R which does <strong>not</strong> need the <strong><code>\K</code></strong> feature. But to identify <strong>all</strong> lines between <strong>two e-mail</strong> addresses, I necessarily need to <strong>anchor</strong> to a first <strong>e-mail</strong> address, which must <strong>not</strong> be part of the <strong>overall</strong> regex match to prevent from deleting ! I’m still searching an <strong>other</strong> solution ;-))</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50601</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50601</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 13 Feb 2020 18:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 16:55:37 GMT]]></title><description><![CDATA[<p dir="auto">I’m very sorry to have come to this, but someone’s behavior is really heavy …<br />
I understand that I should learn but this code is not easy and i have to use it only on rare occasions and it doesn’t seem appropriate to study a code that i don’t need.<br />
and yes Alan thank you for your advice above, but if you don’t want to help me for anything else, nobody forces you.<br />
I am registered in numerous forums, and where i can i give my contribution. where I don’t know, I don’t answer. and everyone asks for things only for himself, but I have never, never, allowed myself to say learn if you don’t know. I write a suggestion about what he wants, stop.<br />
and anyway to conclude, there are other forums, including stackoverflow, where others help without controversy. from now I will turn there.<br />
I only hoped, since guy038 had shown me a way, that he would help me to reach a conclusion.<br />
my post was addressed to him, who without controversy has kindly helped me to solve my problem.<br />
however i apologize for my writing above, but sometimes it happens to lose patience on completely useless controversies …<br />
I repeat, i believe that if one person can help others, he or she is better, otherwise it is better to refrain from controversy. regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50596</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50596</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Thu, 13 Feb 2020 16:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 16:25:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> said in <a href="/post/50584">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">dear sir… if i knew how to do it, I wouldn’t be here to waste time and ask others for advice, don’t you think?<br />
think before writing, your speech is not welcome.<br />
please avoid writing in my posts, your post is not required.<br />
THANK YOU</p>
</blockquote>
<p dir="auto">Wow, that’s some serious gratitude; remember, I even wrote you a script earlier.</p>
<p dir="auto">I wasn’t trying to be offensive to you, I was just trying to tell you that what you are trying to do isn’t really tolerated here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50594</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50594</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Feb 2020 16:25:58 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 14:15:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> said in <a href="/post/50576">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">does not exist here in the forum the possibility to send a PM to a user?</p>
</blockquote>
<p dir="auto">No, there is no PM capability.</p>
<blockquote>
<p dir="auto">if i knew how to do it, I wouldn’t be here to waste time and ask others for advice, don’t you think?</p>
</blockquote>
<p dir="auto">Guy has <a href="https://community.notepad-plus-plus.org/post/50034">pointed you</a> to the <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">regex FAQ</a> in your very first thread here.  And <a href="https://community.notepad-plus-plus.org/post/50291">again</a> in your fourth thread here.  Then, in your fifth thread, he <a href="https://community.notepad-plus-plus.org/post/50291">again</a> reminded you to follow Alan’s advice and learn the basics of regular expressions.</p>
<p dir="auto">You <em>need</em> to show more effort, rather than demanding that we do your homework for you (at least, I hope it’s homework; if we’re doing the job you are being paid to do for you, that’s even worse), on your time schedule.</p>
<blockquote>
<p dir="auto">your speech is not welcome.<br />
please avoid writing in my posts, your post is not required.</p>
</blockquote>
<p dir="auto">I am sorry.  You don’t get to decide who replies to your posts.  Alan’s advice is sound advice: you need to put in the effort to start learning this.</p>
<p dir="auto">In less than a month, you have done 6 different topics, four of which are regex based; as Guy pointed out, some of those have had very similar requirements.    You have seen dozens of different regex suggestions from Guy and others on the forum.  It is time for you to start learning what the bits of the regexes do, and try them yourself.  If you get stuck, you can show us what you tried, and explain why you thought it should work, and we might be able to explain to you why it didn’t work for you, and point you in the right direction.</p>
<p dir="auto"><strong>Please</strong> read the <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">regex FAQ</a> that has been linked for you.  If that takes you to too many different locations, then please just focus on the <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">official Notepad++ regex documentation</a>.</p>
<p dir="auto">Some more of my standard advice for people asking regex questions follows below:<br />
-----</p>
<h3>Please Read And Understand This</h3>
<p dir="auto">FYI: I often add this to my response in regex threads, unless I am sure the original poster has seen it before. Here is some helpful information for finding out more about regular expressions, :</p>
<p dir="auto">[…]</p>
<blockquote>
<p dir="auto">If you have further search-and-replace (“matching”, “marking”, “bookmarking”, regular expression, “regex”) needs, study <a href="https://npp-user-manual.org/docs/searching/#regular-expressions" rel="nofollow ugc">the official Notepad++ searching using regular-expressions docs</a>, as well as <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">this forum’s FAQ</a> and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting, see the paragraph above.</p>
</blockquote>
<blockquote>
<p dir="auto">Please note that for all regex and related queries, it is best if you are explicit about what needs to match, <em>and</em> what <em>shouldn’t</em> match, and have multiple examples of both in your example dataset. Often, what <em>shouldn’t match</em> helps define the regular expression as much or more than what <em>should match</em>.</p>
</blockquote>
<blockquote>
<p dir="auto">Here is the way I usually break down trying to figure out a regex (whether it’s for myself or for helping someone in the forum):</p>
</blockquote>
<blockquote>
<ol>
<li>Compare what portions of each line I want to match is identical to every other one (“constants”), and what parts do I want to allow to be different in each line (“variables”) but still be part of the match.</li>
</ol>
</blockquote>
<blockquote>
<ol start="2">
<li>Look at both the variables and constants, and see what portions of each I’ll want to keep or move around, vs which parts get thrown away completely. Each sub-component that I want to keep will be put in a regex group. Anything that gets completely thrown away doesn’t <em>need</em> to be in a group, though sometimes I put it in a numbered <code>(___)</code> or unnumbered <code>(?:___)</code> group anyway, if I have a good reason for it. Anything that needs to be split apart, I break into multiple groups, instead of having it as one group.</li>
</ol>
</blockquote>
<blockquote>
<ol start="3">
<li>For each group, I do a mental “how would I describe to my son how to correctly match these characters?” – which should hopefully give me a simple, foolproof algorithm of characters that must match or must not match; then I ask, “how would I translate those instructions into regex sequences?” If I don’t know the answer to the second, I read documentation, or ask a specific question.</li>
</ol>
</blockquote>
<blockquote>
<ol start="4">
<li>try it, debug, iterate.</li>
</ol>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/50585</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50585</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 13 Feb 2020 14:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 13:49:17 GMT]]></title><description><![CDATA[<p dir="auto">dear sir… if i knew how to do it, I wouldn’t be here to waste time and ask others for advice, don’t you think?<br />
think before writing, your speech is not welcome.<br />
please avoid writing in my posts, your post is not required.<br />
THANK YOU</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50584</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50584</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Thu, 13 Feb 2020 13:49:17 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 12:52:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a></p>
<p dir="auto">Time to sit down and do some <em>LEARNING</em> and stop doing so much <em>ASKING</em> ?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50582</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50582</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Feb 2020 12:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Thu, 13 Feb 2020 08:09:33 GMT]]></title><description><![CDATA[<p dir="auto">…again… guys038 where did you end up ??</p>
<p dir="auto">does not exist here in the forum the possibility to send a PM to a user? I do not think so…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50576</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50576</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Thu, 13 Feb 2020 08:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Wed, 12 Feb 2020 08:54:49 GMT]]></title><description><![CDATA[<p dir="auto">oh guy038 tank you so much for your reply! you are my super-hero!<br />
2 really interesting things. it was what i wanted! many tanxs.</p>
<p dir="auto">only little curiosity: at the first part of your reply, about this code <code> (?-s).*\R\K(?s:.+?)(?=^.+@|\z)</code> work fine for my purposes, but i don’t understand why if i click (after the text block after mail has been selected) Replace with: <code> empty</code> don’t delete simply this block… i have to exit the <code> find</code> and delete it manually with the <code> DEL</code> key.<br />
it would be very nice to remove the block with the <code> Replace with</code> key… it’s not possible that??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50553</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50553</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Wed, 12 Feb 2020 08:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Tue, 11 Feb 2020 21:36:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: Peterjones">@<bdi>Peterjones</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Sorry, I did <strong>not</strong> even notice this post, which was rather <strong>short</strong> ;-)) Well, I suppose that the regex does <strong>not</strong> work because the <strong>last</strong> line <strong><code>Kaplan USMLE Step 1 .....</code></strong> is <strong>not</strong> followed with an <strong>e-mail</strong> address but is just the <strong>very end</strong> of your file !</p>
<p dir="auto">In order that this <strong>specific</strong> case will be taken in account, <strong>too</strong>, here is a <strong>other</strong> search regex :</p>
<ul>
<li>
<p dir="auto">Move to <strong>any</strong> line containing an <strong>e-mail</strong> address</p>
</li>
<li>
<p dir="auto">Open the <strong>Search</strong> dialog ( <strong><code>Ctrl + F</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?-s).*\R\K(?s:.+?)(?=^.+@|\z)</code></strong></p>
</li>
<li>
<p dir="auto"><strong>Tick</strong> the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Find Next</code></strong> button</p>
</li>
<li>
<p dir="auto">Hit the <strong><code>ESC</code></strong> key to close the <strong>Find</strong> dialog</p>
</li>
<li>
<p dir="auto">Now, hitting, <strong>repeatedly</strong>,  on the <strong><code>F3</code></strong> key, it will select all text, after this <strong>e-mail</strong> address till the <strong>next</strong> e-mail address <strong>excluded</strong> and so on… OR till the <strong>very end</strong> of current file !</p>
</li>
<li>
<p dir="auto">Of course, you may manually <strong>delete</strong> some of these blocks, with the <strong><code>Delete</code></strong> key, if necessary</p>
</li>
<li>
<p dir="auto">For a <strong>global</strong> suppression, leave the <strong>replacement</strong> zone <strong><code>empty</code></strong> and click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<hr />
<p dir="auto">Moreover, if you want to move from one <strong>e-mail</strong> address to the <strong>next</strong> or the <strong>previous</strong> one, here is an simple method :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Search &gt; Mark...</code></strong> ) option</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>@</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>3</code></strong> options <strong><code>Bookmark line</code></strong>, <strong><code>Purge for each search</code></strong> and <strong><code>Wrap around</code></strong></p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
</ul>
<p dir="auto">=&gt; Now, you can <strong>easily</strong> navigate betweens all these <strong>email</strong> addresses, using the <strong><code>F2</code></strong> and/or  <strong><code>Shift + F2</code></strong> shortcuts</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50536</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50536</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 11 Feb 2020 21:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Tue, 11 Feb 2020 16:42:37 GMT]]></title><description><![CDATA[<p dir="auto">i hope guy038 reply to my post (4 post above above this post)…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50522</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50522</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Tue, 11 Feb 2020 16:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Mon, 10 Feb 2020 17:02:35 GMT]]></title><description><![CDATA[<p dir="auto">i already save one backup of my txt…<br />
and yes, compare plugin, i have and already use this.<br />
however Document Map is very useful for scrolling through the file…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50495</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50495</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Mon, 10 Feb 2020 17:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Mon, 10 Feb 2020 14:03:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pinuzzu99" aria-label="Profile: pinuzzu99">@<bdi>pinuzzu99</bdi></a> said in <a href="/post/50481">delete line between bookmark</a>:</p>
<blockquote>
<p dir="auto">i want check all my single block one by one before delete all lines.</p>
</blockquote>
<p dir="auto">But as <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> said, that expression won’t work in one-at-a-time mode.  Continuing to try is an exercise in futility.</p>
<p dir="auto">If you are uncertain whether the regex will meet all your needs, and you want to be able to compare the “before” and “after” states of your file, I recommend opening the original file <code>blah.txt</code>, <strong>File &gt; Save copy as</strong>, give it a name like <code>blah_new.txt</code>, then open <code>blah_new.txt</code> and move to other view – so that the two panes of Notepad++ are <code>blah.txt</code> on the left and <code>blah_new.txt</code> on the right, then run Guy’s regex on the <code>blah_new.txt</code>, then use the Compare plugin (which you can install from the Plugins Admin) to find and easily navigate through the differences between the files, and make sure everything is the way you want it.  If they are all right, great; if most are right and just a couple aren’t quite right, then manually fix those last few; if there are many wrong, then run Undo, and try to update the regex to better do what you want. Once you are happy with <code>blah_new.txt</code>, you can delete the original <code>blah.txt</code> (or rename to <code>blah_old.txt</code>, then rename <code>blah_new.txt</code> to <code>blah.txt</code>.</p>
<p dir="auto">(Or, you can start by copying <code>blah.txt</code> to <code>blah_old.txt</code>, and have <code>blah_old.txt</code> on the left and <code>blah.txt</code> on the right, doing all your edits to <code>blah.txt</code>, and eliminating the extra renames at the end of the procedure.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50489</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50489</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 10 Feb 2020 14:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Mon, 10 Feb 2020 08:36:14 GMT]]></title><description><![CDATA[<p dir="auto">in this specific case string (?-s).*\R(?s:.+?)(?=^.+@) don’t find value…<br />
why? what is different than other blocks?</p>
<pre><code>earlnathanieluhftr@gmail.com:natchel7634
Used: 3/50GB
Physiology                                        			0KB
Internal Med                                      			0KB
Passwords.zip                                     			370KB
Lippincott Illustrated Reviews Flash Cards Physiology - Preston, Robin [SRG].pdf			42137KB			          08/09/2015 17:46:42
Ganongs Review of Medical Physiology,  24E (2012) [UnitedVRG].pdf			80607KB			          08/09/2015 17:46:36
Kaplan USMLE Step 1 Physiology Lecture Notes (2013) [PDF] [UnitedVRG].pdf			25312KB			          08/09/2015 12:50:40
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/50482</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50482</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Mon, 10 Feb 2020 08:36:14 GMT</pubDate></item><item><title><![CDATA[Reply to delete line between bookmark on Mon, 10 Feb 2020 08:23:01 GMT]]></title><description><![CDATA[<p dir="auto">yes i know, <em>Replace All</em> and i have try it before my post above, but as i said, i want check all my single block one by one before delete all lines.<br />
for my purpose work fine this: (?-s).*\R(?s:.+?)(?=^.+@)<br />
without \K and work with <em>Replace</em>, but on next block i need to put cursor at begin line under mail line…<br />
this is little problem if my txt have 10,000 block of mail - file list…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50481</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50481</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Mon, 10 Feb 2020 08:23:01 GMT</pubDate></item></channel></rss>