6. Text Processing Services¶
The modules described in this chapter provide a wide range of stringmanipulation operations and other text processing services.
Thecodecs module described underBinary Data Services is alsohighly relevant to text processing. In addition, see the documentation forPython’s built-in string type inText 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
