RE: replacelist question
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:ja...@wanax.com] 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" Sent: Tuesday, April 05, 2011 12:47 PM To: "cf-talk" Subject: replacelist question Hi all, I'm using the following to strip unwanted words from a phrase:- 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
RE: replacelist question
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: > in, of, at, it, the, on", ""))> What you probably want is: 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
Re: replacelist question
On 4/5/2011 9:46 AM, Jenny Gavin-Wear wrote: > in, of, at, it, the, on", ""))> What you probably want is: 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:343550 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: replacelist question
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 each word. ALL the characters between the comma's count, even the invisible ones. ~| 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:343549 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
re: replacelist question
Per the documentation, the match is case-sensitive. From: "Jenny Gavin-Wear" Sent: Tuesday, April 05, 2011 12:47 PM To: "cf-talk" Subject: replacelist question Hi all, I'm using the following to strip unwanted words from a phrase:- 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:343548 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm