This appears to work for me: <cfset string = rereplace(string,"( +)"," ","all")>
-------- Original Message -------- Subject: Remove multple EXTRA spaces from string From: "UXB Internet" <denn...@uxbinternet.com> Date: Fri, April 23, 2010 3:26 pm To: cf-talk <cf-talk@houseoffusion.com> I am having a senior moment and can't for the life of me figure this dumb thing out. I am trying to remove all "extra" spaces from a string but leave the single space there. Example: var="this has many extra spaces" and return with "this has many extra spaces" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333112 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm