Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
index solution in Clear category for Between Markers by katnic
def between_markers(txt: str, bgn: str, end: str) -> str:
if bgn in txt and end in txt and txt.index(bgn) > txt.index(end):
return ''
else:
return txt.split(bgn)[-1].split(end)[0]
Aug. 13, 2021
Comments: