Xah Lee, ,
This module provides a way to search/replace a string by a pattern, known as Regular Expression or regex.
For vast majority of uses, you want the “search” and “sub” functions.
For writing code using Object Oriented style.
Some functions or methods return their results as object called “MatchObject”.
Documents the regex syntax for matching strings.
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
See also: Notes on Rewriting Python Regex Documentation
For copyright and terms of this page, see terms.html.
blog comments powered by Disqus