@staticmethod
def _find_between(s, first, last):
    """Finds the substring between two strings."""
    try:
        start = s.index(first) + len(first)
        end = s.index(last, start)
        return s[start:end]
    except ValueError:
        return ''
