| Function Summary |
| |
match(pattern,
string,
flags) Try to apply the pattern at the start of the string, returning a match
object, or None if no match was found. |
| |
search(pattern,
string,
flags) Scan through string looking for a match to the pattern, returning a
match object, or None if no match was found. |
| |
sub(pattern,
repl,
string,
count) 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) Return a 2-tuple containing (new_string, number). |
| |
split(pattern,
string,
maxsplit) Split the source string by the occurrences of the pattern, returning a
list containing the resulting substrings. |
| |
findall(pattern,
string,
maxsplit) Return a list of all non-overlapping matches in the string. |
| |
compile(pattern,
flags) Compile a regular expression pattern, returning a pattern object. |
| |
purge() Clear the regular expression cache |
| |
template(pattern,
flags) Compile a template pattern, returning a pattern object |
| |
escape(pattern) Escape all non-alphanumeric characters in pattern. |