I have a string like (- ABCDE-15-826-79- - - - - - -) . I want to add B after 9 in this string . This string is not constant , but I always wanted to add B before the last set of hyphens starts .
So it’s always like the last letter should be B before continuous set of hyphens start. How to do it ?