Logo

Programming-Idioms

History of Idiom 296 > diff from v3 to v4

Edit summary for version 4 by programming-idioms.org:
Formal variables x2, x, y, z

Version 3

2022-02-17, 12:11:30

Version 4

2022-02-17, 17:22:56

Idiom #296 Replace last occurrence of substring

Assign to x2 the value of string x with the last occurrence of y replaced by z.
If y is not contained in x, then x2 has the same value as x.

Idiom #296 Replace last occurrence of substring

Assign to x2 the value of string x with the last occurrence of y replaced by z.
If y is not contained in x, then x2 has the same value as x.

Variables
x2,x,y,z
Extra Keywords
substring substitute
Extra Keywords
substring substitute