Suppose I have a string
s ="[ 2323.2323 232.3232 0.2 0.3 3232]"
I want to split it into an array of strings by space delimiter. I also want to preserve a single space between values and ignore the multiple space.
What would be the regular expression to do this?
First get rid of multiple spaces:
Then Split the String up into your array using the split method