Home | History | Annotate | Download | only in pexpect

Lines Matching refs:match

142 ##    """Raised when the pattern match time exceeds the timeout.
145 ## may never match a pattern.
331 amount of data where you want to match The searchwindowsize does not
404 self.match = None
492 s.append('match: ' + str(self.match))
915 # will never match anything in which case we stop only on EOF.
1286 # Allow dot to match \n
1314 successful match. This may raise exceptions for EOF or TIMEOUT. To
1316 list. That will cause expect to match an EOF or TIMEOUT condition
1320 match in the stream is chosen. If more than one pattern matches at that
1325 # returns 1('foo') even though 'foobar' is a "better" match
1335 After a match is found the instance attributes 'before', 'after' and
1336 'match' will be set. You can see all the data read before the match in
1338 re.MatchObject used in the re match will be in 'match'. If an error
1340 'after' and 'match' will be None.
1347 exception type. The attribute 'match' will be None. This allows you to
1415 escaping regular expression characters that you want to match."""
1450 self.match = searcher.match
1453 # No match at this point
1469 self.match = EOF
1473 self.match = None
1482 self.match = TIMEOUT
1486 self.match = None
1492 self.match = None
1686 After a successful match by the search() method the following attributes
1689 start - index into the buffer, first byte of match
1690 end - index into the buffer, first byte after match
1691 match - the matching string itself
1737 If there is a match this returns the index of that string, and sets
1738 'start', 'end' and 'match'. Otherwise, this returns -1. """
1757 # the match, if any, can only be in the fresh data,
1769 self.match = best_match
1771 self.end = self.start + len(self.match)
1786 After a successful match by the search() method the following attributes
1789 start - index into the buffer, first byte of match
1790 end - index into the buffer, first byte after match
1791 match - the re.match object returned by a succesful re.search
1838 If there is a match this returns the index of that string, and sets
1839 'start', 'end' and 'match'. Otherwise, returns -1."""
1844 # length of a match, and the re module provides no help.
1850 match = s.search(buffer, searchstart)
1851 if match is None:
1853 n = match.start()
1856 the_match = match
1861 self.match = the_match
1862 self.end = self.match.end()