def get_field(self, name):
prog = re.compile(name)<EOL>l = []<EOL>for i in self.classes.class_def:<EOL><INDENT>for j in i.get_fields():<EOL><INDENT>if prog.match(j.get_name()):<EOL><INDENT>l.append(j)<EOL><DEDENT><DEDENT><DEDENT>return l<EOL>
Return a list all fields which corresponds to the regexp

:param name: the name of the field (a python regexp)

:rtype: a list with all :class:`EncodedField` objects