Package rxpy :: Package compat :: Module re :: Class MatchIterator
[hide private]
[frames] | no frames]

Class MatchIterator

source code


A compiled regexp and a string, plus offset state.

Originally, this was implemented as generators in RegexObject, but the standard tests imply the existence of this (otherwise undocumented) class.

Successive calls to match and search increment indices. Methods return None when no more calls will work.

Instance Methods [hide private]
 
__init__(self, re, parsed, text, pos=0, endpos=None, engine=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__parser_state(self) source code
 
next(self, search) source code
 
match(self) source code
 
search(self) source code
 
iter(self, search) source code
 
matchiter(self) source code
 
searchiter(self) source code
 
remaining(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, re, parsed, text, pos=0, endpos=None, engine=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__parser_state(self)

source code 
Decorators:
  • @property

remaining(self)

source code 
Decorators:
  • @property