objective c - How to do diacritic insensitive matching with NSRegularExpression? -


is possible perform diacritic insensitive matching using nsregularexpression? options regularexpressionwithpattern doesn't seem provide this.

you remove diacritics , work on cleaned string, like:

tmpstring = [[[nsstring alloc] initwithdata:[realstring datausingencoding:nsasciistringencoding allowlossyconversion:yes] encoding:nsasciistringencoding] autorelease]; 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -