This worked perfectly.

Thanks.

============================================
Gary L. Alford
Supplier Product Assurance
Bell Helicopter Textron
Phone: (817) 280-6233
Fax: (817) 278-6233
mailto:[EMAIL PROTECTED]
============================================


-----Original Message-----
From: Ronald-Thomas [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 7:54 AM
To: [EMAIL PROTECTED]
Subject: RE: Evaluating a String


If the list has a standard set of delimiters, read your list into a
variable, then list loop through with a simple if/else

<cfloop list="YourList" delimiters="delimeter" index="LoopIndex">
<cfif FindNoCase("@",  listGetAt( YourList, LoopIndex, "delimiter"))>
                This is an E-mail address
<cfelse>
                This is not an E-mail Address
</cifif>
</cfloop>

- rt


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Alford, Gary
Sent: Friday, February 22, 2002 6:14 AM
To: DFW ColdFusion Users Group (E-mail)
Subject: Evaluating a String

I have a list of e-mail addresses and web site addresses.

How do I
        1) evaluate the string to determine if there is an "@" symbol to
differentiate between e-mail and web site and
        2) if it evaluates to an e-mail address, perform a character count
for everything prior to the "@" symbol?

============================================
Gary L. Alford
Supplier Product Assurance
Bell Helicopter Textron
Phone: (817) 280-6233
Fax: (817) 278-6233
mailto:[EMAIL PROTECTED]
============================================


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to