I'm parsing a Twitter Archive .csv and having some problems since the fields are separeted by commas but at the tweet field (text field) there's also commas. So I've tried this:
String line;
while ((line = br.readLine()) != null){
String[] split = line.split("\\s*,\\s*");
for (int i = 0; i < split.length; i++) {
if (!(split[i] == null) || !(split[i].length() == 0)) {
// adding some stuff
line.split("\\s*\"\\s*");
// adding some other stuff
The thing is, trying to change the way fields are splitted when it comes to the tweet field. But the second split doesn't work at all and tweets with commas are not added.
What should I do? Thanks a lot!