Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: replace

From: jelinem1:nationwide at: 26-Jun-2001 14:15

Are you are referring to the fact that the string you specified to replace, "fabulous", is not in the main string "foobar"? Or that you are trying to replace a string with itself? In the first case, no search/replace tool I've used has complained (esp given an error) that zero replaces were made. The second case I can't see as an error - except maybe a programmer error. Certainly not a language error, or one that would interrupt the 'replace. It is simply a trivial case of 'replace. - Michael Jelinek From: [ryan--christiansen--intellisol--com]@rebol.com on 06/26/2001 12:44 PM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: [rebol-list--rebol--com] cc: Subject: [REBOL] replace Please help me to understand 'replace. Why doesn't the following return an error?
>> a: "foobar"
== "foobar"
>> c: "fabulous"
== "fabulous"
>> replace a c c
== "foobar"
>>
-Ryan