Assume you have a string of the form "word1 word2 word3 word4"
. What is the simplest way to split it such that split[0] = "word1 word2"
and split[1] = "word3 word4"
?
EDIT: Clarifying
I want to split such that instead of having split[0] = "word1", I have the first 2 words (I agree it was not clear) and all the other words in split[1], ie on the second space