KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to check an NSString for special characters, i.e. anything except a-z, A-Z and 0-9. I don't need to check how many special characters are present, or their positions, I just need to know whether a particular string contains any or not. If it does, then I want to be able to display "Error!", or something similar. For example, jHfd9982 is OK but asdJh992@ is not. Also, letters with accents, diacritics, etc. should not be allowed. How would I go about this? Thanks! Michael
Tags (comma-separated)
Save Edits
Cancel