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

2 lines
77 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
str3 = ~r/another/ |> Regex.replace(str2, fn x -> "#{String.upcase(x)}" end)