replacelist question

2011-04-05 Thread Jenny Gavin-Wear
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

re: replacelist question

2011-04-05 Thread Jason Fisher
Per the documentation, the match is case-sensitive. From: Jenny Gavin-Wear jenn...@fasttrackonline.co.uk Sent: Tuesday, April 05, 2011 12:47 PM To: cf-talk cf-talk@houseoffusion.com Subject: replacelist question Hi all, I'm using the following to strip

Re: replacelist question

2011-04-05 Thread Ian Skinner
On 4/5/2011 9:46 AM, Jenny Gavin-Wear wrote: I can't understand how the is not replaced when it is the first word in the list. When the word is at the beginning of the string it DOES NOT have a white space character in front of it. Your list is including a white space character in front of

Re: replacelist question

2011-04-05 Thread Ian Skinner
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

RE: replacelist question

2011-04-05 Thread Jenny Gavin-Wear
That's awesome, thanks Ian, runs great now :) Jenny -Original Message- From: Ian Skinner [mailto:h...@ilsweb.com] 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

RE: replacelist question

2011-04-05 Thread Bobby Hartsfield
, 2011 12:52 PM To: cf-talk Subject: re: replacelist question Per the documentation, the match is case-sensitive. From: Jenny Gavin-Wear jenn...@fasttrackonline.co.uk Sent: Tuesday, April 05, 2011 12:47 PM To: cf-talk cf-talk@houseoffusion.com Subject