I'm trying to use a regular expression in C# csv that can contain: code as
a,a,(a,b,(a)).
I have tried the following:
var result = (from Match m in Regex.Matches(input, @"([^,()]+(\([^()]*\))?") select m.Value).ToArray();
string result1 = ConvertStringArrayToString(result);
textBox2.Text = result1;
but i get output like this:
a
a
a
b(a)