gecosistema_lite/strings.py
def textin(text, prefix, postfix, casesensitive=True):
    """
    textin - return text between prefix and suffix excluded
    """
    if casesensitive:
        g = re.search(r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')', text)
    else:
        g = re.search(r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')', text, re.IGNORECASE)

    return g.group() if g else ""

    textin - return text between prefix and suffix excluded
    
return text between prefix and suffix excluded
return text between prefix and suffix excluded
def textin(text, prefix, postfix, casesensitive=True):
    if casesensitive:
        g = re.search(r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')', text)
    else:
        g = re.search(r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')', text, re.IGNORECASE)
    return g.group() if g else ""
def textin ( text , prefix , postfix , casesensitive = True ) : if casesensitive : g = re . search ( r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')' , text ) else : g = re . search ( r'(?<=' + prefix + ')(.*?)(?=' + postfix + ')' , text , re . IGNORECASE ) return g . group ( ) if g else ""
textin - return text between prefix and suffix excluded
textin - return text between prefix and suffix excluded
"""
    textin - return text between prefix and suffix excluded
    """
text
prefix
postfix
casesensitive