GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Introduction
  • string — Common string operations
  • Report a bug
  • Improve this page
  • Show source
  • index
  • modules
  • Python
  • 3.15.2 documentation
  • The Python standard library
  • Text Processing Services

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — Text Processing Services

Text Processing Services¶

The modules described in this chapter provide a wide range of string manipulation operations and other text processing services.

The codecs module described under Binary Data Services is also highly relevant to text processing. In addition, see the documentation for Python’s built-in string type in Text Sequence Type — str.

  • string — Common string operations
    • String constants
    • Custom string formatting
    • Format string syntax
      • Format specification mini-language
      • Format examples
    • Template strings ($-strings)
    • Helper functions
  • string.templatelib — Support for template string literals
    • Template strings
    • Types
    • Helper functions
  • re — Regular expression operations
    • Regular expression syntax
      • Special characters
      • Special sequences
      • Standard escapes
    • Module contents
      • Flags
      • Functions
      • Exceptions
    • Regular expression objects
    • Match objects
    • Regular expression examples
      • Checking for a pair
      • Simulating scanf()
      • search() vs. prefixmatch()
      • prefixmatch() 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
    • Junk heuristic
    • The difflib algorithm
    • Diff generation
    • Junk definition functions
    • SequenceMatcher objects
    • Examples
      • SequenceMatcher examples
      • Differ example
      • A command-line interface to difflib
      • ndiff example
  • 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
    • Example
  • rlcompleter — Completion function for GNU readline
© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Nov 12, 2026 (14:21 UTC). Found a bug?
Created using Sphinx 9.1.1.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.