For example:
\"Angry Birds 2.4.1\".split(\" \", 2) => [\"Angry\", \"Birds 2.4.1\"]
How can I split the string into: [\"Angry Bir
[\"Angry Bir
class String def divide_into_two_from_end(separator = ' ') self.split(separator)[-1].split().unshift(self.split(separator)[0..-2].join(separator)) end end "Angry Birds 2.4.1".divide_into_two_from_end(' ') #=> ["Angry Birds", "2.4.1"]