如何将 NSString 子串到第三次出现的字符?
我想计算重复 3 次后的 ',' 字符和子字符串。
输入:
9,1,2,3,9
输出:
9,1,2
I want to count the ',' characters and substring when it has been repeated 3 times.
Input:
9,1,2,3,9
Output:
9,1,2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很确定特定的东西不会有内置方法。
从我的头顶上:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html
苹果参考文档通常是一个很好的起点。
I am pretty sure something that specific would not have a build in method.
Off the top of my head:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html
The apple reference documents are usually a good place to start.
类似的事情。
Something like that.