|
compile(pattern,
flags=0)
Compile a regular expression pattern, returning a pattern
object. |
|
|
|
escape(pattern)
Escape all non-alphanumeric characters in pattern. |
|
|
|
findall(pattern,
string,
flags=0)
Return a list of all non-overlapping matches in the string. |
|
|
|
finditer(pattern,
string,
flags=0)
Return an iterator over all non-overlapping matches in the
string. |
|
|
|
match(pattern,
string,
flags=0)
Try to apply the pattern at the start of the string, returning a
match object, or None if no match was found. |
|
|
|
purge()
Clear the regular expression cache |
|
|
|
search(pattern,
string,
flags=0)
Scan through string looking for a match to the pattern, returning
a match object, or None if no match was found. |
|
|
|
split(pattern,
string,
maxsplit=0)
Split the source string by the occurrences of the pattern,
returning a list containing the resulting substrings. |
|
|
|
sub(pattern,
repl,
string,
count=0)
Return the string obtained by replacing the leftmost
non-overlapping occurrences of the pattern in string by the
replacement repl. |
|
|
|
subn(pattern,
repl,
string,
count=0)
Return a 2-tuple containing (new_string, number). |
|
|
|
template(pattern,
flags=0)
Compile a template pattern, returning a pattern object |
|
|