]> granicus.if.org Git - python/commitdiff
The 'l' flag (locale specific matching) has been renamed to 'L'.
authorGuido van Rossum <guido@python.org>
Wed, 10 Dec 1997 23:05:53 +0000 (23:05 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 10 Dec 1997 23:05:53 +0000 (23:05 +0000)
Doc/lib/libre.tex
Doc/libre.tex
Modules/pypcre.c

index 6f216a78e08ac4048004342234e516796f3162ae..b63a5fac19b485c67075f696837e38c6c601645d 100644 (file)
@@ -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{(?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
 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.
index 6f216a78e08ac4048004342234e516796f3162ae..b63a5fac19b485c67075f696837e38c6c601645d 100644 (file)
@@ -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{(?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
 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.
index 5d41cc14b848245eb8de277c8d76d589c555b280..797d955b397c3223220b1500078550e1b74350bb 100644 (file)
@@ -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;