Once you've broken the list into individual elements, I'd use something 
like:

email = rereplace(element, '.*<(.*?)>', '\1')

This replaces everything before the open bracket, the open bracket, and 
the end bracket with just what is in between the brackets.

--Ben Doom

Nate Willard wrote:
> Morning,
> 
> I'm currently working to add an address book importer
> (PLAXO) to a site. The address book importer returns
> the emails in the input box as follows: "FNAME LNAME"
> <[EMAIL PROTECTED]>, "FNAME LNAME" <[EMAIL PROTECTED]>,
> "FNAME LNAME" <[EMAIL PROTECTED]>,
> 
> I'd like to come up with a way to take that input and
> CFMAIL out to the user's inputted addresses. Problem
> is, isValid(email) will reject everything above.
> 
> I think what needs to happen is I need to delete
> everything between the brackets including the
> brackets, and then take just what is between the
> quotes, leaving [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED]
> 
> Which I can then cfloop through a cftry and mail
> out...
> 
> Would that work? Can anyone suggest a better way to
> handle this situation. If that would work how would I
> go about doing that?
> 
> Thanks,
> N
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296528
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to