Python logo

موضوع قبلی

Introduction

موضوع بعدی

string --- Common string operations

This page

  • Report a bug
  • Show source
  • Show translation source

ناوبری

  • فهرست
  • ماژول ها |
  • بعدی |
  • قبلی |
  • Python logo
  • Python »
  • 3.13.15 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
    • 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
    • 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

موضوع قبلی

Introduction

موضوع بعدی

string --- Common string operations

This page

  • Report a bug
  • Show source
  • Show translation source
«

ناوبری

  • فهرست
  • ماژول ها |
  • بعدی |
  • قبلی |
  • Python logo
  • Python »
  • 3.13.15 Documentation »
  • The Python standard library »
  • Text Processing Services
  • |
  • |
© حق نشر 2001-2026, Python Software Foundation.
این صفحه تحت مجوز بنیاد نرم‌افزار پایتون نسخه ۲ منتشر شده است.
مثال‌ها، دستورالعمل‌ها، و سایر کدهای موجود در مستندات همچنین تحت مجوز بدون بند BSD منتشر شده‌اند.
برای اطلاعات بیشتر به تاریخچه و مجوز مراجعه کنید.

بنیاد نرم‌افزار پایتون یک شرکت غیرانتفاعی است. لطفاً کمک مالی کنید.

آخرین به‌روزرسانی در سپتامبر 25, 2026 (13:29 UTC). آیا اشکالی یافتید؟
ساخته شده با Sphinx 8.2.3.