I want to split a string into a list or array.
Input: green,"yellow,green",white,orange,"blue,black"
The split character is the comma (,), but it must ignore commas inside quotes.
The output should be:
- green
- yellow,green
- white
- orange
- blue,black
Thanks.
Actually this is easy enough to just use match :
Output :
Explanation :