I want to split a CSV file which is having comma and other special characters in its data using java. I tried regex way of splitting like line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1);
and more similar kind of things. But splitting is wrong in some rows.
CSV is having around 3000 rows. Some of them are not properly getting split. Please suggest a standard way to split the data in csv file.