I wish to replace a string starting from an index of one character to the end of another character. Example replace all characters from index of ( to index of ) in the string Somesong here - Artist (radio edit) or even if the string is Somesong here - Artist (radio edit) (another one). Any help will be greatly appreciated.
I've tried this but I dont think I'll work out, I not too sure how to remove substring starting at a range.
var a = "Somesong here - Artist (radio edit)" let range = a.rangeOfString("(") let range2 = a.rangeOfString(")")