I use a number of different things based on where it's needed. The below
looks good, while not being 100% RFC compliant (the RFC does not specify
that an address has to start with a letter)
Also, the extension at the end is not 100% valid as there are domain
extensions of more than 4 letters (museum).
As I'm cleaning up my code and putting it into full CFMX and CF-OO, I'll
start posting my functions up. I have not done so in the past due to lack of
documentation. At least documentation meant for others. :)

> Thanks Ben. I wonder what Mike uses?
> 
> -----Original Message-----
> From: Ben Doom [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 21, 2005 2:38 PM
> To: RegEx
> Subject: Re: Bulletproof Email Regex
> 
> I think this is what we ended up with after the last round of discussions:
> 
> ^[a-zA-Z]([.]?([[:alnum:]_-]+)*)?@([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$
> 
> It's in my notes, and is very similar to what I'm using (which is a
> somewhat less efficient version of this).  I've not updated under the
> "ain't broke, don't fix" theory of life.
> 
> Anyway, I can't guarantee it's bulletproof, but it should be pretty good.
> 
> --Ben
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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

Reply via email to