That and "the" is not the same as " the". All of the list items start with a
space except for the first item... "and"


.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-----Original Message-----
From: Jason Fisher [mailto:[email protected]] 
Sent: Tuesday, April 05, 2011 12:52 PM
To: cf-talk
Subject: re: replacelist question


Per the documentation, the match is case-sensitive.

----------------------------------------

From: "Jenny Gavin-Wear" <[email protected]>
Sent: Tuesday, April 05, 2011 12:47 PM
To: "cf-talk" <[email protected]>
Subject: replacelist question

Hi all,

I'm using the following to strip unwanted words from a phrase:-

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

results are:-

Book The =>
Book

The Book =>
The Book

I can't understand how "the" is not replaced when it is the first word in
the list.

Could someone tell me what's wrong, please?

Jenny
No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 9.0.894 / Virus Database: 271.1.1/3550 - Release Date: 04/04/11
19:35:00





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:343565
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to