Xamarin.ios MonoTouch中的正则表达式问题

Xamarin.ios MonoTouch中的正则表达式问题,xamarin.ios,Xamarin.ios,我的MonoTouch应用程序中的正则表达式有问题。似乎忽略了RegexOptions.CultureInvariant,表达式总是使用设备默认区域性进行计算。以下是一个示例: Regex rx_I = new Regex(@"II", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant); Regex rx_i = new Regex(@"ii", RegexOptions.IgnoreCase | RegexOptions.Cult

我的MonoTouch应用程序中的正则表达式有问题。似乎忽略了RegexOptions.CultureInvariant,表达式总是使用设备默认区域性进行计算。以下是一个示例:

Regex rx_I = new Regex(@"II", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
Regex rx_i = new Regex(@"ii", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);

string aString = "Ii";

Match match;

match=rx_I.Match(aString);
if(match.Success){
    Console.WriteLine(match.Value);
}

match=rx_i.Match(aString);
if(match.Success){
    Console.WriteLine(match.Value);
}
当“区域格式”设置为“美国”时,两个匹配都成功。如果设置为“Turkish”,它们都会失败,因为在土耳其语中,大写字母“i”不是“i”,小写字母“i”不是“i”。我希望设置RegexOptions.CultureInvariant可以解决这个问题,但显然没有

我做错什么了吗


谢谢

请在中提交一个测试用例。已提交错误报告677823。谢谢