Pages for logged out editors learn more
def between(left,right,s): before,_,a = s.partition(left) a,_,after = a.partition(right) return before,a,after