I have a string that has sequential numbers such as the following:
1. this is some text 2. this is more text 3. this is even more text
I'd like to split this into an array that starts with the numbers:
['1. this is some text', '2. this is more text', '3. this is even more text']
I tried the following:
string.split(/(?=\d[.][ ])/g);
This works well when the numbers are 1-9. However, when the numbers >=10, it doesn't work well.
Any ideas on how to get this to work?