So I have this string:
apple;banana;orange, kiwi;onion,strawberry, avocado
the above string should split into:
apple
banana
orange, kiwi
onion
strawberry
avocado
I found a regex function but it only splits the double quotes " "
str.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)");
I tried to replace " " with ; ;
str.split(",(?=(?:[^\;]*\;[^\;]*\;)*[^\;]*$)");
but it does't work when I replaced with ;