java split csv files by lines code example Example: java csv line split String[] splitted = string.split(",(?=([^\"]*\"[^\"]*\")*[^\"]*$)", -1);