Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One line solution in Clear category for Between Markers (simplified) by Teja_002
def between_markers(text, m1, m2):
return text[text.index(m1)+1:text.index(m2)] #returning a substring that starts after the first marker and ends before the second marker
March 9, 2021
Comments: