Definition at line 276 of file sre.py.
def __init__ |
( |
|
self, |
|
|
|
lexicon, |
|
|
|
flags = 0 |
|
) |
| |
def scan |
( |
|
self, |
|
|
|
string |
|
) |
| |
Definition at line 291 of file sre.py.
References Scanner.lexicon, and Scanner.match.
292 def scan(self, string):
294 append = result.append
295 match = self.scanner.scanner(string).match
304 action = self.
lexicon[m.lastindex-1][1]
307 action = action(self, m.group())
308 if action
is not None:
311 return result, string[i:]
The documentation for this class was generated from the following file: