re.regex.finditer()

regex.finditer(string[, pos[, endpos]]) Similar to the finditer() function, using the compiled pattern, but also accepts optional pos and endpos parameters that limit the search region like for match().

re.regex.findall()

regex.findall(string[, pos[, endpos]]) Similar to the findall() function, using the compiled pattern, but also accepts optional pos and endpos parameters that limit the search region like for match().

re.purge()

re.purge() Clear the regular expression cache.

re.match.string

match.string The string passed to match() or search().

re.match.start()

match.start([group]) match.end([group]) Return the indices of the start and end of the substring matched by group; group defaults to zero (meaning the whole matched substring). Return -1 if group exists but did not contribute to the match. For a match object m, and a group g that did contribute to the match, the substring matched by group g (equivalent to m.group(g)) is m.string[m.start(g):m.end(g)] Note that m.start(group) will equal m.end(group) if group matched a null string. For example,

re.match.span()

match.span([group]) For a match m, return the 2-tuple (m.start(group), m.end(group)). Note that if group did not contribute to the match, this is (-1, -1). group defaults to zero, the entire match.

re.match.re

match.re The regular expression object whose match() or search() method produced this match instance.

re.match.pos

match.pos The value of pos which was passed to the search() or match() method of a regex object. This is the index into the string at which the RE engine started looking for a match.

re.match.lastindex

match.lastindex The integer index of the last matched capturing group, or None if no group was matched at all. For example, the expressions (a)b, ((a)(b)), and ((ab)) will have lastindex == 1 if applied to the string 'ab', while the expression (a)(b) will have lastindex == 2, if applied to the same string.

re.match.lastgroup

match.lastgroup The name of the last matched capturing group, or None if the group didn’t have a name, or if no group was matched at all.