Python logo

Föregående titel

Built-in Exceptions

Nästa titel

string — Common string operations

Denna sidan

  • Rapportera ett fel
  • Visa källa

Navigering

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.14.0 Documentation »
  • The Python Standard Library »
  • 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
    • Module Contents
      • 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 Objects
    • SequenceMatcher Examples
    • Differ Objects
    • 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

Föregående titel

Built-in Exceptions

Nästa titel

string — Common string operations

Denna sidan

  • Rapportera ett fel
  • Visa källa
«

Navigering

  • index
  • moduler |
  • nästa |
  • föregående |
  • Python logo
  • Python »
  • 3.14.0 Documentation »
  • The Python Standard Library »
  • Text Processing Services
  • |
  • |
© Upphovsrätt 2001 Python Software Foundation.
Denna sida är licensierad enligt Python Software Foundation License version 2.
Exempel, recept och annan kod i dokumentationen är dessutom licensierade under Zero Clause BSD-licensen.
Se Historik och licens för mer information.

Python Software Foundation är ett icke-vinstdrivande företag. Donera.

Senast uppdaterad nov. 22, 2025 (06:59 UTC). Har du hittat ett fel?
Skapad med hjälp av Sphinx 8.2.3.