I know how to use Java's string split method, like this
String s="a,b,c";
s.split(",");
But how to split the following lines :
FirstName,LastName,Companies,Title,EmailAddress,PhoneNumbers,Tags,Note
Tom,Smith,ABC Co.,Manager,toms@xyz.com,,,
John,White,"Some-Company, Inc.","Network Manager, Architect",xyz@abc.com,,,
It's easy to handle the 1st 2 lines, but the 3rd line has some trouble, because it's including [,] inside ["], any suggestions ?
Edit : I've looked into the other 2 similar questions and answers, but they are different from my question, my question has [,] as delimiter, other 2 questions have a space character as delimiter, and space is also present in my question which complicates matter, so if I use that answer, it won't work, please don't mark it as a duplicate.