I wish to have have the following String
!cmd 45 90 "An argument" Another AndAnother "Another one in quotes" to become an array of the following
{ "!cmd", "45", "90", "An argument", "Another", "AndAnother", "Another one in quotes" }
I tried
new StringTokenizer(cmd, "\"")
but this would return "Another" and "AndAnother as "Another AndAnother" which is not the desired effect.
Thanks.
EDIT: I have changed the example yet again, this time I believe it explains the situation best although it is no different than the second example.