Possible Duplicate:
C#, regular expressions : how to parse comma-separated values, where some values might be quoted strings themselves containing commas
I am actually processing a text file that the data is like that
//Sample Structure = 'Name','Address','TelNumber'
Sting OriginalData= "'Mr Worgon','27,4 Streeat A,US', '60231212'";
I am try with
String[] SampleData;
String ABC1,ABC2,ABC3;
SampleData = OriginalData.Split(',');
ABC1 = SampleData[0];
ABC2 = SampleData[1];
ABC3 = SampleData[2];
but its seem it not suitable because of the Address Data that mostly will have a ','.
Any suggestion for this kind of String controlling?