Erik Voldengen sent this 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to