If you're looking to replace both arguments with the same text, then you can
use REReplaceNoCase. Assuming you want to replace both "andy" and "stivn"
with the word "John":

REReplaceNoCase(string, "Andy|Stivn", "John", "ALL")

The | character is a meta character indicating "or". So this expression says
"replace either 'Andy' OR 'Stivn' with the string 'John'".

Andy matthews
 

-----Original Message-----
From: nicolai bass dh [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 06, 2007 9:22 AM
To: CF-Talk
Subject: ReplaceNoCase - Replace moren than 1 argument

Hello,

i am a real newbie on coldfusion development and this is my first posting in
this newsgroup.

I want to replace more than 2 arguments in a text with the "ReplaceNoCase"
function.

Thank you for your help and with best regards

Stivn




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285469
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