CSVの値取得 サンプル
CSVの値取得に戻る
サンプルデータ ↓↓↓ ここから ↓↓↓ 1-1,1-2,1-3,,,1-5,, "2-1","2-2","2-3",,,"2-5" "3,1","3,2","3,3",,,"3,5",,"" "4""1","4""2","4""3",,,"4""5",, "5""""1","5""""2","5""""3",,,"5""""4",, , 6 ,7 ↑↑↑ ここまで ↑↑↑ 実行結果 ↓↓↓ ここから ↓↓↓ ----- ダブルクォート削除 ----- [1-1,1-2,1-3,,,1-5,,] (1-1)(1-2)(1-3)()()(1-5)()() [] ["2-1","2-2","2-3",,,"2-5"] (2-1)(2-2)(2-3)()()(2-5) ["3,1","3,2","3,3",,,"3,5",,""] (3,1)(3,2)(3,3)()()(3,5)()() ["4""1","4""2","4""3",,,"4""5",,] (4"1)(4"2)(4"3)()()(4"5)()() ["5""""1","5""""2","5""""3",,,"5""""4",,] (5""1)(5""2)(5""3)()()(5""4)()() [,] ()() [6] (6) [,7] ()(7) ----- ダブルクォートそのまま ----- [1-1,1-2,1-3,,,1-5,,] (1-1)(1-2)(1-3)()()(1-5)()() [] ["2-1","2-2","2-3",,,"2-5"] ("2-1")("2-2")("2-3")()()("2-5") ["3,1","3,2","3,3",,,"3,5",,""] ("3,1")("3,2")("3,3")()()("3,5")()("") ["4""1","4""2","4""3",,,"4""5",,] ("4""1")("4""2")("4""3")()()("4""5")()() ["5""""1","5""""2","5""""3",,,"5""""4",,] ("5""""1")("5""""2")("5""""3")()()("5""""4")()() [,] ()() [6] (6) [,7] ()(7) ----- 単純にカンマで分割 ----- [1-1,1-2,1-3,,,1-5,,] (1-1)(1-2)(1-3)()()(1-5) [] ["2-1","2-2","2-3",,,"2-5"] ("2-1")("2-2")("2-3")()()("2-5") ["3,1","3,2","3,3",,,"3,5",,""] ("3)(1")("3)(2")("3)(3")()()("3)(5")()("") ["4""1","4""2","4""3",,,"4""5",,] ("4""1")("4""2")("4""3")()()("4""5") ["5""""1","5""""2","5""""3",,,"5""""4",,] ("5""""1")("5""""2")("5""""3")()()("5""""4") [,] [6] (6) [,7] ()(7) ↑↑↑ ここまで ↑↑↑CSVの値取得に戻る