Hello,
I've got a weird problem where I'm struggling to detect the last occurence of the character "-" and replace it with "x".
Does anybody have a way to take a string and replace only the last occurence of that character? (I've gotten a replace function to work, but it replaces ALL occurences, which isn't what i wanted).
Any helps is appreciated!
I've got a weird problem where I'm struggling to detect the last occurence of the character "-" and replace it with "x".
Does anybody have a way to take a string and replace only the last occurence of that character? (I've gotten a replace function to work, but it replaces ALL occurences, which isn't what i wanted).
Any helps is appreciated!