I guess the answer should be obvious but I don't understand
Regex reg = new Regex("a\r\n", RegexOptions.Singleline | RegexOptions.CultureInvariant);
Console.WriteLine(reg.IsMatch(".*a.*")); // writes FALSE
Why does this write false ? I thought that SingleLine allowed the dot to match anything, be it \r, \n, \r\n, \n\r or whatever ?
Regexyou have what you want to match there.