Claude's (and mine) will work just fine. It won't replace the pipe since it
isn’t escaped. It will also replace 1 or more instances of any of the 3
characters

-----Original Message-----
From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 27, 2006 3:08 PM
To: CF-Talk
Subject: Re: regexp help

I don;t know that Claude's will work quite right. I think it will also
remove the | character.

The main difference is that Ben used the +, which says to replace 1 or
more adjacent occurances with null. This should be marginally faster
than not using the +, since is does them in groups. But you will
probably never notice the difference given the size, data, and speed
of the server.


On 9/27/06, Ray Champagne <[EMAIL PROTECTED]> wrote:
> Ben, Claude, just so I know, what's the difference between your solutions?
> Is it merely more than one way to skin a cat, or is one better than
another?
>
> > <cfset strTest = REReplace( strTest, "[_12]+", "", "ALL" ) />
>
>
> > REreplace (MyString, "_|1|2", "", "all")
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:254494
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