Will that do carriage returns as well? If not I'd imagine something like
this would be a little more effeicient than doing a regex...
<cfset myNewString = stripCR(replace(string, " ", "", "ALL"))>

jon
----- Original Message -----
From: "Douglas Brown" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 6:31 PM
Subject: Re: removing spaces and carriage returns w/ efficiency


> <cfset myNewString = ReReplace(string, "[[:space:]]", "", "ALL")>
>
>
>
>
> Douglas Brown
> Email: [EMAIL PROTECTED]
> ----- Original Message -----
> From: "Brook Davies" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 3:39 PM
> Subject: removing spaces and carriage returns w/ efficiency
>
>
> > Any one know what is the quickest most efficient way to trim all spaces
and
> > carriage returns from a string?
> >
> > Brook
> >


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to