Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
BetweenMarkers.c solution in Clear category for Between Markers by trudnopodobny
def between_markers(text: str, begin: str, end: str) -> str:
if begin in text:
first = text.find(begin)+len(begin)
else:
first = 0
if end in text:
last = text.find(end)
else:
last = len(text)
return text[first:last]
Oct. 4, 2018
Comments: