https://kotlinlang.org logo
j

jonathanmeeks

12/28/2016, 9:42 PM
@dpk, the regex solution didn't work as is, but this did:
"abcdefgh".replace(Regex(".."), "$0-")