<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: What is a valid email address?</title>
	<atom:link href="/posts/what-is-a-valid-email-address/feed" rel="self" type="application/rss+xml" />
	<link>http://hm2k.com/posts/what-is-a-valid-email-address</link>
	<description>The research of an internet entrepreneur and IT consultant</description>
	<pubDate>Mon, 22 Dec 2008 23:00:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: PHP Email Validator &#124; Isusx's Programming Corner</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-126653</link>
		<dc:creator>PHP Email Validator &#124; Isusx's Programming Corner</dc:creator>
		<pubDate>Wed, 10 Dec 2008 17:00:03 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-126653</guid>
		<description>[...] Links About Email Address PHP What is a Valid Email Address? PHP:Checkdnsrr function manual   Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] Links About Email Address PHP What is a Valid Email Address? PHP:Checkdnsrr function manual   Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hm2k</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-105976</link>
		<dc:creator>hm2k</dc:creator>
		<pubDate>Thu, 02 Oct 2008 12:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-105976</guid>
		<description>Yes, there's testing a regex, then there's testing it against real life.

The reality is that ’.’ IS allowed just before '@';
You will find that using quotes in an email address will simply be rejected by the mail server;
As for the double dot in the domain, that's a separate issue that shouldn't really be handled by this regex.

I use mailinator.com and my own setup to do test cases. This tells me if the email address is valid or not as the RFC specification is not reliable enough.

Domain names can be checked using validation, you only need a basic check.

Look at the length of the regex i've provided, and the regex provided by regular-expressions.info, the length is ridiculous for such a simple task.

Remember, regex along CANNOT define a valid email address, there is no "ultimate" regex, you need to use other systems for validation.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Yes, there&#8217;s testing a regex, then there&#8217;s testing it against real life.</p>
<p>The reality is that ’.’ IS allowed just before &#8216;@&#8217;;<br />
You will find that using quotes in an email address will simply be rejected by the mail server;<br />
As for the double dot in the domain, that&#8217;s a separate issue that shouldn&#8217;t really be handled by this regex.</p>
<p>I use mailinator.com and my own setup to do test cases. This tells me if the email address is valid or not as the RFC specification is not reliable enough.</p>
<p>Domain names can be checked using validation, you only need a basic check.</p>
<p>Look at the length of the regex i&#8217;ve provided, and the regex provided by regular-expressions.info, the length is ridiculous for such a simple task.</p>
<p>Remember, regex along CANNOT define a valid email address, there is no &#8220;ultimate&#8221; regex, you need to use other systems for validation.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikkel</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-105961</link>
		<dc:creator>Mikkel</dc:creator>
		<pubDate>Thu, 02 Oct 2008 11:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-105961</guid>
		<description>This seems to be more right:

(?:[a-z\d!#$%&#38;'*+/=?^_`{&#124;}~-]+(?:\.[a-z\d!#$%&#38;'*+/=?^_`{&#124;}~-]+)*&#124;"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]&#124;\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z\d](?:[a-z\d-]*[a-z\d])?\.)+[a-z\d](?:[a-z\d-]*[a-z\d])?&#124;\[(?:(?:25[0-5]&#124;2[0-4][\d]&#124;[01]?[\d][\d]?)\.){3}(?:25[0-5]&#124;2[0-4][\d]&#124;[01]?[\d][\d]?&#124;[a-z\d-]*[a-z\d]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]&#124;\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])

Found it at http://www.regular-expressions.info/email.html and replaced 0-9 with \d</description>
		<content:encoded><![CDATA[<p>This seems to be more right:</p>
<p>(?:[a-z\d!#$%&amp;'*+/=?^_`{|}~-]+(?:\.[a-z\d!#$%&amp;'*+/=?^_`{|}~-]+)*|&#8221;(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*&#8221;)@(?:(?:[a-z\d](?:[a-z\d-]*[a-z\d])?\.)+[a-z\d](?:[a-z\d-]*[a-z\d])?|\[(?:(?:25[0-5]|2[0-4][\d]|[01]?[\d][\d]?)\.){3}(?:25[0-5]|2[0-4][\d]|[01]?[\d][\d]?|[a-z\d-]*[a-z\d]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])</p>
<p>Found it at <a href="http://www.regular-expressions.info/email.html" rel="nofollow" onclick="javascript:urchinTracker ('/outbound/comment/www.regular-expressions.info');">http://www.regular-expressions.info/email.html</a> and replaced 0-9 with \d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikkel</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-105954</link>
		<dc:creator>Mikkel</dc:creator>
		<pubDate>Thu, 02 Oct 2008 10:54:17 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-105954</guid>
		<description>Very nice code, but it seems to me, that the following examples will still be validated wrong:

test.@test.com ('.' is not allowed just before '@')
"test \"test\" test"@test.com ('\"' is allowed inside quotation)
test@test..test.com ('..' is not allowed)

Anyone who disagrees - or who can solve this?</description>
		<content:encoded><![CDATA[<p>Very nice code, but it seems to me, that the following examples will still be validated wrong:</p>
<p><a href="mailto:test.@test.com">test.@test.com</a> (&#8217;.&#8217; is not allowed just before &#8216;@&#8217;)<br />
&#8220;test \&#8221;test\&#8221; test&#8221;@test.com (&#8217;\&#8221;&#8216; is allowed inside quotation)<br />
test@test..test.com (&#8217;..&#8217; is not allowed)</p>
<p>Anyone who disagrees - or who can solve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Email Validator &#124; Code Centre</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-105697</link>
		<dc:creator>PHP Email Validator &#124; Code Centre</dc:creator>
		<pubDate>Wed, 01 Oct 2008 15:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-105697</guid>
		<description>[...] Links About Email Address PHP What is a Valid Email Address? PHP:Checkdnsrr function [...]</description>
		<content:encoded><![CDATA[<p>[...] Links About Email Address PHP What is a Valid Email Address? PHP:Checkdnsrr function [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code Centre</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-105696</link>
		<dc:creator>Code Centre</dc:creator>
		<pubDate>Wed, 01 Oct 2008 15:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-105696</guid>
		<description>Wow, I am quite surprised that you can give a very detailed information about valid email address. Actually, I am working to generate a function to validate email address. So, this article of yours is really helpful

Thanx</description>
		<content:encoded><![CDATA[<p>Wow, I am quite surprised that you can give a very detailed information about valid email address. Actually, I am working to generate a function to validate email address. So, this article of yours is really helpful</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://hm2k.com/posts/what-is-a-valid-email-address/comment-page-1#comment-91362</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 15 Aug 2008 17:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://hm2k.com/?p=205#comment-91362</guid>
		<description>Thank you for your effort.  It was a nice read and made practical sense to me.</description>
		<content:encoded><![CDATA[<p>Thank you for your effort.  It was a nice read and made practical sense to me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
