I have a csv file which conatins line something similar to this
"Some KIND of Test","[STATUS]","TESTNAME","VMNAME","TESTTME","SOME PARAMETER"
I am trying to parse this. I am using split
to get STATUS
and TESTNAME
$col = $line.split('","') #used .split('`",`"') as well
$col.length #output value is 18
#cl = $line.split(',')
$cl.length #output value is 6
Why am I seeing two different values here. In both cases '
and ","
present same number of times
It seems like I am making some basic mistake. I couldn't figure it out. Any help would be grateful. Thanks