|
Aha, a list or tuple. Very clear. Thanks. On Mon, 27 Jul 2026 21:57:21 +0000, Carl Distefano wrote: > Reply to note from harrybinswanger <dmarc-noreply@xxxxxxxxxxxxx> Mon, 27 Jul 2026 12:08:01 -0400 > > Harry, > > > One thing I don't understand: "and negative n causes the replacements > > start from the end of string" > > > > Example? > > ``` > set colors = "red red red red" > > set newcolors = replace($colors, "red", "green", 1) # positive 1 > # newcolors ==> "green red red red" > > set newcolors = replace($colors, "red", "green", -1) # negative 1 > # newcolors ==> "red red red green" > ``` > > -- > Carl Distefano > cld@xxxxxxxxxx > |