after turning all the spaces into dashes, you can do a while loop looking for double dashes and turning them into single dashes...
-----Original Message---- -From: [EMAIL PROTECTED] -Date: Oct 18, 2007 13:41 -To: "CF-Talk"<[email protected]> -Subj: Re: Replace spaces with dashes - -Problem with trim is it gets rid of the spaces that should have been turned -into dashes. - -On 10/18/07, morgan l <[EMAIL PROTECTED]> wrote: -> -> Trim(String) will get rid of leading or trailing spaces. You may need a -> RegEx and use ReReplace() if you want to replace multiple connsecutive -> spaces with just a single dash though. RegEx is not my bag, so I can't -> help -> with specifics. -> -> - --- -Aaron Rouse -http://www.happyhacker.com/ - - - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291474 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

