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
Post a Comment