There is such a text:
Start Line 1 Line 2 Line 3 Line 4 Line 5 ... Line N End
Question: How can I get everything between "Start" and "End", taking into account that there can be absolutely any text between them, with different indents .
Source: https://ru.stackoverflow.com/questions/958519/
All Articles
start
andend
can enter? - Viktorov"\n".join(text.split("\n")[1:-1])
- Mikhail Murugov