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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta
http://www.houseoffusion.com/banners/view.cfm?bannerid=40
Message: http://www.houseoffusion.com/lists.cfm/link=i:21:831
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