\s* is probably not what you want. * means "0 or more" so it would insert a space between every character. I would use \s+ or \s{2,} instead.
--Ben Doom Sonny Savage wrote: > How about this? > <cfset pageholder_tboutputed = REReplace(pageholder_tboutputed, "\s*", " ", > "ALL")> > > On Jan 21, 2008 3:13 PM, Nate Willard <[EMAIL PROTECTED]> wrote: > >> hello, >> >> I learned of of an issue with my whitespace reduction >> method that is almost funny. >> >> I do the following to remove whitespace >> >> <cfsavecontent variable="pageholder_tboutputed"> >> PAGE CONTENTS....... >> </cfsavecontent> >> <cfset pageholder_tboutputed >> =REReplace(pageholder_tboutputed, >> "[[:space:]]{2,}","","ALL")> >> <CFOUTPUT>#pageholder_tboutputed#</CFOUTPUT> >> >> What ended up happening today is that one of the >> sources I pull in information from had double spaced >> between words. so instead of the "The bear went home" >> they had "The bear went home" which caused my method >> to output "Thebearwent home" >> >> Is there any way around this? Or do I need to remove >> my whitespace method for the time being? >> >> Thxs >> >> >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297033 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4