Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
str.find(sub) solution in Clear category for Between Markers by David_Jones
def between_markers(text, begin, end):
i, j = text.find(begin), text.find(end)
if i < 0:
return text if j < 0 else text[:j]
i += len(begin)
return text[i:] if j < 0 else text[i:j]
June 17, 2019