Suppose i want my text file contains a list of commands:
1. eat, food
7am
2. brush, teeth
8am
3. crack, eggs
1pm
How can we get:
"eat, food\n7am"
"brush, teeth\n8am"
"crack, eggs\n1pm"
I'm trying to use the classic split()
with loops, but so far i haven't figured out how to get rid of the numbers.. Any suggestions?