Logo

Programming-Idioms

History of Idiom 63 > diff from v13 to v14

Edit summary for version 14 by :

Version 13

2015-09-03, 17:13:04

Version 14

2015-09-03, 21:01:05

Idiom #63 Replace fragment of a string

Assign to x2 the value of string x with all occurrences of y replaced by z.
Assume occurrences of y are not overlapping.

Idiom #63 Replace fragment of a string

Assign to x2 the value of string x with all occurrences of y replaced by z.
Assume occurrences of y are not overlapping.

Code
x2 = String.replace(x, y, z)