`
lizhuang
  • 浏览: 887666 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

NSMutalbeStirng 正则替换

 
阅读更多

 NSMutableString *temp = [@"1234567" mutableCopy];

    [temp replaceOccurrencesOfString:@"[1236]" withString:@"" options:NSRegularExpressionSearch range:NSMakeRange(0, temp.length)];

    NSLog(@"%@", temp);

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics