I am trying to find out a solution to an issue I'm having. If I execute the following C# code:
Regex r = new Regex("[\\r\\n]*");
Match m = r.Match("\\r\\n");
If I examine the value of m.Success, I get a value of true, which is correct. But if I examine the value of m.Length, I get a value of 0. If I examine m.Value, I also get a blank value. Am I missing something in my Regex? I am under the impression that either m.Success needs to be false and m.Length is 0 or else m.Success needs to be true and m.Length needs to be greater then 0. Any help on clearifing this would be appreciated!
Match m = r.Match("\r\n");? I imagine this is a string with actual cr/lf chars, not escaped ?