Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Between Markers by yynozk
import re
def between_markers(text: str, begin: str, end: str) -> str:
if re.search(f"{re.escape(end)}.*{re.escape(begin)}", text):
return ""
return text.split(begin)[-1].split(end)[0]
March 26, 2018