I have a CSV line and I need to count the number of columns in the line.
Some of the column values contains comma (in this case the value will be surround with quotation marks)
I need a Regex that will match only commas that are not surrounded with quotation marks.
For example:
a,b,c
will match 2 commas
and The line:
a,"b,c",d,"e,f"
will match 3 commas
Thanks,
Nadav.