开发者

how to extract from two delimiter

1+2+3:4+5+6:7+8+9

How to delimit if i have two delimiter + and : and i am using array to store

myarray1 = [myarray2开发者_如何转开发 componentsSeparatedByString:@":"]; delimit only :


NSString *myString = @"Foo-bar/blee";
NSArray *myWords = [myString componentsSeparatedByCharactersInSet:
                      [NSCharacterSet characterSetWithCharactersInString:@"-/"]
                    ];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜