话不多说,上代码:123NSString *test=@"2015/11/12;*1-年2+3年月"; NSString *newString = [[test componentsSeparatedByCharactersInSet: [[NSCharacterSet decimalDigitCharacterSet] invertedSet]] componentsJoinedByString:@""]; NSLog(@"%@", newString);
热评文章
记录技术点滴
话不多说,上代码:123NSString *test=@"2015/11/12;*1-年2+3年月"; NSString *newString = [[test componentsSeparatedByCharactersInSet: [[NSCharacterSet decimalDigitCharacterSet] invertedSet]] componentsJoinedByString:@""]; NSLog(@"%@", newString);
热评文章