Extract String between two Special Characters

Thank You!! it worked

1 Like

To convert a string into a list of comma-separated data strings, you can use the Split method of the String class. Like that:

string input = "\",,,\"";
string[] result = input.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
List<string> dataList = new List<string>(result);

This code will split a string into substrings using commas as a delimiter and remove empty elements. The result will be presented as a list of strings.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.