Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2 lambdas solution in Creative category for Between Markers by beerus31
def between_markers(text: str, begin: str, end: str) -> str:
x = lambda: text.index(begin) + len(begin) if begin in text else None
y = lambda: text.index(end) if end in text else None
return text[x():y()]
Nov. 30, 2017
Comments: