Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 1 | \chapter{String Services} |
Fred Drake | 31ecd50 | 1998-02-18 15:40:11 +0000 | [diff] [blame] | 2 | \label{strings} |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 3 | |
| 4 | The modules described in this chapter provide a wide range of string |
| 5 | manipulation operations. Here's an overview: |
| 6 | |
| 7 | \begin{description} |
| 8 | |
| 9 | \item[string] |
| 10 | --- Common string operations. |
| 11 | |
Guido van Rossum | 6d659b3 | 1998-02-11 22:57:10 +0000 | [diff] [blame] | 12 | \item[re] |
| 13 | --- New Perl-style regular expression search and match operations. |
| 14 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 15 | \item[regex] |
| 16 | --- Regular expression search and match operations. |
| 17 | |
| 18 | \item[regsub] |
| 19 | --- Substitution and splitting operations that use regular expressions. |
| 20 | |
| 21 | \item[struct] |
| 22 | --- Interpret strings as packed binary data. |
| 23 | |
Guido van Rossum | 38e2ec4 | 1997-03-03 16:03:05 +0000 | [diff] [blame] | 24 | \item[StringIO] |
| 25 | --- Read and write strings as if they were files. |
| 26 | |
Fred Drake | d6d88ff | 1998-04-12 03:07:35 +0000 | [diff] [blame] | 27 | \item[cStringIO] |
| 28 | --- Faster version of \module{StringIO}, but not subclassable. |
| 29 | |
Guido van Rossum | ecde781 | 1995-03-28 13:35:14 +0000 | [diff] [blame] | 30 | \end{description} |