I have a string like this here:
"BLAX", "BLAY", "BLAZ, BLUBB", "BLAP"
And yes the double quotes are within this string.
Now I want to split this string into several parts with mystring.split(",")
What I got is this
"BLAX"
"BLAY"
"BLAZ
BLUBB"
"BLAP"
But what I want is this:
"BLAX"
"BLAY"
"BLAZ, BLUBB"
"BLAP"
How can I achieve this and as well I want to keep the double quotes? I need this because I work with toml files.
Solution: Thanks @Giacomo Alzetta
I used the split command with the regular expression. Thanks also for explaining this!