code: def filter(self, texts):
          u
          return (text for text in texts if self.regex.match(text) is not None)
docs: u"""
          Returns a generator yielding the elements of `texts` matching this pattern.
  
          :type texts: typing.Iterable[text_type]
          :param texts: An iterable collection of texts to match
          :rtype: typing.Iterable[text_type]
          :return: A generator of filtered elements.