Currently working on my thesis for a client/server app. I\'ve run into a snag were the server receives information like this:
ProToCooL,unknown|DESKTOP-29COF
.NET regex does not support recursion. The regex you are using (\(((?:[^()]|(?R))+)\)) is for PCRE, and you can use it with PCRE.NET library in a C# app.
As an alternative, you can use a .NET regex to match balanced parentheses:
\(((?>[^()]+|\((?<n>)|\)(?<-n>))+(?(n)(?!)))\)
See regex demo.
It returns all those 12 matches as the PCRE regex.