On Fri, Apr 23, 2010 at 1:26 PM, UXB Internet <denn...@uxbinternet.com>wrote:

>
> 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"


var myString = "this has     many     extra   spaces";

myString = rereplace( myString , \s+ , ' ' , 'all' );

-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:333113
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to