Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- with open('some_text.txt') as file:
- data = file.read()
- matched = re.findall("----start----\n([^-]+)----end----", data)
- print matched[-1],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement