Built-in modules for strings¶
The Python standard library contains a number of built-in modules that you can use to manage strings:
Module |
Description |
---|---|
compares with constants such as |
|
searches and replaces text with regular expressions |
|
interprets bytes as packed binary data |
|
helps to calculate deltas, find differences between strings or sequences and create patches and diff files |
|
wraps and fills text, formats text with line breaks or spaces |