# 4 String Services

The modules described in this chapter provide a wide range of string manipulation operations. Here's an overview:

string
  -- Common string operations.

regex
  -- Regular expression search and match operations.

regsub
  -- Substitution and splitting operations that use regular expressions.

struct
  -- Interpret strings as packed binary data.

StringIO
  -- Read and write strings as if they were files.

- 4.1 Standard Module `string`
- 4.2 Built-in Module `re`
  - 4.2.1 Regular Expression Syntax
  - 4.2.2 Module Contents
  - 4.2.3 Regular Expression Objects
  - 4.2.4 MatchObjects
- 4.3 Built-in Module `regex`
  - 4.3.1 Regular Expressions
  - 4.3.2 Module Contents
- 4.4 Standard Module `regsub`
- 4.5 Built-in Module `struct`
- 4.6 Standard Module `StringIO`
- 4.7 Standard Module `soundex`