im parsing a csv file with javascript, that file styles the cells with commas in the numbered values. when parsing it to javascript i get the entire row as one string where the cells are divided by commas, as such:
2, some text,9740127,"₪ 38,850.00","₪ 5,550.00","₪ 28,305","₪ 4,995",22/05/2020
in order to parse the files and create an object from every row i need to match the commas that are Not part of a number, so the end result is:
2
some text
9740127
₪ 38,850.00
₪ 5,550.00
₪ 28,305
₪ 4,995
22/05/2020
i tried matching the commas inside the numbers in hopes to negate it afterwards with that regex:(".\s\d+,\d+[.]?[\d]+")
but i cant seem to target the other commas instead afterwards.
i feel like im close but i cant seem to figure it out, would appreciate the help! Thanks