Here is my code that splits my string array using delimited characters, but does not consider the issue in my title:
char[] delimitedChars = { ',', '\n', '"' };
words = stringamabob.Split(delimitedChars);
I want this all to be true EXCEPT I don't want the comma to be a delimited character when it is inbetween quotation marks.
For example, if I had:
stringamabob = one, two, three, "four, five", six
I would get:
words [0] = one
words [1] = two
words [2] = three
words [3] = four
words [4] = five
words [5] = six
Where as I want to get:
words [0] = one
words [1] = two
words [2] = three
words [3] = four, five
words [4] = six