I am trying to split a csv string with comma as delimiter.
val string ="A,B,"Hi,There",C,D"
I cannot use string.split(",")
because it will split "Hi,There"
as two different columns. Can I use regex to solve this? I came around scala-csv parser
which I dont want to use. I hope there is a better method to solve this problem.I know this is not a trivial problem. It'll be helpful if people can share their approaches to solve this problem.