mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
mass changes; fix titles; add examples; correct typos; clarifications;
unified style; etc.
This commit is contained in:
parent
7760cdea81
commit
470be14c8a
131 changed files with 1960 additions and 1114 deletions
|
@ -44,12 +44,13 @@ The module defines these functions, and an exception:
|
|||
\begin{funcdesc}{compile}{pattern\optional{\, translate}}
|
||||
Compile a regular expression pattern into a regular expression
|
||||
object, which can be used for matching using its \code{match} and
|
||||
\code{search} methods, described below. The optional
|
||||
\code{search} methods, described below. The optional argument
|
||||
\var{translate}, if present, must be a 256-character string
|
||||
indicating how characters (both of the pattern and of the strings to
|
||||
be matched) are translated before comparing them; the \code{i}-th
|
||||
element of the string gives the translation for the character with
|
||||
ASCII code \code{i}.
|
||||
\ASCII{} code \code{i}. This can be used to implement
|
||||
case-insensitive matching; see the \code{casefold} data item below.
|
||||
|
||||
The sequence
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue