<?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 part of text]]></title><description><![CDATA[<p dir="auto">in reference to my old thread here:<br />
<a href="https://community.notepad-plus-plus.org/topic/18793/multiple-txt-to-one-new-txt">https://community.notepad-plus-plus.org/topic/18793/multiple-txt-to-one-new-txt</a><br />
at post #16, i have try this string on my other new txt but this string delete all!<br />
i have txt like this:</p>
<pre><code>.: Allopa Detaruso :.
=================================
Lukis: pampetet.marertey@yeto.com:cldfgdfgzo14430
Pra Stimona: Fru
=================================
 
moka:/my-wahsjras.zuk                               379912     2019-08-07T02:52:11+02:00
.: Allopa Detaruso :.
=================================
Lukis: capdfgdfnn44rz@gmail.com:1ertrete434
Pra Stimona: Fru
=================================
 
moka:/crypto.zip                                   380547     2019-08-07T02:50:07+02:00
.: Allopa Detaruso :.
=================================
Lukis: jadfgdf2@gail.com:mfdgfhg11444357
Pra Stimona: Fru
=================================
 
moka:/wahsjras.zuk                                  379807     2019-08-07T02:58:33+02:00
.: Allopa Detaruso :.
=================================
Lukis: lfdhreyan@hofail.com:pipoqfdhghnha
Pra Stimona: Fru
=================================
 
moka:/RECOVER.zip                                  380708     2019-08-07T02:59:03+02:00
.: Allopa Detaruso :.
=================================
Lukis: lely-u-kildjss@hotkslail.fr:kedflgdfeove
Pra Stimona: Fru
=================================
 
moka:/[DVD] kalals ''quarter'' in TryrtyOME (Disc 1).mp4 5160256900 2015-11-09T23:17:16+01:00
moka:/[DVD] mahxgc come Here (TdfhtrrtyrtyM) - Encore.mp4 832324875  2015-11-09T23:20:25+01:00
moka:/[DVD] mmahshs come Here (YdfgfdgdfgdfgM).mp4 3582747293 2015-11-09T23:50:36+01:00
moka:/[DVD] oakshdhf come Hfgbere (mashdjskskal) - MC.mp4 902267874  2015-11-09T23:52:03+01:00
moka:/wahsjras.zuk                                  379957     2019-08-07T03:40:13+02:00
.: Allopa Detaruso :.
=================================
Lukis: ddfgdfgi@gail.com:jinyujyukyk304525
Pra Stimona: Fru
=================================
 
moka:/[deanzel] Tenchi Muyo! Ryo-Ohki/             0          2014-10-26T11:56:44+01:00
moka:/[deanzel] Ndfjhgjtyjykhgi, Imoghkghkgyta Iru!/ 0          2014-12-13T21:08:15+01:00
moka:/[deanzel] Psycho-Pass [BD 1080p 10bit Dual Audio FLAC-AC3]/ 0          2014-12-23T19:08:45+01:00
moka:/[deanzel] Steins;Gate/                       0          2015-01-31T06:17:50+01:00
moka:/[deanzel] Space Dandy - Seagfrrrr [BD 1080p Hi10p Dual Audio FLAC-AC3]/ 0          2015-02-02T20:09:36+01:00
.: Allopa Detaruso :.
=================================
Lukis: pytryrta.martyrly@yaplgo.com:crtytrghmgzo140
Pra Stimona: Fru
=================================
 
moka:/my-wahsjras.zuk                               379912     2019-08-07T02:52:11+02:00
.: Allopa Detaruso :.
=================================
Lukis: caznxjsz@gail.com:11238490324 
Pra Stimona: Fru
=================================
 
moka:/crypto.zip                                   380547     2019-08-07T02:50:07+02:00
.: Allopa Detaruso :.
=================================
Lukis: jvfvfdv2@gail.com:mdvdfv4443g117
Pra Stimona: Fru
=================================
 
moka:/wahsjras.zuk                                  379807     2019-08-07T02:58:33+02:00
.: Allopa Detaruso :.
=================================
Lukis: ldfvdfvd333n@hotmail.com:pdfdggjjytha
Pra Stimona: Fru
=================================
 
moka:/RECOVER.zip                                  380708     2019-08-07T02:59:03+02:00
.: Allopa Detaruso :.
=================================
Lukis: lfg55-u-kfhsksss@hotail.fw:kmsjdf773ove
Pra Stimona: Fru
=================================
 
moka:/[Dggf] 5675676575675 ''quarter'' intyjtjtj (Disc 1).mp4 5160256900 2015-11-09T23:17:16+01:00
moka:/[Dss33] ththytjhytbnb666575 ytjtyjyjngfnvgntry5656y5M) - fhfjjtmp4 832324875  2015-11-09T23:20:25+01:00
moka:/wahsjras.zuk                                  379957     2019-08-07T03:40:13+02:00
.: Allopa Detaruso :.
=================================
Lukis: deeferferi@gmail.com:jeferook343543525
Pra Stimona: Fru
=================================
 
moka:/[deanzel] Te576uytjgkuyiyui78/             0          2014-10-26T11:56:44+01:00

.: Allopa Detaruso :.
=================================
Lukis: pegfdgdgahsj_aryly@yahoo.com:cosjmcneyo109
Pra Stimona: Fru
=================================
</code></pre>
<p dir="auto">with reg-ex  (?-s)^(?!\h*[\w.\x20]+@).<em>\R?|^.</em>?\x20+<br />
all text is deleted.<br />
how to delete all excluding mail:password?<br />
(in line Lukis: have mail:passw)<br />
tanxs to everybody for your attention.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18858/delete-part-of-text</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:27:57 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18858.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Feb 2020 08:45:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to delete part of text on Mon, 03 Feb 2020 17:43:19 GMT]]></title><description><![CDATA[<p dir="auto">tanks for your wonderful reply.<br />
and i have already see your link about reg-ex documentation…<br />
but there is always little time to do what you want to do!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50292</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50292</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Mon, 03 Feb 2020 17:43:19 GMT</pubDate></item><item><title><![CDATA[Reply to delete part of text on Mon, 03 Feb 2020 15:26:59 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> and <strong>All</strong>,</p>
<p dir="auto">Well. Let’s imagine that you have a line, like below, with a lot of <strong>non-alphabetic</strong> symbols, which come <strong>before</strong> the <strong><code>@</code></strong> symbol :</p>
<pre><code class="language-diff">Lu&amp;kis: lf#g5%%5-u-kfhsksss@hotail.fw:kmsjdf773ove
</code></pre>
<p dir="auto">Then, in order that the <strong>e-mail</strong> address are considered as <strong>valid</strong> ( so that this line will <strong>not</strong> be deleted <strong>entirely</strong> ), my <strong>first</strong> regex syntax should be :</p>
<p dir="auto"><strong><code>(?-s)^(?!\h*[\w.:\x20&amp;#%-]+@).*\R?|^.*?\x20+</code></strong></p>
<p dir="auto">Simply because the line above has <strong><code>6</code></strong> <strong>non-alphabetic</strong> characters <strong><code>: &amp; # % - .</code></strong> and <strong>space</strong> ( <strong><code>\x20</code></strong> ), before the <strong><code>@</code></strong> symbol. Note that I put the <strong><code>-</code></strong> char at the <strong>end</strong> of the character class <strong><code>[....-]</code></strong>, because it has a <strong>special</strong> meaning if located at any <strong>other</strong> position of that structure !</p>
<p dir="auto">Now, if you use the <strong>second</strong> regex syntax :</p>
<p dir="auto"><strong><code>(?-s)^(?!\h*.+?@).*\R?|^.*?\x20+</code></strong></p>
<p dir="auto">This time, we don’t have to <strong>bother</strong> about possible <strong>non-alphabetic</strong> characters. Indeed, the part <strong><code>.+?</code></strong> (instead of <strong><code>[\w.:\x20&amp;#%-]+</code></strong>) will select the <strong>shortest</strong> non-null range of <strong>any standard</strong> character, till the <strong><code>@</code></strong> symbol !</p>
<p dir="auto">Follow this link to enter the <strong>magic</strong> world or regexes !</p>
<p dir="auto"><a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation">https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regex-documentation</a></p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50291</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50291</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 03 Feb 2020 15:26:59 GMT</pubDate></item><item><title><![CDATA[Reply to delete part of text on Mon, 03 Feb 2020 13:21:59 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much for your reply, guy038.<br />
your string wok fine!</p>
<p dir="auto">anyway i didn’t quite understand the difference between:<br />
(?-s)^(?!\h*[\w.:\x20-]+@).<em>\R?|^.</em>?\x20+<br />
and<br />
(?-s)^(?!\h*.+?@).<em>\R?|^.</em>?\x20+</p>
<p dir="auto">also first string seems to work well for my purpose…<br />
what is the difference between the two strings?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50278</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50278</guid><dc:creator><![CDATA[pinuzzu99]]></dc:creator><pubDate>Mon, 03 Feb 2020 13:21:59 GMT</pubDate></item><item><title><![CDATA[Reply to delete part of text on Mon, 03 Feb 2020 10:28:25 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> and <strong>All</strong>,</p>
<p dir="auto">In fact, the <strong>repeated</strong> character <strong>class</strong> of my regex : <strong><code>[\w.\x20]+</code></strong>, contains <strong>any</strong> character, which may appear <strong>before</strong> the <strong><code>@</code></strong> character of the <strong>e-mail</strong> address</p>
<p dir="auto">So, in order that, for instance, the line :</p>
<pre><code>Lukis: pampetet.marertey@yeto.com:cldfgdfgzo14430
</code></pre>
<p dir="auto">is considered as a line containing a <strong>valid</strong> e-mail address and, subsequently will <strong>not</strong> be deleted, you must <strong>add</strong> the <strong>colon</strong> character ( <strong><code>:</code></strong> ) to the character <strong>class</strong></p>
<p dir="auto">In the <strong>same</strong> way, if you want that the line :</p>
<pre><code>Lukis: lfg55-u-kfhsksss@hotail.fw:kmsjdf773ove
</code></pre>
<p dir="auto">is considered as a line containing a <strong>valid</strong> e-mail address and, subsequently will <strong>not</strong> be deleted, you must<br />
<strong>add</strong> the <strong>dash</strong> character ( <strong><code>-</code></strong> ) to the character <strong>class</strong>, giving the resulting <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(?-s)^(?!\h*[\w.:\x20-]+@).*\R?|^.*?\x20+</code></strong></p>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
<hr />
<p dir="auto">Now, if you suppose than an <strong>e-mail</strong> address can be <strong>preceded</strong> with <strong>any standard</strong> character, but <strong><code>@</code></strong>, simplify the <strong>search</strong> regex to the syntax, below :</p>
<p dir="auto"><strong><code>(?-s)^(?!\h*.+?@).*\R?|^.*?\x20+</code></strong></p>
<p dir="auto">After running <strong>one</strong> or <strong>another</strong> regex, you should get, from your <strong>example</strong>, the <strong>expected</strong> text :</p>
<pre><code class="language-diff">pampetet.marertey@yeto.com:cldfgdfgzo14430
capdfgdfnn44rz@gmail.com:1ertrete434
jadfgdf2@gail.com:mfdgfhg11444357
lfdhreyan@hofail.com:pipoqfdhghnha
lely-u-kildjss@hotkslail.fr:kedflgdfeove
ddfgdfgi@gail.com:jinyujyukyk304525
pytryrta.martyrly@yaplgo.com:crtytrghmgzo140
jvfvfdv2@gail.com:mdvdfv4443g117
ldfvdfvd333n@hotmail.com:pdfdggjjytha
lfg55-u-kfhsksss@hotail.fw:kmsjdf773ove
deeferferi@gmail.com:jeferook343543525
pegfdgdgahsj_aryly@yahoo.com:cosjmcneyo109
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50272</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50272</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 03 Feb 2020 10:28:25 GMT</pubDate></item></channel></rss>