Rates
Sign Up
Support
ContactUs

CF_StripEmail

Parse valid email addresses from a string and return them in an array.

SYNTAX:

<CF_StripEmail
      input="email addresses:  name@domain.com and other@long.domain.name.com"
      output="EmailArray"
      display="yes">

<cfoutput>

      Found #ArrayLen(EmailArray)# email addresses.<br>

      <cfloop index="count" from="1" to="#ArrayLen(EmailArray)#">
            Email Address #count#:  #EmailArray[count]#<br>      
      </cfloop>

</cfoutput>

ATTRIBUTES:

Input
Required. String to be checked for email addresses.

Output
Required. Name of array into which email addresses will be placed.

Display
Optional. Display results of operation. Used for debugging. Value of this attribute is irrelevant. To disable debugging information, remove this attribute.