i am convert paragraph into words it contains many special characters like
\" , \" . `
how to remove this characters in nsstring and get
Per comment of @Rostyslav Druzhchenko from on the selected answer of @MadhuP:
NSString *unfilteredString = @"!@#$%^&*()_+|abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
NSCharacterSet *notAllowedChars = [[NSCharacterSet alphanumericCharacterSet] invertedSet];
NSString *escapedString = [[unfilteredString componentsSeparatedByCharactersInSet:notAllowedChars] componentsJoinedByString:@""];
NSLog (@"Result: %@", escapedString);
This is the answer that will use alphanumericCharacterSet to handle multiple countries character set.