def PickUpTextBetween(text,startstr,endstr):
    """ Pick up lines between lines having "stratstr" and "endstr" strings
    
    :param str text: text data
    :param str startstr: start string
    :param str endstr: end string
    :return: text list
    :rtype: lst
    """
    rtext=""; start=False
    for ss in text:
        s=ss.strip(); s.replace('\n','')
        if start:
            if endstr != "":
                if s.find(endstr) >=0: start=False
            else:
                if s.strip() == "": start=False
            if not start: continue
        if not start:
            if startstr != "":
                if s.find(startstr) >=0: start=True
            else:
                if s.strip() == "": start=True
            if start: continue
        if start: rtext=rtext+ss+"\n"
    return rtext