I have the following line:
"(X,Y,Z),(A,B,C),(R,S,T)"
I want to split this into a multidimensional array:
arr[0] = [x,y,z] arr[1] = [a,b,c] arr[2] = [r,s,t]
so that:
arr[0][1] = y, arr[0][2] = z, etc.
I can do this by removing the first and last parsets, splitting into "), (" and then going through this array and making another split. But I feel dirty, unsure, like a stripper (pun intended) in the backalley bar ... is Is there a cleaner way?
Maybe some LINQ to help?
I am using C #.
arrays c #
OpenR
source share