This expression returns only the email address in Rick's sample string: <cfset regex = "[EMAIL PROTECTED]">
<cfset mystring = 'Rick Root" <[EMAIL PROTECTED]>,"Matthews, Andy" <[EMAIL PROTECTED]>'> When I said ignore the brackets, I just meant forget using them as a delimiter. He stated "To the best of my knowledge" that all emails would be in brackets. But what if you come across one that isn't in brackets. Better to get JUST the email based on spaces. I'm trying to figure out the best way to pull all the emails from that string using that regex. More to come hopefully. <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: Steve Milburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 2:57 PM To: CF-Talk Subject: RE: Suggestions wanted 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4:219506 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

