开发者

how to extract from two delimiter

开发者 https://www.devze.com 2023-01-13 17:08 出处:网络
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 :
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

精彩评论

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