class_docstr: This is regular expression string search helper for the
  spawn.expect_any() method. This helper class is for powerful
  pattern matching. For speed, see the helper class, searcher_string.
  
  Attributes:
  
      eof_index     - index of EOF, or -1
      timeout_index - index of TIMEOUT, or -1
  
  After a successful match by the search() method the following attributes
  are available:
  
      start - index into the buffer, first byte of match
      end   - index into the buffer, first byte after match
      match - the re.match object returned by a successful re.search
class_docstr_tok: ["This","is","regular","expression","string","search","helper","for","the","spawn.expect_any","(",")","method",".","This","helper","class","is","for","powerful","pattern","matching",".","For","speed",",","see","the","helper","class",",","searcher_string",".","Attributes",":","eof_index","-","index","of","EOF",",","or","-1","timeout_index","-","index","of","TIMEOUT",",","or","-1","After","a","successful","match","by","the","search","(",")","method","the","following","attributes","are","available",":","start","-","index","into","the","buffer",",","first","byte","of","match","end","-","index","into","the","buffer",",","first","byte","after","match","match","-","the","re.match","object","returned","by","a","successful","re.search"]
docstr: This returns a human-readable string that represents the state of
  the object.
docstr_tok: ["This","returns","a","human-readable","string","that","represents","the","state","of","the","object","."]
code: def __str__(self):
      """This returns a human-readable string that represents the state of
      the object."""
  
      # ss = [(n, '    %d: re.compile("%s")' %
      #    (n, repr(s.pattern))) for n, s in self._searches]
      ss = list()
      for n, s in self._searches:
          ss.append((n, "    %d: re.compile(%r)" % (n, s.pattern)))
      ss.append((-1, "searcher_re:"))
      if self.eof_index >= 0:
          ss.append((self.eof_index, "    %d: EOF" % self.eof_index))
      if self.timeout_index >= 0:
          ss.append(
              (
                  self.timeout_index,
                  "    %d: TIMEOUT" % self.timeout_index,
              )
          )
      ss.sort()
      ss = list(zip(*ss))[1]
      return "\n".join(ss)
  
imports: import time
  from .exceptions import EOF, TIMEOUT
label_desc: Use image node_id 2 for calling the searcher_re obj's underlying member method code with example usage: obj.__str__() and returns: str