This code permits addresses like "[EMAIL PROTECTED]" and "[EMAIL PROTECTED]".  Are they
valid?  Which leads me to the question:  where can I find the specs for what
characters are allowed in what places in a properly formatted email address?
I looked through the RFCs but couldn't find this--or maybe I didn't look in
the right ones.  Can anybody point me in the right direction?

Thanks,
Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


-----Original Message-----
From: Joseph Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 7:03 PM
To: CF-Talk
Subject: Re: Best e-mail regex?


Erik Voldengen  sent this one to the list a while back:

It handles "multiple top levels", checks for valid "root domains", disallows
double @@ and will ensure that the email address contains just
"alphanumeric" characters.

Very nice piece of work!

<cfset email_address="[EMAIL PROTECTED]">

<cfif
REFindNocase("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z
]{2,3})|(aero|coop|info|museum|name))$",email_address)>
good..
<cfelse>
bad..
</cfif>


______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to