<cfset myList = "apple,,banana,,orange" /> <cfset myList = replace(myList, ',,', ', ,', 'all')>
replace consecutive commas with a comma-space-comma. suppose a regex would be better than the above tho so as to handle any number of consecutive commas. On 9/15/05, Aaron Rouse <[EMAIL PROTECTED]> wrote: > There is a UDF on cflib that handles this. > > On 9/15/05, Rick Root <[EMAIL PROTECTED]> wrote: > > > > In the real world, the following list has 5 items: > > > > "apple,,banana,,orange" > > > > Of course, in Coldfusion, it only has 3. > > > > What are you all doing to work around this kind of thing? > > > > Rick > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218456 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

