Hi, I'm using C#.NET 2010. -- I have a Sting that looks much like the format below.
I need to split it on the following three characters > "," < . I cannot simply split it on the comma, because some of the parts of the Sting has commas in it.
"item_1, item_2, item_3, and item_4","item_5 and item_6, and item_7","item_8, item_9, item10"
So, in essence I have 3 basic parts to the larger String:
string1 = "item_1, item_2, item_3, and item_4"
string2 = "item_5 and item_6, and item_7"
string3 = "item_8, item_9, item10"
All 3 sub-strings are enclosed with quotation marks (") and separated by a comma (,).
How do I split on --- "," ?
I tried -- ' \",\" ' and ' " , " ' and also @"," but none of those worked.
Can someone please assist?