def get_field(data, param, linestart='', sep=' '):
 search = re.compile(('(?<=^%s)\\s*(.*)' % linestart), re.MULTILINE)
 find = search.search(data)
 if (find is not None):
  return re.split(('%s' % sep), find.group(1))[param]
 else:
  print ('There is no line which starts with %s in data.' % linestart)
  return None

def get_field ( data , param , linestart = '' , sep = ' ' ) : search = re . compile ( ( '(?<=^%s)\\s*(.*)' % linestart ) , re . MULTILINE ) find = search . search ( data ) if ( find is not None ) : return re . split ( ( '%s' % sep ) , find . group ( 1 ) ) [ param ] else : print ( 'There is no line which starts with %s in data.' % linestart ) return None
retrieves the field named field_name from the java_object .