Well, the question can probably be formulated better. I have a line.
2008 apple micro pc computer
I want the string to split ' 'for the first 2 delimiters, and then leave it together. so he will return
2008
apple
micro pc computer
This is a composed line, so it can be anything, but it is still the first 2 split, then everything else no matter how much everything else
Another example
apple orange this is the rest of my string and its so long
returns
apple
orange
this is the rest of my string and its so long
user222427
source
share