Ok.. then try this...

<!--- create list --->
<cfset variables.exampleList = "Boat,Goat,Moat,CherryPie">

<cfset changedlist=ReplaceNoCase("#variables.exampleList#","oat","%")>

<!--- output only the words that contain "oat" --->
<cfloop list="#ChangedList#" index="i" delimiters="%">
<cfset NewI=ReplaceNoCase("#changedlist#","%","oat")>
       #NewI#
</cfloop>

It's a bit of a kludge, but it should work if I understand the problem
correctly.

On Thu, Feb 11, 2010 at 2:06 PM, Paul Alkema
<paulalkemadesi...@gmail.com> wrote:
>
> Good idea, but unfortunately it didn't work. Thanks though. :)
>
> -----Original Message-----
> From: Phillip Vector [mailto:vec...@mostdeadlygame.com]
> Sent: Thursday, February 11, 2010 5:00 PM
> To: cf-talk
> Subject: Re: Cfloop List Multiple Charecter Delimiters
>
>
> I don't know if it would work and I'm shooting in the dark, but if you
> made "oat" into a variable, would that work?
>
> On Thu, Feb 11, 2010 at 1:57 PM, Paul Alkema
> <paulalkemadesi...@gmail.com> wrote:
>>
>> Hey all,
>> I have a list that I'm trying to loop, I was wondering if it was possible
> to
>> have multiple character delimiter.
>>
>> For example..
>>
>> <!--- create list --->
>> <cfset variables.exampleList = "Boat,Goat,Moat,CherryPie">
>>
>> <!--- output only the words that contain "oat" --->
>> <cfloop list="#variables.exampleList#" index="i" delimiters="oat">
>>        #i#
>> </cfloop>
>>
>>
>> I would like something like the above to work, but instead it outputs all
>> that contain a B,O,A or a T.
>>
>> Any ideas? :)
>>
>> Thanks,
>> Paul
>>
>>
>>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330630
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