findall(string [pos [endpos]]identical to the findall(function pos and endpos specify the starting and ending positions for the search finditer(string [pos [endpos]]identical to the finditer(function pos and endpos specify the starting and ending positions for the search match(string [pos[endpos]checks whether zero or more characters at the beginning of string match pos and endpos specify the range of string to be searched returns matchobject for match and returns none otherwise search(string [pos[endpos]searches string for match pos and endpos specify the starting and ending positions for the search returns matchobject for match and returns none otherwise split(string [maxsplit ]identical to the split(function sub(replstring [count ]identical to the sub(function subn(replstring [count ]identical to the subn(function match objects the matchobject instances returned by search(and match(contain information about the contents of groups as well as positional data about where matches occurred matchobject instancemhas the following methods and attributesm expand(templatereturns string that would be obtained by doing regular-expression backslash substitution on the string template numeric back-references such as "\ and "\ and named references such as "\gand "\gare replaced by the contents of the corresponding group note that these sequences should be specified using raw strings or with literal backslash character such as '\ or '\\ group([group group ]returns one or more subgroups of the match the arguments specify group numbers or group names if no group name is giventhe entire match is returned if only one group is givena string containing the text matched by the group is returned otherwisea tuple containing the text matched by each of the requested groups is returned an indexerror is raised if an invalid group number or name is given groups([default]returns tuple containing the text matched by all groups in pattern default is the value returned for groups that didn' participate in the match (the default is nonef lib fl ff