RosettaCodeData/Task/Regular-expressions/Elixir/regular-expressions-3.elixir

3 lines
103 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
str1 = ~r/a/ |> Regex.replace(str,"another")
str2 = str1 |> String.replace(~r/another/,"even another")