I want to write a regex for splitting some protocol I have (up to) 4 sections, divided by ;
. My problem is that if said ;
is between quotation marks, I want to ignore it. How do I do that?
I don't want my groups to terminate when the ;
is between quotation marks.
This is what I've got so far -
((?:.)+?;)
example input -
_-₪* #,##0.00_-;-₪* #,##0.00_-;" ; asd"_-₪* "-"??_-;_-@_-
should return
group1 - _-₪* #,##0.00_-;
group2 - -₪* #,##0.00_-;
group3 - " ; asd"_-₪* "-"??_-;
group4 - _-@_-
Thanks