import re


def get_labelled_triplet (label, table):
    """Looks for lines with the format
    
        label:   value value value
        
    and returns value, value, value.
    """
    for l in table:
        m = re.search ('%s\s*:?\s*([\-\+\.01-9E]+|NAN|INF)\s+([\-\+\.01-9E]+|NAN|INF)\s+([\-\+\.01-9E]+|NAN|INF)' % label, l)
        if m:
            return (m.group(1), m.group(2), m.group(3))
    return None