Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Between Markers by Pouf
def between_markers(text: str, begin: str, end: str) -> str:
try:
if text.index(end) < text.index(begin):
return ""
except ValueError:
pass
return text.split(begin)[-1].split(end)[0]
June 28, 2020