mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
The 'l' flag (locale specific matching) has been renamed to 'L'.
This commit is contained in:
parent
d0753e20b2
commit
bd49ac4492
3 changed files with 8 additions and 6 deletions
|
|
@ -164,10 +164,11 @@ class: \code{[(] [)]}.
|
||||||
determines what the meaning and further syntax of the construct is.
|
determines what the meaning and further syntax of the construct is.
|
||||||
Following are the currently supported extensions.
|
Following are the currently supported extensions.
|
||||||
%
|
%
|
||||||
\item[\code{(?ilmsx)}] (One or more letters from the set 'i', 'l', 'm', 's',
|
\item[\code{(?iLmsx)}] (One or more letters from the set 'i', 'L', 'm', 's',
|
||||||
'x'.) The group matches the empty string; the letters set the
|
'x'.) The group matches the empty string; the letters set the
|
||||||
corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
|
corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
|
||||||
expression. This is useful if you wish include the flags as part of the regular
|
expression. (The flag 'L' is uppercase because it is not in standard Perl.)
|
||||||
|
This is useful if you wish include the flags as part of the regular
|
||||||
expression, instead of passing a \var{flag} argument to the \code{compile} function.
|
expression, instead of passing a \var{flag} argument to the \code{compile} function.
|
||||||
%
|
%
|
||||||
\item[\code{(?:...)}] A non-grouping version of regular parentheses.
|
\item[\code{(?:...)}] A non-grouping version of regular parentheses.
|
||||||
|
|
|
||||||
|
|
@ -164,10 +164,11 @@ class: \code{[(] [)]}.
|
||||||
determines what the meaning and further syntax of the construct is.
|
determines what the meaning and further syntax of the construct is.
|
||||||
Following are the currently supported extensions.
|
Following are the currently supported extensions.
|
||||||
%
|
%
|
||||||
\item[\code{(?ilmsx)}] (One or more letters from the set 'i', 'l', 'm', 's',
|
\item[\code{(?iLmsx)}] (One or more letters from the set 'i', 'L', 'm', 's',
|
||||||
'x'.) The group matches the empty string; the letters set the
|
'x'.) The group matches the empty string; the letters set the
|
||||||
corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
|
corresponding flags (re.I, re.L, re.M, re.S, re.X) for the entire regular
|
||||||
expression. This is useful if you wish include the flags as part of the regular
|
expression. (The flag 'L' is uppercase because it is not in standard Perl.)
|
||||||
|
This is useful if you wish include the flags as part of the regular
|
||||||
expression, instead of passing a \var{flag} argument to the \code{compile} function.
|
expression, instead of passing a \var{flag} argument to the \code{compile} function.
|
||||||
%
|
%
|
||||||
\item[\code{(?:...)}] A non-grouping version of regular parentheses.
|
\item[\code{(?:...)}] A non-grouping version of regular parentheses.
|
||||||
|
|
|
||||||
|
|
@ -1755,7 +1755,7 @@ for (;; ptr++)
|
||||||
{
|
{
|
||||||
case '#':
|
case '#':
|
||||||
case 'i':
|
case 'i':
|
||||||
case 'l':
|
case 'L':
|
||||||
case 'm':
|
case 'm':
|
||||||
case 's':
|
case 's':
|
||||||
case 'x':
|
case 'x':
|
||||||
|
|
@ -2476,7 +2476,7 @@ while ((c = *(++ptr)) != 0)
|
||||||
options |= PCRE_CASELESS;
|
options |= PCRE_CASELESS;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if ((c = *ptr) == 'l')
|
else if ((c = *ptr) == 'L')
|
||||||
{
|
{
|
||||||
options |= PCRE_LOCALE;
|
options |= PCRE_LOCALE;
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue