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:254487
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