>This makes the function much more powerful and often more useful, but at
the
>expense of overhead.

To what extent?

I mean would I be better off using

ReReplace(string, "a|b|c", "", "ALL")

or

Replace(string, "a", "")
Replace(string, "b", "")
Replace(string, "c", "")

Just curious... I use them both ALOT

----- Original Message -----
From: "Ben Doom" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 2:51 PM
Subject: RE: REReplace and Replace function


> Replace() looks for a literal string within another string and replaces it
> with yet a third string:
> Replace(contentstring, stringtoreplace, replacement);
>
> With REReplace(), you can search for and replace with regular expressions.
> This makes the function much more powerful and often more useful, but at
the
> expense of overhead.
>
> For simple replaces, use the simple replace() :-)
>
> If you want to know more about regular expressions, House of Fusion also
> hosts the CF-RegEx list, on which several of the CF Regex Ninjas answer
> questions both simple and advanced.  We'd be happy to help you out.
> http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21
>
>
> --  Ben Doom
>     Programmer & General Lackey
>     Moonbow Software, Inc
>
> : -----Original Message-----
> : From: Tuan [mailto:[EMAIL PROTECTED]]
> : Sent: Friday, February 14, 2003 2:39 PM
> : To: CF-Talk
> : Subject: REReplace and Replace function
> :
> :
> : Can somebody explain what the difference is between the REReplace
> : and Replace function?  Im confused when to use one or the other
> : and their differences.
> :
> :
> :
> :
> :
> :
> :
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to