[JAVA] Separate one line of csv with a single-byte comma that is not enclosed in double quotes.

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

Separate one line of csv with a single-byte comma that is not enclosed in double quotes.
Determine that the value is a multiple of 〇 in Ruby
Command line that can create a directory structure for building a Laravel environment with Docker in one shot
Cause of is not visible when calling a method of another class in java
Even in Java, I want to output true with a == 1 && a == 2 && a == 3 (gray magic that is not so much as black magic)
When displaying a message with a JSF custom validator, the errorClass of h: message is not applied unless SEVERITY_ERROR is set in the message.