I have the following string (the double quotes are part of the string):
"abc def ghi" "%1" "%2"
So the string starts with a double quote, each segment is separated by " " and the string ends with a double quote again. I would like to split this into:
abc def ghi
%1
%2
I tried the following: "(^\")|(\" \")|(\"$)" but that doesn’t give me the desired result.
Don’t complicate it. Just use a string split:
( removes the superfluous / empty entries as well)