Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
if else solution in Clear category for Between Markers by Olpag
def between_markers(text: str, begin: str, end: str) -> str:
m1 = 0 if text.find(begin) < 0 else text.find(begin) + len(begin)
m2 = len(text) if text.find(end) < 0 else text.find(end)
return text[m1:m2]
Feb. 8, 2019
Comments: