Is there an easy way to replace a part of a string in Elm? I am interested in plain search without a regex. (And I understand that I can’t change the string, I am happy to get a new one with the changes in place.)
The simplest way I could think of:
String.split "from" "target string: blah... from ..."
|> String.join "to"
https://runelm.io/c/f07
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With