Reputation: 691
Is it possible to perform diacritic insensitive matching using NSRegularExpression? The options for regularExpressionWithPattern doesn't seem to provide this.
Upvotes: 1
Views: 445
Reputation: 133619
You could remove the diacritics and work on the cleaned string, something like:
tmpString = [[[NSString alloc] initWithData:[realString dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES] encoding:NSASCIIStringEncoding] autorelease];
Upvotes: 2