This language bar is your friend. Select your favorite languages!

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.

#Edit dateEdit SummaryEditor
👁 Δ 34 2018-08-09, 13:08 New JS implementation by user [programming-idioms.org] programming-idioms.org
👁 Δ 33 2016-11-30, 21:24 [Elixir] +DocURL, +DemoURL programming-idioms.org
👁 Δ 32 2016-11-22, 22:42 +keywords programming-idioms.org
👁 Δ 31 2016-07-12, 21:01 New Erlang implementation by user [elbrujohalcon] elbrujohalcon
👁 Δ 30 2016-04-08, 13:17 New Lua implementation by user [Nepta]
👁 Δ 29 2016-02-22, 14:31 Emphasize y.
👁 Δ 28 2016-02-22, 13:58 [PHP] The PHP manual documentation
👁 Δ 27 2016-02-22, 13:52 New PHP implementation by user [AgillaDev]
👁 Δ 26 2016-02-18, 16:58 New Csharp implementation by user [bdadams]
👁 Δ 25 2016-02-16, 18:58 New Csharp implementation by user [bdadams]
👁 Δ 24 2016-01-04, 11:29 [Java] x2 + demo with exact variable names
👁 Δ 23 2016-01-04, 04:33 New Java implementation by user [lck]
👁 Δ 22 2015-11-30, 12:37
👁 Δ 21 2015-11-01, 23:16
👁 Δ 20 2015-11-01, 23:12
👁 Δ 19 2015-10-31, 15:01
👁 Δ 18 2015-10-29, 14:05
👁 Δ 17 2015-09-05, 10:30
👁 Δ 16 2015-09-05, 10:21
👁 Δ 15 2015-09-05, 10:19
👁 Δ 14 2015-09-03, 21:01
👁 Δ 13 2015-09-03, 17:13
👁 Δ 12 2015-08-23, 10:56
👁 Δ 11 2015-08-23, 10:56
👁 Δ 10 2015-08-22, 22:01
👁 Δ 9 2015-08-21, 23:31
👁 Δ 8 2015-08-21, 23:30
👁 Δ 7 2015-08-21, 01:03
👁 Δ 6 2015-08-20, 11:54
👁 Δ 5 2015-08-20, 11:40
👁 Δ 4 2015-07-31, 19:33
👁 Δ 3 2015-05-06, 21:04
👁 Δ 2 2015-04-14, 21:31
1 2015-04-14, 21:30