I have some string example :
String1. “Today is beautiful day”
String2. “I love Hanoi much”
String3. “I like playing football”
I want to get some text between spaces in this string. Example in string 1, i want to have text1 = “Today”,
text2 = “is”, text3 = “beautiful” and text4 = “day”. The same for string2 and string3.
My string always have 3 space.
Thanks.
1 Answer