Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
text.find or None solution in Clear category for Between Markers by StefanPochmann
def between_markers(text: str, begin: str, end: str) -> str:
start = text.find(begin) + len(begin) if begin in text else None
stop = text.find(end) if end in text else None
return text[start:stop]
Nov. 13, 2017
Comments: