I just need logic to validate the below data in CSV file as provided below
2,test2,A block bangalore,9999999999,india
There can be deliberately "," added by the user,but it is enclosed in quotes.
I need to validate each record row wise,how can i split the records so that the only comma separated values are outputted in an array.
I don't need to use any third party tool or open source for the above.
pseudo code provided is very helpful.