6. Text Processing Services¶
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services.
The codecs
module described under Binary Data Services is also
highly relevant to text processing. In addition, see the documentation for
Python's built-in string type in Text Sequence Type --- str.
- 6.1.
string
--- Common string operations - 6.2.
re
--- Regular expression operations - 6.3.
difflib
--- Helpers for computing deltas - 6.4.
textwrap
--- Text wrapping and filling - 6.5.
unicodedata
--- Unicode Database - 6.6.
stringprep
--- Internet String Preparation - 6.7.
readline
--- GNU readline interface - 6.8.
rlcompleter
--- Completion function for GNU readline