Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
74c5c68b
Commit
74c5c68b
authored
Dec 10, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The 'l' flag (locale specific matching) has been renamed to 'L'.
parent
564c8ffd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
Doc/lib/libre.tex
Doc/lib/libre.tex
+3
-2
Doc/libre.tex
Doc/libre.tex
+3
-2
Modules/pypcre.c
Modules/pypcre.c
+2
-2
No files found.
Doc/lib/libre.tex
View file @
74c5c68b
...
...
@@ -164,10 +164,11 @@ class: \code{[(] [)]}.
determines what the meaning and further syntax of the construct is.
Following are the currently supported extensions.
%
\item
[\code{(?i
lmsx)}]
(One or more letters from the set 'i', 'l
', 'm', 's',
\item
[\code{(?i
Lmsx)}]
(One or more letters from the set 'i', 'L
', 'm', 's',
'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
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.
%
\item
[\code{(?:...)}]
A non-grouping version of regular parentheses.
...
...
Doc/libre.tex
View file @
74c5c68b
...
...
@@ -164,10 +164,11 @@ class: \code{[(] [)]}.
determines what the meaning and further syntax of the construct is.
Following are the currently supported extensions.
%
\item
[\code{(?i
lmsx)}]
(One or more letters from the set 'i', 'l
', 'm', 's',
\item
[\code{(?i
Lmsx)}]
(One or more letters from the set 'i', 'L
', 'm', 's',
'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
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.
%
\item
[\code{(?:...)}]
A non-grouping version of regular parentheses.
...
...
Modules/pypcre.c
View file @
74c5c68b
...
...
@@ -1755,7 +1755,7 @@ for (;; ptr++)
{
case
'#'
:
case
'i'
:
case
'
l
'
:
case
'
L
'
:
case
'm'
:
case
's'
:
case
'x'
:
...
...
@@ -2476,7 +2476,7 @@ while ((c = *(++ptr)) != 0)
options
|=
PCRE_CASELESS
;
continue
;
}
else
if
((
c
=
*
ptr
)
==
'
l
'
)
else
if
((
c
=
*
ptr
)
==
'
L
'
)
{
options
|=
PCRE_LOCALE
;
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment