The reconvert Module

(Obsolete) The reconvert module, shown in Example 14-34, converts old-style regular expressions as used by the regex module to the new style used by the re module. It can also be used as a command-line tool.

Example 14-34. Using the reconvert Module
File: reconvert-example-1.py

import reconvert

for pattern in "abcd", "a(b*c)d", "":
 print pattern, "=>", reconvert.convert(pattern)

abcd => abcd
a(b*c)d => a(b*c)d
 => w+

Core Modules

More Standard Modules

Threads and Processes

Data Representation

File Formats

Mail and News Message Processing

Network Protocols

Internationalization

Multimedia Modules

Data Storage

Tools and Utilities

Platform-Specific Modules

Implementation Support Modules

Other Modules



Python Standard Library
Python Standard Library (Nutshell Handbooks) with
ISBN: 0596000960
EAN: 2147483647
Year: 2000
Pages: 252
Authors: Fredrik Lundh

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net