<?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"
	>
<channel>
	<title>Comments on: Check Email Address with JavaScript and Regular Expressions</title>
	<atom:link href="http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/</link>
	<description>conversation and resources on marketing, social media, development, and wordpress</description>
	<pubDate>Fri, 29 Aug 2008 02:56:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: gemp</title>
		<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/#comment-189833</link>
		<dc:creator>gemp</dc:creator>
		<pubDate>Thu, 07 Aug 2008 14:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/#comment-189833</guid>
		<description>There's much simpler way to write the expression:
&lt;code&gt;var regex = /^[a-z0-9\._-]+@([a-z0-9_-]+\.)+[a-z]{2,6}$/i;&lt;/code&gt;
- With the final modifier /i there's no need to indicate the upper case range.
- I don't know of any &lt;acronym&gt;TLD&lt;/acronym&gt; with numbers in it.
On a side note, I do allow TLD with up to 6 chars; new ones arrive regularly and you never know (well, somme future ones may even have numbers in it, I know).</description>
		<content:encoded><![CDATA[<div class="KonaBody">There&#8217;s much simpler way to write the expression:<br />
<code>var regex = /^[a-z0-9\._-]+@([a-z0-9_-]+\.)+[a-z]{2,6}$/i;</code><br />
- With the final modifier /i there&#8217;s no need to indicate the upper case range.<br />
- I don&#8217;t know of any <acronym>TLD</acronym> with numbers in it.<br />
On a side note, I do allow TLD with up to 6 chars; new ones arrive regularly and you never know (well, somme future ones may even have numbers in it, I know).</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Android</title>
		<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/#comment-181477</link>
		<dc:creator>Android</dc:creator>
		<pubDate>Thu, 24 Jul 2008 10:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/#comment-181477</guid>
		<description>Perfect, just what I needed!</description>
		<content:encoded><![CDATA[<div class="KonaBody">Perfect, just what I needed!</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Douglas Karr</title>
		<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/#comment-61744</link>
		<dc:creator>Douglas Karr</dc:creator>
		<pubDate>Fri, 02 Nov 2007 15:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/#comment-61744</guid>
		<description>Hi Reg,

You can test out the Regex utilizing an &lt;a href="http://www.quanetic.com/regex.php"&gt;Online Regex Tester&lt;/a&gt;.

Also, there's definitely much more that can be done if you want to ensure an &lt;a href="http://www.douglaskarr.com/2006/12/06/valid-email-address-length/"&gt;email address&lt;/a&gt; is valid in accordance with the RFC.  

There are a few reasons not to allow someone to enter an invalid email address:
1.  They will get annoyed at you when the email they expected doesn't get through - regardless of whether or not it was your fault the address was entered incorrectly.
2.  If com.museum was a valid domain and, let's say, Yahoo! operated it - any email address that bounced would have a negative impact on your company's reputation for email delivery.  This could lead to all of your company's email being blocked.
3.  If your email service provider allowed you to enter bob@com.museum, you'd also pay for each email sent to that email address until they unsubscribed that address due to bounces.  I would steer clear of any ESP that would allow an invalid email address like that - they're just taking your money!

Thanks for stopping by!
Doug</description>
		<content:encoded><![CDATA[<div class="KonaBody">Hi Reg,</p>
<p>You can test out the Regex utilizing an <a href="http://www.quanetic.com/regex.php">Online Regex Tester</a>.</p>
<p>Also, there&#8217;s definitely much more that can be done if you want to ensure an <a href="http://www.douglaskarr.com/2006/12/06/valid-email-address-length/">email address</a> is valid in accordance with the RFC.  </p>
<p>There are a few reasons not to allow someone to enter an invalid email address:<br />
1.  They will get annoyed at you when the email they expected doesn&#8217;t get through - regardless of whether or not it was your fault the address was entered incorrectly.<br />
2.  If com.museum was a valid domain and, let&#8217;s say, Yahoo! operated it - any email address that bounced would have a negative impact on your company&#8217;s reputation for email delivery.  This could lead to all of your company&#8217;s email being blocked.<br />
3.  If your email service provider allowed you to enter <a href="mailto:bob@com.museum">bob@com.museum</a>, you&#8217;d also pay for each email sent to that email address until they unsubscribed that address due to bounces.  I would steer clear of any ESP that would allow an invalid email address like that - they&#8217;re just taking your money!</p>
<p>Thanks for stopping by!<br />
Doug</p></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reg Braithwaite</title>
		<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/#comment-61675</link>
		<dc:creator>Reg Braithwaite</dc:creator>
		<pubDate>Fri, 02 Nov 2007 03:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/#comment-61675</guid>
		<description>I like the idea, but I would be hesitant to adopt this particular regular expression without description of which legal email addresses it does not accept and which illegal addresses it permits.

For an example of a regular expression that does a decent job alongside an explanation of which cases it does not cover, see this:

http://www.regular-expressions.info/email.html

My personal preference is to cover most of the simple cases and issue a warning for everything else rather than rejecting it. If Bob really want sto submit bob@com.museum rather than bob@museum.com, why not let him?</description>
		<content:encoded><![CDATA[<div class="KonaBody">I like the idea, but I would be hesitant to adopt this particular regular expression without description of which legal email addresses it does not accept and which illegal addresses it permits.</p>
<p>For an example of a regular expression that does a decent job alongside an explanation of which cases it does not cover, see this:</p>
<p><a href="http://www.regular-expressions.info/email.html" rel="nofollow">http://www.regular-expressions.info/email.html</a></p>
<p>My personal preference is to cover most of the simple cases and issue a warning for everything else rather than rejecting it. If Bob really want sto submit <a href="mailto:bob@com.museum">bob@com.museum</a> rather than <a href="mailto:bob@museum.com">bob@museum.com</a>, why not let him?</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chipping the web - simple, not secure -- Chip&#8217;s Quips</title>
		<link>http://www.marketingtechblog.com/2007/10/28/javascript-regex-emailaddress/#comment-61624</link>
		<dc:creator>Chipping the web - simple, not secure -- Chip&#8217;s Quips</dc:creator>
		<pubDate>Thu, 01 Nov 2007 20:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.douglaskarr.com/2007/10/28/javascript-regex-emailaddress/#comment-61624</guid>
		<description>[...] posted a tip on checking email addresses in Javascript using regular expressions, and then Ade improved on it in a comment showcasing Prototype&#8217;s $$ [...]</description>
		<content:encoded><![CDATA[<div class="KonaBody">[...] posted a tip on checking email addresses in Javascript using regular expressions, and then Ade improved on it in a comment showcasing Prototype&#8217;s $$ [...]</div>
]]></content:encoded>
	</item>
</channel>
</rss>
