import re


def GetSizeAnnotationToDraw(annotationList):#{{{
    """Get the size of annotation field"""
    maxSize = 0
    for anno in annotationList:
        m1 = re.search("nTM\s*=\s*[0-9]*", anno)
        m2 = re.search("group of [0-9]*", anno)
        m3 = re.search("[^\s]+", anno)
        pos1 = 0 
        pos2 = 0
        pos3 = 0
        if m1:
            pos1 = m1.end(0)
        if m2:
            pos2 = m2.end(0)
        if m3:
            pos3 = m3.end(0)
        size = max(pos1,pos2, pos3)
        if size > maxSize:
            maxSize = size
    return maxSize