Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
indexxx solution in Clear category for Between Markers by Rudeboyz_Squad
def between_markers(text: str, begin: str, end: str) -> str:
b = text.index(begin)+len(begin) if begin and begin in text else 0
e = text.index(end) if end and end in text else len(text)
return text[b:e] if e>b else ''
April 4, 2019
Comments: