Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
split solution in Clear category for Between Markers by kamjir
def between_markers(text: str, begin: str, end: str) -> str:
"""
returns substring between two given markers
"""
if text.find(begin)>text.find(end) and begin in text and end in text:
return ""
return text.split(end)[0].split(begin)[-1]
Oct. 15, 2020
Comments: