Here's the one I made:

if (
  Len(ARGUMENTS.Text) AND
  REFindNoCase("[EMAIL PROTECTED],10}",
ARGUMENTS.Text) AND
  (NOT REFindNoCase("(^(\.|-))", ARGUMENTS.Text)) AND
   (NOT REFindNoCase("(\.{2,})|(-{2,})", ARGUMENTS.Text)) AND
   (NOT REFindNoCase("([\.\-]+@)|(@[\.\-]+)|(\.-)|(-\.)", ARGUMENTS.Text))
        ){
        // This string is an email address. 
        return(1);                      
} else {
        // This string does not match a valid email address.
        return(0);
}               


.......................
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

"Vote for Pedro"

-----Original Message-----
From: Marlon Moyer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 6:11 PM
To: CF-Talk
Subject: The be-all-end-all of email regex's

Anyone have a regex that will validate email addresses that look like such:

[EMAIL PROTECTED]
"Me Here" <[EMAIL PROTECTED]>

and also be able to validate multiple email addy's at once like:

[EMAIL PROTECTED], "Me Here" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

Thanks



--
Marlon

A spaceman came travelling on his ship from afar,
'twas light years of time since his mission did start,
And over a village he halted his craft,
And it hung in the sky like a star, just like a star...
--Chris De Burgh, A Spaceman Came Travelling



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226400
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to