code: def _limit(lower, upper):
      
      if ((lower < 0) or (upper <= 0) or (upper < lower)):
          raise Exception("Illegal argument to _limit")
      return unicod("{%d,%d}") % (lower, upper)
docs: Returns a regular expression quantifier with an upper and lower limit.