<?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[Remove lines that meet a requirement using notepad ++]]></title><description><![CDATA[<p dir="auto">friends it is possible to eliminate those lines that are not complete with your correspondent email, I have the lines</p>
<p dir="auto"><a href="mailto:dozyyqprodus@mybuy.com" rel="nofollow ugc">dozyyqprodus@mybuy.com</a>:dory34<br />
<a href="mailto:dozen12@yahoo.com" rel="nofollow ugc">dozen12@yahoo.com</a>:crhis<br />
46trgfbf7:dank420<br />
dp.b2c33:@phill<br />
terry.hj:6@YD9<br />
<a href="mailto:146000@gmail.com" rel="nofollow ugc">146000@gmail.com</a>:bell2<br />
2435678eb:~lH@m]<br />
fjui34:t@,</p>
<p dir="auto">the result would be:</p>
<p dir="auto"><a href="mailto:dozyyqprodus@mybuy.com" rel="nofollow ugc">dozyyqprodus@mybuy.com</a>:dory34<br />
<a href="mailto:dozen12@yahoo.com" rel="nofollow ugc">dozen12@yahoo.com</a>:crhis<br />
<a href="mailto:146000@gmail.com" rel="nofollow ugc">146000@gmail.com</a>:bell2</p>
<p dir="auto">my text is very big<br />
thanks you</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16363/remove-lines-that-meet-a-requirement-using-notepad</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 10:39:06 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16363.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Sep 2018 07:12:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remove lines that meet a requirement using notepad ++ on Sat, 22 Sep 2018 00:08:54 GMT]]></title><description><![CDATA[<p dir="auto"><strong>great friend, thank you very much for your help</strong>, I’m learning every day,<br />
If you work, thank you, I do not know how to thank you</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35020</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35020</guid><dc:creator><![CDATA[ani rodet]]></dc:creator><pubDate>Sat, 22 Sep 2018 00:08:54 GMT</pubDate></item><item><title><![CDATA[Reply to Remove lines that meet a requirement using notepad ++ on Fri, 21 Sep 2018 23:29:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12972">@ani-rodet</a>, scott-sumner and <strong>All</strong>,</p>
<p dir="auto">Ah, OK, I won’t <strong>abandon</strong> you, with your <strong>big</strong> text ;-))</p>
<p dir="auto">So, open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
<p dir="auto">SEARCH <strong><code>(?-si)^.+@[a-z]+\.(com|org|net|int|edu|gov|mil)(:\w+)?\R|^.+\R</code></strong></p>
<p dir="auto">REPLACE <strong><code>?1$0</code></strong></p>
<ul>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search mode</p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto">Notes :</p>
<ul>
<li>I took the main <strong>top-level-domains</strong> from this link :</li>
</ul>
<p dir="auto"><a href="https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains" rel="nofollow ugc">https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains</a></p>
<ul>
<li>For instance, here are below, the <strong>different</strong> parts of the regex, with, accordingly, the <strong>first</strong> line <strong><code>dozyyqprodus@mybuy.com:dory34</code></strong></li>
</ul>
<pre><code class="language-diff">(?-si)^     .+       @  [a-z]+  \.  (com|org|net|int|edu|gov|mil)  (:  \w+  )?    \R     |         ^.+            \R

      &gt;dozyyqprodus  @  mybuy    .             com                  : dory34     CRLF    or  ALL line contents   CRLF
</code></pre>
<ul>
<li>
<p dir="auto">Just try to <strong>guess</strong> how this regex works and, please, read some <strong>regex</strong> documentation ;-) Indeed, that regex is simply made up of basic <strong>consecutive</strong> structures and it’s not <strong>very difficult</strong> to build !</p>
</li>
<li>
<p dir="auto">Regarding the <strong>Replacement</strong> part,</p>
<ul>
<li>
<p dir="auto">If <strong>group <code>1</code></strong> exists, <strong><code>(com|org|net|int|edu|gov|mil)</code></strong>, <strong>all</strong> the matched string is <strong>re-written</strong></p>
</li>
<li>
<p dir="auto">If <strong>not</strong>, the <strong>entire</strong> line, with its <strong>line-break</strong>, is <strong>deleted</strong></p>
</li>
</ul>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/35017</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/35017</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 21 Sep 2018 23:29:17 GMT</pubDate></item><item><title><![CDATA[Reply to Remove lines that meet a requirement using notepad ++ on Fri, 21 Sep 2018 14:50:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/374">@Scott-Sumner</a> said:</p>
<blockquote>
<p dir="auto">What have you tried? Have you used one of the regular expression helper sites to try to build a correct regular expression to match your data?</p>
</blockquote>
<p dir="auto">thanks, friend I need to delete those that do not have full email, I tried with regular expression but it did not work,</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34999</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34999</guid><dc:creator><![CDATA[ani rodet]]></dc:creator><pubDate>Fri, 21 Sep 2018 14:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to Remove lines that meet a requirement using notepad ++ on Fri, 21 Sep 2018 12:18:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/12972">@ani-rodet</a></p>
<p dir="auto">What have you tried?  Have you used one of the regular expression helper sites to try to build a correct regular expression to match your data?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34987</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34987</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 21 Sep 2018 12:18:28 GMT</pubDate></item></channel></rss>