BufferedReader br =(File to read);
while((line = br.readLine()) != null){
//Even number of "" behind"Appears "",Regular expression that matches
Pattern cPattern = Pattern.compile(",(?=(([^\"]*\"){2})*[^\"]*$)");
//Even number of "" behind"Appears "",Split the line with
List<String> elem = Arrays.asList(cPattern.split(line, -1));
}
Recommended Posts