Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Between Markers by chriscombe
def between_markers(text: str, begin: str, end: str) -> str:
start = text.find(begin)+ len(begin) if text.find(begin) > -1 else 0
finish = text.find(end) if text.find(end) > -1 else len(text)
return text[start:finish] if start < finish else ""
Aug. 9, 2020