A
asrs63
Hi,
Is there a class that can handle splitting of a string on a comma such
that the commas in quotes are ignored?
I know we can use Text:
arseWords directive in perl to do this, but I
am new to C#.Net and couldn't find anything similar.
For example
string str = "one field, two field, \"field val one, field val two,
field val three\", three field" ;
Then I should get the following in a str_arr
str_arr[0] = "one field"
str_arr[1] = "two filed"
str_arr[2] = "field val one, field val two, field val three"
str_arr[3] = "three field"
Thanks in advance,
Ashoo.
Is there a class that can handle splitting of a string on a comma such
that the commas in quotes are ignored?
I know we can use Text:

am new to C#.Net and couldn't find anything similar.
For example
string str = "one field, two field, \"field val one, field val two,
field val three\", three field" ;
Then I should get the following in a str_arr
str_arr[0] = "one field"
str_arr[1] = "two filed"
str_arr[2] = "field val one, field val two, field val three"
str_arr[3] = "three field"
Thanks in advance,
Ashoo.