Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
<title>Between markers</title> solution in Clear category for Between Markers by samatdav02
def between_markers(text: str, begin: str, end: str) -> str:
if begin not in text and end not in text: return text
elif begin not in text: return text[:text.index(end)]
elif end not in text: return text[text.index(begin)+len(begin):]
else: return text[text.index(begin)+len(begin):text.index(end)]
June 30, 2019