def finditer(self, x):
    """Like re.finditer but skips matches outside of configured range."""
    for match in self.constructor.regex.finditer(x):
      uid = int(match.group("uid"))
      if self._in_range(uid):
        yield match
Like re.finditer but skips matches outside of configured range.
language/fruit/rendering_utils.py