binaryninja.re.Match

class Match

The result of re.match() and re.search(). Match objects always have a boolean value of True.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

end

Return index of the end of the substring matched by group.

expand

Return the string obtained by doing backslash substitution on the string template, as done by the sub() method.

group([group1, …])

Return subgroup(s) of the match by indices or names.

groupdict

Return a dictionary containing all the named subgroups of the match, keyed by the subgroup name.

groups

Return a tuple containing all the subgroups of the match, from 1.

span

For match object m, return the 2-tuple (m.start(group), m.end(group)).

start

Return index of the start of the substring matched by group.

Attributes

endpos

The index into the string beyond which the RE engine will not go.

lastgroup

The name of the last matched capturing group.

lastindex

The integer index of the last matched capturing group.

pos

The index into the string at which the RE engine started looking for a match.

re

The regular expression object.

regs

string

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