as far as i can tell, it -would- be two rereplace() statements.

you're looking to replace two elements with two different elements.
it would be different if, let's say you wanted to replace all spaces
and commas with a single element (either a space or nothing)...but
you're looking to do two different things entirely:

1) replace all spaces with plus characters
2) replace all commas with nothing (effectively remove all commas)

the latter could be done with a replace() statement (as opposed to
rereplace())...but as I see it, it's still 2 function calls (unless
you wrap those two functions behind a single UDF, which might improve
readability)

On 11/29/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> I don't know why, but I always get a headache when working with
> ReReplace and RegEx stuff...
>
> OK, I need to replace *all* spaces with a "+":
>
> REReplace ("#request.mySTRING#","[[:space:]]","+","ALL")
>
> That works fine.
>
> But ... and there's always a "but" - I need to replace all commas too.
> They just need to go away and the space they were occupying closed up.
>
> Not sure how to get it to do both without doing TWO "in-series""
> ReReplace statements.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to