Compiled regular expression objects returned by
re.compile() have these methods:
.match(s[,[ps][,pe]])
If the start of string matches, return a sMatchObject; if there is no match, return None. If
is given, it specifies the index within ps where
matching is to start; this defaults to 0. If s is
given, it specifies the maximum length of pe that can be
used in matching.
s
.pattern
The string from which this object was compiled.
.search(s[,[ps][,pe]])
Like match(), but matches anywhere in
.
s
.split(s[,maxsplit=m])
Like re.split().
.sub(R,s[,count=c])
Like re.sub().