I have a long line like this:
je!tress:e?tu!tress:es?il!tress:e?nous!tress:ons?vous!tress:ez?ils!tress:ent?
I want to split the line after: and earlier ?, so I want to have in the array:
{e,es,e,ons,ez,en}
I know I can do this:
NSArray *subStrings = [stringToChange componentsSeparatedByString:@":"];
but this is not enough. How can I do this, please? Any help would be appreciated!
ios objective-c nsstring
Adina marin
source share