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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

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

Reply via email to