code: def find(cls, text):
          
          if isinstance(cls.pattern, string_types):
              cls.pattern = re.compile(cls.pattern)
          return cls.pattern.finditer(text)
docs: This method should return an iterable containing matches of this element.