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