7
Answers

Split last word from the rest of the string

Photo of sabine

sabine

13y
3.1k
1
Hi,
I have a string with undefined number of words.
I want to split this string in two parts: the last word alone and all the other words in another string.
How is that possible?
Thank you in advance

Answers (7)