I'd like to get a String array from a String that is delimited with spaces (" ") and commas. Is there a clever way to do this?
For example, if the string was:
cat dog giraffe "big elephant" snake
I'd like the resulting array to contain strings
cat
dog
giraffe
big elephant
snake
I know I could do a Split(str, " ") but the result would differ from what I wanted. I've never used RegEx, but I have a hunch that the solution might have something to do with it.