RosettaCodeData/Task/Regular-expressions/Elixir/regular-expressions-3.elixir
2015-11-18 06:14:39 +00:00

2 lines
103 B
Text

str1 = ~r/a/ |> Regex.replace(str,"another")
str2 = str1 |> String.replace(~r/another/,"even another")