Q:

How to do diacritic insensitive matching with NSRegularExpression?

Is it possible to perform diacritic insensitive matching using NSRegularExpression? The options for regularExpressionWithPattern doesn't seem to provide this. 

A:

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];

