I\'m trying to use
\"value1:value2::value3\".split(\":\");
Problem is that I want it to include the blank results.
It returns:
split does include empty matches in the result, have a look at the docs here. However, by default, trailing empty strings (those at the end of the array) are discarded. If you want to include these as well, try split(":", -1).
split
split(":", -1)