If you forget about the brackets and go until you encounter a space, and the brackets are there, you will be an incorrect email.
You would have <[EMAIL PROTECTED]> instead of [EMAIL PROTECTED] Good idea, Andy, but if you don't count for the brackets, your results will probably be wrong. The best way might be to proceed in both directions until you encounter a space OR a bracket, and stop at either one. Steve -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 3:44 PM To: CF-Talk Subject: RE: Suggestions wanted I'd actually forget the brackets (just in case). Work backwards from the knowledge that no email address can have a space in it, and ALL emails MUST have an @ symbol. Then return anything on either side of the @ symbol until you encounter a space. I'll see if I can come up with something for you. <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 2: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:219504 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

