V
Valery
The following code unexpectedly produces mismatch:
string s = "def" + System.Environment.NewLine + "ghi";
bool b = Regex.IsMatch(s, "^def$", RegexOptions.Multiline);
whereas
string s = "abc" + System.Environment.NewLine + "def";
bool b = Regex.IsMatch(s, "^def$", RegexOptions.Multiline);
produces true as expected.
What's wrong here?
Cheers, Valery
string s = "def" + System.Environment.NewLine + "ghi";
bool b = Regex.IsMatch(s, "^def$", RegexOptions.Multiline);
whereas
string s = "abc" + System.Environment.NewLine + "def";
bool b = Regex.IsMatch(s, "^def$", RegexOptions.Multiline);
produces true as expected.
What's wrong here?
Cheers, Valery