Hi guys:
Could you expand on why the output of Console.WriteLine(m.Groups[1]); would be "Contoso, Inc"? And could you also elaborate on the matching steps of this example? Thanks.
PS: I'm not familar with the concept of groups
string input = "Company Name: Contoso, Inc.";
Match m = Regex.Match(input, @"Company Name: (.*$)");
Console.WriteLine(m.Groups[1]);