This module provides a way to search (or replace) a string by a pattern, known as Regular Expression or regex.
For vast majority of uses, you want the search() and sub() functions documented in Regex Functions.
For writing code using Object Oriented style, see Regex Objects and Methods.
Some functions or methods return their results as object called MatchObject. The following section documents its methods: MatchObject's Methods.
Finally, here is a section that documents the pattern used to match strings: Regex Syntax.
Note: This document is a rewrite of Python 2.4's Official Documentation of its RE module. The original document can be found at http://python.org/doc/2.4/lib/module-re.html
Page created: 2005-04, by Xah Lee. For copyright and terms, see terms.html
