Hi Mike it works on all but the last index.

Thanks for the script.

Mike Townend wrote:
> <CFSCRIPT>
> function ExtractEmail(sString)
> {
>     return trim(ReReplace(sString, ".*<([^>]*)>.*", "\1"));
> }
> </CFSCRIPT>
> <CFSET lstEmails = '[EMAIL PROTECTED],<[EMAIL PROTECTED]>,DisplayName
> <[EMAIL PROTECTED]>,"DisplayName" <[EMAIL PROTECTED]>,[EMAIL PROTECTED] (DisplayName)'>
>
> <CFLOOP LIST="#lstEmails#" INDEX="idxFoo">
>     <CFOUTPUT>#ExtractEmail(idxFoo)#</CFOUTPUT><BR>
> </CFLOOP>
>
> works fine on all but the last entry, I havnt come across any of ours
> that had that format so havnt worried about it :)
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to