July 2007
Intermediate to advanced
128 pages
2h 39m
English
RegExp
Regular expression objects are created with the re.compile function.
flagsReturn the flags argument used when the object was compiled, or 0.
groupindexReturn a dictionary that maps symbolic group names to group numbers.
patternReturn the pattern string used when the object was compiled.
match(string [, pos [, endpos]])search(string [, pos [, endpos]])split(string [, maxsplit=0])sub(repl, string [, count=0])subn(repl, string [, count=0])findall(string)Same as the re module functions, except pattern is implied. pos and endpos give start and end string indexes for the match.