I have a string that looks like this:
aaaaa: lorem ipsum bb: dolor sit amet ccc: no pro movet
What would be the best way to split the string into an array and get the following result in PHP?
array[0]='aaaaa: lorem ipsum';
array[1]='bb: dolor sit amet';
array[2]='ccc: no pro movet';
I can write a function that finds the position of each ":", finds the length of the word before it, and splits the string. But I guess there is an easier way using regular expressions?