RosettaCodeData/Task/Tokenize-a-string/Objective-C/tokenize-a-string.m

5 lines
178 B
Mathematica
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
NSString *text = @"Hello,How,Are,You,Today";
NSArray *tokens = [text componentsSeparatedByString:@","];
NSString *result = [tokens componentsJoinedByString:@"."];
NSLog(result);