RE: ReplaceNoCase - Replace moren than 1 argument

2007-08-06 Thread Andy Matthews
Like Kris said. If you're looking to replace two strings with two other
unique strings, then replacenocase twice is your best bet.

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

Hi Andy,

thank your for your quick answer.

But i have another question. You have explain me how i can replace 2
arguments with one new argument.

But how can i replace 2 arguments with 2 new arguments. 
For example replace "andy" with "first example" and "stivn" with "second
example"

Thank your for your help and with best regards.

Stivn 



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285477
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ReplaceNoCase - Replace moren than 1 argument

2007-08-06 Thread Kris Jones
Hi Stivn,

You'd can call the replacenocase function twice:




Cheers,
Kris

> But how can i replace 2 arguments with 2 new arguments.
> For example replace "andy" with "first example" and "stivn" with "second 
> example"

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285473
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: ReplaceNoCase - Replace moren than 1 argument

2007-08-06 Thread Kris Jones
Or, if you're trying to replace more than one instance of the string
with your new expression, make sure you use the scope parameter of
"ALL":

replacenocase(mystring, "searchexpression", "newexpression", "ALL")

> 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.

~|
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:285472
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: ReplaceNoCase - Replace moren than 1 argument

2007-08-06 Thread nicolai bass dh
Hi Andy,

thank your for your quick answer.

But i have another question. You have explain me how i can replace 2 arguments 
with one new argument.

But how can i replace 2 arguments with 2 new arguments. 
For example replace "andy" with "first example" and "stivn" with "second 
example"

Thank your for your help and with best regards.

Stivn 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285471
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: ReplaceNoCase - Replace moren than 1 argument

2007-08-06 Thread Andy Matthews
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