Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListFind -- Correct Syntax for Multiple Delimiters. 1

Status
Not open for further replies.

rockyroad

Programmer
Feb 22, 2003
191
US
Hello All

Can anyone provide an example of a ListFind statement using multiple delimiters?

For example

#ListContains(sting, "substring", "delimiter")#

but with two or more delimiters? I have tried but failed with my syntax several times.

Thank You

RR [yinyang]
 
PS I realize my statement began ListConatins()...

but I think the syntax I am looking for should apply to both functions..?

Thanks!
 
Separate each delimiter by a comma.

Example:

<cfset locTempList="This,is!a^multiple&delimited*list">

<cfoutput>
<cfloop list="#locTempList#" delimiters=",,!,^,&,*" index="i">
#i#<br>
</cfloop>
</cfoutput>

Note: The delimiters in the above example are:
comma
exclamataion
caret
ampersand
asterisk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top