I know it must be a very simple thing to do but I\'ve never had to treat strings before (in Objective-C) and apparently there\'s not RegEx on Cocoa-Touch.
Well, the
you can try this:
NSString *s = @"12.827#@584"; NSCharacterSet *removeCharSet = [NSCharacterSet characterSetWithCharactersInString:@"/:@#"]; s = [[s componentsSeparatedByCharactersInSet: removeCharSet] componentsJoinedByString: @""]; NSLog(@"%@", s);