Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Between Markers solution in Clear category for Between Markers by ddavidse
def between_markers(text: str, begin: str, end: str) -> str:
b_found, e_found = text.find(begin), text.find(end)
b = b_found + len(begin) if b_found > -1 else 0
e = e_found if e_found > -1 else len(text)
return text[b:e]
Jan. 12, 2021
Comments: