Logo

Programming-Idioms

History of Idiom 296

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.

#Edit dateEdit SummaryAuthor
👁 Δ 20 2022-11-03, 05:38 [Perl] Added Demo URL jgpuckering
👁 Δ 19 2022-10-30, 17:53 [Perl] Added condition to satisfy the non-contained constraint; added Doc URL jgpuckering
👁 Δ 18 2022-10-30, 17:48 New Perl implementation by user [jgpuckering] jgpuckering
👁 Δ 17 2022-09-05, 20:12 [Ruby] Added Doc URL for gsub programming-idioms.org
👁 Δ 16 2022-06-14, 19:02 New Ruby implementation by user [steenslag] steenslag
👁 Δ 15 2022-03-29, 20:43 [Dart] +DocURL programming-idioms.org
👁 Δ 14 2022-03-28, 23:21 New Dart implementation by user [Manu] Manu
👁 Δ 13 2022-03-18, 13:35 New Fortran implementation by user [tkoenig] tkoenig
👁 Δ 12 2022-02-20, 20:05 [Python] +DemoURL programming-idioms.org
👁 Δ 11 2022-02-20, 19:46 Admin deletes impl 5464: y and z are string variables, not literal characters programming-idioms.org
👁 Δ 10 2022-02-20, 09:17 New Python implementation by user [Oldboy] Oldboy
👁 Δ 9 2022-02-18, 13:37 [Perl] Add description of what's going on. skeletonkey
👁 Δ 8 2022-02-18, 13:35 New Perl implementation by user [skeletonkey] skeletonkey
👁 Δ 7 2022-02-17, 18:00 [Pascal] Fix typo in comment Bart
👁 Δ 6 2022-02-17, 17:59 New Pascal implementation by user [Bart] Bart
👁 Δ 5 2022-02-17, 17:54 New Pascal implementation by user [Bart] Bart
👁 Δ 4 2022-02-17, 17:22 Formal variables x2, x, y, z programming-idioms.org
👁 Δ 3 2022-02-17, 12:11 Linked to idiom #283 [Split with a custom string separator] programming-idioms.org
👁 Δ 2 2022-02-17, 12:10 Linked to idiom #63 [Replace fragment of a string] programming-idioms.org
1 2022-02-17, 12:10 Idiom creation by user [programming-idioms.org] with Go implementation programming-idioms.org