What am I doing wrong here? .Net supports the (?i:) construct for inline modification of case sensitivity … but I can’t get this line to work.
Console.WriteLine(Regex.Match("ab(?i:z)", "abZ").Success); //Returns false,
//though it should return true??
The first parameter is the input, the second parameter is the pattern:
MSDN: Regex.Match(string, string)