I'm asking a question based on my previous question JQuery-csv not parsing all values ,this question will be a workaround on my problem which was solved but still needed a bit tweaking where the overflowed cell won't show up, but I can't figure out where or how to start with it.
My csv file looks like this: test.csv
header1, header2, header3, header4
value1, value2, value3, value4
value1, value2, value3, value4.1,value4.2,value4.3
value1, value2, value3, value4
Im parsing the csv using csv.parsers.splitLines
, but this time I would like to check line by line that after the 3rd comma ,
I'll get all the remaining strings and replace the comma with some other separator like a colon :
.
ex:
value1, value2, value3, value4.1,value4.2,value4.3 --> value1, value2, value3, value4.1-value4.2-value4.3
at the moment I still don't know where to start in this issue a good nudge in this would be awesome. cheers!!
JSFiddle for my ideal output: