Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Between Markers by oLeBeLo
def between_markers(text: str, begin: str, end: str) -> str:
cut_text = text.split(end)[0] if end in text else text
if begin in text and begin not in cut_text:
return ""
return cut_text.split(begin)[1] if begin in text else cut_text
March 11, 2020
Comments: