I have a string like this :
"John William Doe 250 / 1000 Adam Smith 500 / 1000 Jane Black 250 / 1000"
As you can see, the string consists of people's names and their shares. There can be any number of people (and shares) and people's names can consist of any number of words.
How can I divide this string to three strings like this :
"John William Doe 250 / 1000"
"Adam Smith 500 / 1000"
"Jane Black 250 / 1000"
I know I need to use regular expression but I couldn't do it myself. Any help is appreciated. Thanks.