I have a string which looks like:
#chat :hi there
And I’d like to scan all the text from the : to a string, so it ends like hi there
I’ve tried
[[NSScanner scannerWithString:argument] scanUpToString:@":" intoString:&newarg];
But newarg contains only #chat. How this can be achieved?
Example String:
Code:
Output: