Home > XCode / C > String non alpha-numeric characters from a NSString

String non alpha-numeric characters from a NSString

October 1st, 2010 Leave a comment Go to comments

NSCharacterSet *nonalphanumericSet = [[ NSCharacterSet alphanumericCharacterSet ] invertedSet ];
NSString * endingString = [[@"sdfsd*&*(*(SD&((SD" componentsSeparatedByCharactersInSet:nonalphanumericSet] componentsJoinedByString:@""];

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Categories: XCode / C Tags:
  1. No comments yet.