I want to delete all invalid letters from a string which should represent a phone number. Only a '+' prefix and numbers are allowed. I tried in Kotlin with
"+1234abc567+".replace("[^+0-9]".toRegex(), "")
It works nearly perfect, but it does not replace the last '+'. How can I modify the regex to only allow the first '+'?