Skip to content
murmot

Results for “replace string method python docs code site:docs.python.org 2”

  • docs.python.org

    re — Regular expression operations — Python 3.15.2 documentation

    1 day ago · So r"\n" is a two-character string containing '\' and 'n', while "\n" is a one-character string containing a newline. Usually patterns will be expressed in Python code using this raw string notation. It is important to note that most regular expression operations are available as module-level functions and methods on compiled regular expressions.

  • docs.python.org

    Python 3.15.2 documentation

    Or all "What's new" documents since Python 2.0. Tutorial Start here: a tour of Python's syntax and features. Built-ins reference Built-in functions and classes.

  • docs.python.org

    Regular expression HOWTO — Python 3.15.2 documentation

    1 day ago · Regular expression HOWTO ¶ Abstract This document is an introductory tutorial to using regular expressions in Python with the re module. It provides a gentler introduction than the corresponding section in the Library Reference. Introduction ¶ Regular expressions (called REs, or regexes, or regex patterns) are essentially a tiny, highly specialized programming language embedded inside Python ...

  • docs.python.org

    5. Data Structures — Python 3.15.2 documentation

    17 hours ago · Lexicographical ordering for strings uses the Unicode code point number to order individual characters. Some examples of comparisons between sequences of the same type: ... Note that comparing objects of different types with < or > is legal provided that the objects have appropriate comparison methods.

  • docs.python.org

    Python 3.15.2 documentation

    1 day ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's syntax and features Built-ins reference Built-in functions and classes Library reference Standard library modules Language reference Syntax and language elements Python setup and usage How to install, configure, and use Python ...