文本處理 (Text Processing) 服務
*******************************

本章節介紹的模組 (module) 提供了廣泛的字串操作與其他文本處理服務。

在 Binary Data Services 下所描述的 "codecs" 模組也與文本處理高度相關。
另外也請參閱在 Text Sequence Type --- str 中所描述的 Python 內建字串型
別。

* "string" --- Common string operations

  * String constants

  * Custom String Formatting

  * Format String Syntax

    * Format Specification Mini-Language

    * Format examples

  * Template strings

  * Helper functions

* "re" --- 正規表示式 (regular expression) 操作

  * Regular Expression Syntax

  * 模組內容

    * Flags

    * Functions

    * Exceptions

  * Regular Expression Objects

  * Match Objects

  * Regular Expression Examples

    * Checking for a Pair

    * Simulating scanf()

    * search() vs. match()

    * Making a Phonebook

    * Text Munging

    * Finding all Adverbs

    * Finding all Adverbs and their Positions

    * Raw String Notation

    * Writing a Tokenizer

* "difflib" --- Helpers for computing deltas

  * SequenceMatcher 物件

  * SequenceMatcher 範例

  * Differ Objects

  * Differ Example

  * A command-line interface to difflib

* "textwrap" --- Text wrapping and filling

* "unicodedata" --- Unicode Database

* "stringprep" --- Internet String Preparation

* "readline" --- GNU readline interface

  * Init file

  * Line buffer

  * History file

  * History list

  * Startup hooks

  * Completion

  * 範例

* "rlcompleter" --- Completion function for GNU readline
