I'm trying to transfer my journal from word (txt) to a new app that I'm planning to use. That app accepts as a source a csv file, though so far my journal entry was like the following. With new journals being below with one line break between.
21.08.2022
Journal 1234
Text and more and more text
Some more text
Finaly end
Journal end
This format was quite rigid with first two lines always same format and last one being exactly same, stuff in the middle could be all in one line or in multiple lines. I'm quite confident it is always like that. As long as I can separate the different journals to different rows in csv, I know i can extract the date and journal number in Excel but I'm struggling with separating the journals.
Excel does not allow for long delimiters and when googling I found a solution using pandas though the problem seems to be same. I tried the following.
read_file = pd.read_csv (r'C:\Users\admin\Downloads\journal testing to csv small.txt',delimiter='Journal end')
read_file.to_csv (r'C:\Users\admin\Downloads\journal testing csv.csv', index=None)
No go, I understand since I'm trying to have a long delimiter and the code isn't really used to doing what I hope for. I cannot do this separation manually as I have ~1,5k entries in the journal. Does anyone know how I could do this efficiently?
Many thanks in advance! It will be incredible if I can organise this without spending incredible amount of time doing something very manual.