I Actually read it wrong anyway because I read it that every single space within the string needed to be replaced with a dash, so three spaces next to each other would be three dashes.
On 10/18/07, morgan l <[EMAIL PROTECTED]> wrote: > > Only if ending spaces were intended to be dashes, which I understood to > not > be the case (as the original code would have done that, and was apparently > wrong, according to the original message). > > On 10/18/07, Aaron Rouse <[EMAIL PROTECTED]> wrote: > > > > 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/ > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291488 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

