How about 
Looping over the email listing and doing a 
Thisemail = mid([fullemail], find("<", [fullemail]) + 1, len([fullemail] -
1)
Basically you are saying that the 'true email' is between '<' and '>'.

I am certain that there is probably a much faster regexp for this, but this
is what comes to me right away.

William

-- 
William E. Seiter
 
Have you ever read a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
 
Web Developer 
http://William.Seiter.com

-----Original Message-----
From: Nate Willard [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 13, 2008 9:51 AM
To: CF-Talk
Subject: Email Validation Question, Possible RegEx required?

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:296510
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to