<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: Authlib Regular Expression Bug</title><link href="https://sourceforge.net/p/authlib/support-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/authlib/support-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/authlib/support-requests/2/</id><updated>2001-05-03T10:49:10Z</updated><subtitle>Recent changes to 2: Authlib Regular Expression Bug</subtitle><entry><title>Authlib Regular Expression Bug</title><link href="https://sourceforge.net/p/authlib/support-requests/2/" rel="alternate"/><published>2001-05-03T10:49:10Z</published><updated>2001-05-03T10:49:10Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net246dabb793a9ea3d1a037cc5d7de9234afc24e05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We have found the following error in the regular &lt;br /&gt;
expression used to check validity of email addresses. &lt;br /&gt;
The original code is:&lt;/p&gt;
&lt;p&gt;if (!eregi(&amp;amp;quot;^([a-z0-9]+)([._-]([a-z0-9]+))*[@]([a-z0-9]&lt;br /&gt;
+)([._-]([a-z0-9]+))*[.]([a-z0-9]){2}([a-z0-9])?$&amp;amp;quot;, &lt;br /&gt;
$email)) {&lt;/p&gt;
&lt;p&gt;And should be, in our belief:&lt;/p&gt;
&lt;p&gt;if (!eregi(&amp;amp;quot;^([a-z0-9]+)([._-]([a-z0-9]*))*[@]([a-z0-9]&lt;br /&gt;
+)([._-]([a-z0-9]+))*[.]([a-z0-9]){2}([a-z0-9])?$&amp;amp;quot;, &lt;br /&gt;
$email)) {&lt;/p&gt;
&lt;p&gt;So that this address, as an example, is accepted:&lt;/p&gt;
&lt;p&gt;Quentin_@hotmail.com&lt;/p&gt;
&lt;p&gt;The suggested change is the '*' instead of the '+', &lt;br /&gt;
before the '@'.&lt;/p&gt;
&lt;p&gt;Great script, anyways! :)&lt;/p&gt;
&lt;p&gt;Urko Masse&lt;br /&gt;
umasse@arista.es&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>