def find(s, start, seq, l):
    """ extract till a sequence occurs """
    wlen = len(seq)
    cc = s[start:start + wlen]
    while cc != seq and start < l:
        start += 1
        cc = s[start:wlen + start]
    return start
