Logo

Programming-Idioms

History of Idiom 63 > diff from v9 to v10

Edit summary for version 10 by :

Version 9

2015-08-21, 23:31:26

Version 10

2015-08-22, 22:01:39

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.

Imports
SysUtils
Code
var
  _x, _y, _z, _x2: String;
begin
  _x2 := StringReplace(_x, _y, _z, [rfReplaceAll]);
end;