This regex has always worked well for me.
([[:alnum:]_\.\-]+@([[:alnum:]_\.\-]+\.)+[[:alpha:]]{2,4})
I didn't write this and am not positive who did. I want to say I got it from
Jim Davis or something he wrote but I'm not positive.
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-----Original Message-----
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 3:26 PM
To: CF-Talk
Subject: Suggestions wanted
I'm looking for some suggestions on the best way to get email addresses
from a string that looks like this:
"Rick Root" <[EMAIL PROTECTED]>
or
"Rick Root" <[EMAIL PROTECTED]>,"Root, Rick"
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
Ultimately, the latter should return an array or email addresses.
To the best of my knowledge, all email addresses will be contained in <>'s.
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:219825
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54