
re — Regular expression operations — Python 3.13.5 …
2 days ago · Regular expressions can contain both special and ordinary characters. Most ordinary characters, like 'A', 'a', or '0', are the simplest regular expressions; they simply match themselves.
string — Common string operations — Python 3.9.22 …
Mar 9, 2022 · New in version 3.7. flags – The regular expression flags that will be applied when compiling the regular expression used for recognizing substitutions. The default value is …
The Python Language Reference — Python 3.15.0a0 documentation
Jun 29, 2025 · The Python Language Reference ¶ This reference manual describes the syntax and “core semantics” of the language. It is terse, but attempts to be exact and complete. The …
Regular Expression HOWTO — Python 3.13.5 documentation
2 days ago · Regular expressions (called REs, or regexes, or regex patterns) are essentially a tiny, highly specialized programming language embedded inside Python and made available …
Index — Python 3.13.5 documentation
5 days ago · in regular expressions ?? in regular expressions @ (at) class definition function definition in struct format strings operator [] (square brackets) in assignment target list in glob …
Library and Extension FAQ — Python 3.12.10 documentation
Mar 12, 2010 · Where is the math.py (socket.py, regex.py, etc.) source file? ¶ If you can’t find a source file for a module it may be a built-in or dynamically loaded module implemented in C, …
The Python Standard Library — Python 3.15.0a0 documentation
2 days ago · The Python Standard Library ¶ While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes …
Functional Programming HOWTO — Python 3.13.5 documentation
Functional Programming HOWTO ¶ Author: A. M. Kuchling Release: 0.32 In this document, we’ll take a tour of Python’s features suitable for implementing programs in a functional style. After …
fnmatch — Unix filename pattern matching — Python 3.13.5 …
1 day ago · >>> import fnmatch, re >>> >>> regex = fnmatch.translate('*.txt') >>> regex '(?s:.*\\.txt)\\Z' >>> reobj = re.compile(regex) >>> reobj.match('foobar.txt') <re.Match object; …
unittest — Unit testing framework — Python 3.13.5 documentation
1 day ago · Like assertWarns() but also tests that regex matches on the message of the triggered warning. regex may be a regular expression object or a string containing a regular expression …