Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Between Markers by FromVault13
def between_markers(text: str, begin: str, end: str) -> str:
"""
returns substring between two given markers
"""
string = text.split(begin)
if len(string) == 1: return string[0].split(end)[0]
if end in string[0]: return ''
return string[1].split(end)[0]
June 14, 2018