I ran into a problem while working with regex in C #. Namely, the debugger shows the correct results (IMO), but when I try to print the results in my application, they are different (and incorrect). Code below:
Match match2 = Regex.Match("048 A Dream Within A Dream (satur) (123|433) K48", "(.*)(\\((.)*?\\))\\s\\((.)*?\\)\\s.*"); string nick = match2.Groups[1].Value; string name = match2.Groups[0].Value; Console.WriteLine("nick - '{0}', name - '{1}'", nick, name);
The expected results are displayed in the debugger, as shown in the following screenshot: 
The console shows different (incorrect) results:
nick - '048 Dream in a Dream', name - '048 Dream inside A Dream (Satur) (123 | 433) K48'
How to fix it? I want the results displayed exactly the same as in the debugger.
source share