I need to remove/replace all characters except for alpha numeric, -, & from NSString. How do i construct my regular expression to achieve that
I want to ensure user does not enter any characters other than alphanumeric, & and – in uitextfield. How can i do that. Previusly i Handled things in shoulchangecharactersineange, but now the filter is getting increasigly big to handle through if conditions. Regular expressions may be the best choice for my scenario. I’d apprecite your thoughts and inputs
I need to remove/replace all characters except for alpha numeric, -, & from NSString.
Share
1 Answer