<?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[[REGEX] Remove a section from a list.]]></title><description><![CDATA[<p dir="auto">Hey =)<br />
i have a big list of clan members, everything is like:</p>
<p dir="auto"><a href="mailto:CLANNAME:NICKNAME:EMAIL@EMAIL221.COM" rel="nofollow ugc">CLANNAME:NICKNAME:EMAIL@EMAIL221.COM</a>:DATE:YES/NO<br />
<a href="mailto:CLANNAME:NICKNAME:EMAIL@EMAIL233.COM" rel="nofollow ugc">CLANNAME:NICKNAME:EMAIL@EMAIL233.COM</a>:DATE:YES/NO<br />
<a href="mailto:CLANNAME:NICKNAME:EMAIL@EMAIL334.COM" rel="nofollow ugc">CLANNAME:NICKNAME:EMAIL@EMAIL334.COM</a>:DATE:YES/NO<br />
<a href="mailto:CLANNAME:NICKNAME:EMAIL@EMAIL554.COM" rel="nofollow ugc">CLANNAME:NICKNAME:EMAIL@EMAIL554.COM</a>:DATE:YES/NO</p>
<p dir="auto">I just want now to remove the “@Email.com” part in the whole list. From @ to the next : can anything be deleted. Problem is, there are many different email providers, so i cant just replace every one :-/. But i need the Email Name to generate a tournament Email just not the “@EmailProvider.com”<br />
Help would be amazing.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/13162/regex-remove-a-section-from-a-list</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 09:32:48 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/13162.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jan 2017 07:41:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [REGEX] Remove a section from a list. on Wed, 25 Jan 2017 18:55:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <strong>Dafug Xerath</strong>,</p>
<p dir="auto">Just to show that <strong>several</strong> regexes can achieve the same <strong>S/R</strong>, here is a <strong>second</strong> solution :</p>
<ul>
<li>
<p dir="auto">Open your file in Notepad++</p>
</li>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong>CTRL + H</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>Find what:</strong> field, type in <strong><code>@(?:.+?)(?=:)</code></strong></p>
</li>
<li>
<p dir="auto">Leave the <strong>Replace with:</strong> <strong><code>EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong>Regular expression</strong> search mode</p>
</li>
<li>
<p dir="auto">Finally, click on the <strong>Replace All</strong> button</p>
</li>
</ul>
<p dir="auto">Et voilà !</p>
<p dir="auto"><strong>NOTES</strong> :</p>
<ul>
<li>
<p dir="auto">This regex looks, <strong>first</strong>, for the <strong>literal</strong> character <strong><code>@</code></strong>.</p>
</li>
<li>
<p dir="auto">At the <strong>end</strong> of the regex, the part <strong><code>(?=:)</code></strong>, called a <strong>look-ahead</strong>, is a condition, that means that the <strong>overall</strong> match must be <strong>followed</strong> by a literal <strong>colon</strong> <strong><code>:</code></strong>.</p>
</li>
<li>
<p dir="auto">So, the <strong>inner middle</strong> part, <strong><code>.+?</code></strong>, tries to match the <strong>shortest</strong> range of <strong>any</strong> character between the <strong><code>@</code></strong> character, <strong>included</strong> and the <strong><code>:</code></strong> character, <strong>excluded</strong>.</p>
</li>
<li>
<p dir="auto">The symbol <strong><code>+</code></strong> is a <strong>quantifier</strong> that means a <strong>maximum</strong> of characters, from <strong>1 to n</strong> and the symbol <strong><code>?</code></strong>, after the quantifier <strong><code>+</code></strong>, forces the regex engine to select the <strong>minimum</strong> range of <strong>any</strong> character, between the limits <strong><code>@</code></strong> and <strong><code>:</code></strong></p>
</li>
<li>
<p dir="auto">As this <strong>range</strong> of characters is included in the syntax <strong><code>(?: .... )</code></strong>, this means that the range, of <strong>each</strong> line, will <strong>NOT</strong> be stored for <strong>later</strong> use, either in the <strong>Find</strong> or <strong>Replace</strong> regexes.</p>
</li>
<li>
<p dir="auto">Finally, as the <strong>Replace</strong> dialog is <strong>empty</strong>, this range is just <strong>deleted</strong>, from each line !</p>
</li>
</ul>
<hr />
<p dir="auto">Beware : if you prefer to use the <strong>abelfourier</strong>’s search regex, the <strong>correct</strong> regex is, obviously :</p>
<p dir="auto"><strong><code>@(?:[^.]+)\.COM</code></strong></p>
<p dir="auto">You’ll have to <strong>uncheck</strong> the <strong>Match case</strong> option</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21243</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 25 Jan 2017 18:55:29 GMT</pubDate></item><item><title><![CDATA[Reply to [REGEX] Remove a section from a list. on Wed, 25 Jan 2017 07:55:30 GMT]]></title><description><![CDATA[<p dir="auto">@(?:[^.]+)\.COM   #case insensitive</p>
]]></description><link>https://community.notepad-plus-plus.org/post/21210</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/21210</guid><dc:creator><![CDATA[abelfourier]]></dc:creator><pubDate>Wed, 25 Jan 2017 07:55:30 GMT</pubDate></item></channel></rss>