I have a long string from a .txt-file, containing several sentences and dates that I want to split up.
The syntax is like this
01-01-15: Here is some text
02-01-15: Here is some other text
05-06-17: Here is some new text
06-06-17: Here is some text
taking up
several lines
07-06-17: And so on
Since some of the sentences take up several lines I cannot use text.split("\n") - but what can I do instead then?
All sentences start with xx-xx-xx where x is a number.