Logo

Programming-Idioms

History of Idiom 63 > diff from v10 to v11

Edit summary for version 11 by :

Version 10

2015-08-22, 22:01:39

Version 11

2015-08-23, 10:56:14

Idiom #63 Replace fragment of a string

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

Idiom #63 Replace fragment of a string

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

Code
var x2 = x.replaceAll(y, z);