With all the new top level domains available now (), you are better with a
regex that matches by size, instead of adding specific strings beyond 3 or
4 characters.

Just change the {2,4} to something like {2,254}, which should fairly
"future" proof the regex.

I believe the RFC for DNS has a maximum length of 253 for a domain, while
the RFC for an email address is 254 for max length.

http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#ICANN-era_generic_top-level_domains

http://en.wikipedia.org/wiki/Email_address

Interesting to note, that many special characters are allowed in the local
part and IPV4 and IPV6 addresses are allowed for the domain part of an
email address. The first regex Robert provided will handle most typical
email addresses however.

I don't think I've seen an email with an IP domain in like forever, but if
IPV6 every takes hold, it's very possible it would become typical at some
point.

~Byron


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359970
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to