That's awesome, thanks Ian, runs great now :)

Jenny

-----Original Message-----
From: Ian Skinner [mailto:[email protected]]
Sent: 05 April 2011 17:57
To: cf-talk
Subject: Re: replacelist question



On 4/5/2011 9:46 AM, Jenny Gavin-Wear wrote:
> <Cfset session.realSearch = lcase(replacelist(session.realSearch, "and,
or,
> in, of, at, it, the, on", ""))>

What you probably want is:

<Cfset session.realSearch = lcase(replacelist(session.realSearch,
"and,or,in,of,at,it,the,on", " "))>

Assuming you do NOT want to replace these strings when they are part of
larger words.






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343560
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to