def METHOD_NAME(listitem):
    out = []
    NOTTED = 0
    i = 0
    while 1:
        m = ListItem.search(listitem[i:])
        if not m:
            break
        i = i + m.end()
        out.append(m.group('listitem'))
        if m.group('not'):
            NOTTED = 1
    return NOTTED, out