Just a quick question regarding the split function
How can I split my string at every 2nd space?
myArray = 'This is a sample sentence that I am using'
myArray = myString.split(" ");
I would like to create a array like this
This is a < 2 spaces sample sentence that < 2 spaces that I am < 2 spaces
and if the last word is not a space how would I handle this...?
any help would be appreciated