I am trying to validate a .csv field that must be numeric. Regex for this is pretty straightforward. However, the field can have multiple numbers. In that case, they must be comma separated and the entire field must be enclosed in double quotes like this “23,567,1”. I came up with this Regex to validate this
^”d+(,d+)*”$
But how do I combine the two conditions in one Regex so that both value types – a single number and a coma separated double quoted string of numbers get accepted?