i tried this:
but it didn't work. what can i else do to make it work? btw im using java's string.split().
which will split on one or more spaces only if those spaces are followed by zero, or an even number of quotes (all the way to the end of the string!).
The following demo:
produces the following output:
text = a "b c d" e "f g" h a "b c d" e "f g" h
Does this work?
Sorry I misunderstood your question
add this from Bart's explanation