Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Between Markers by hell0
def between_markers(text: str, begin: str, end: str) -> str:
if begin not in text:
return text.split(end)[0]
if end in text.split(begin)[0]:
return ''
return text.split(begin)[1].split(end)[0]
May 18, 2021