Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Between Markers by pakicetus
def between_markers(text: str, begin: str, end: str) -> str:
start = text.index(begin)+len(begin) if begin in text else 0
finish = text.index(end) if end in text else len(text)
return(text[start:finish])
July 15, 2020
Comments: