How can I read a text file one section at a time between two markers. for example;
**<Start>**
code:2010
<Stop>
<Start>
code:2011
code:2013
**<Stop>**
and have it print out one line at a time:
*code:2010
code:2011
code:2013*
I'm using Python3. I've tried looking at 're' but I think I'm way off base. I'm also on a windows machine and don't believe awk or sed are available to me. Any direction would be welcome. Thank you!