This should be a simple one, but my brains are a bit hazy today:
I have an NSString * myOldString = @"This is a string (and this part is between brackets)"
Now, I want to truncate the string in such a way, that basically everything between the brackets, including the brackets, is truncated.
More precisely: I don't care what is happening after the first bracket at all.
I can't do a simple stringByReplacingOccurrencesOfString, because I cannot predict what will be between the brackets. So, the resulting string would be:
"This is a string"
Thank you for your input