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 creates an instance that searches for 'patterns' Where
  'patterns' may be a list or other sequence of compiled regular
  expressions, or the EOF or TIMEOUT types.
docstr_tok: ["This","creates","an","instance","that","searches","for","'patterns","'","Where","'patterns","'","may","be","a","list","or","other","sequence","of","compiled","regular","expressions",",","or","the","EOF","or","TIMEOUT","types","."]
code: def __init__(self, patterns):
      """This creates an instance that searches for 'patterns' Where
      'patterns' may be a list or other sequence of compiled regular
      expressions, or the EOF or TIMEOUT types."""
  
      self.eof_index = -1
      self.timeout_index = -1
      self._searches = []
      for n, s in enumerate(patterns):
          if s is EOF:
              self.eof_index = n
              continue
          if s is TIMEOUT:
              self.timeout_index = n
              continue
          self._searches.append((n, s))
  
imports: import time
  from .exceptions import EOF, TIMEOUT
label_desc: Use image node_id 1 to create a new searcher_re object from inherited base classes: object with example: obj = searcher_re(patterns)