comma separated string to array c# code example
Example 1: javascript split string into array by comma and space
input.split(/[ ,]+/); //splits string using RegEx on a space OR a comma
Example 2: convert comma separated string to array c#
string fruit = "Apple,Banana,Orange,Strawberry";
string[] split = fruit.Split(',');