]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
document restriction on group names
authorGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 17:52:35 +0000 (17:52 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 17:52:35 +0000 (17:52 +0000)
Doc/lib/libregex.tex
Doc/libregex.tex

index f3df6841be4d8654b582992336f58413957533a2..10abece2ee33432c23317e85831ab2d20e0ab0f8 100644 (file)
@@ -88,7 +88,8 @@ parentheses-enclosed group begins with a group name in angular
 brackets, e.g. \code{'\e(<id>[a-z][a-z0-9]*\e)'}, the group can
 be referenced by its name in arguments to the \code{group} method of
 the resulting compiled regular expression object, like this:
-\code{p.group('id')}.
+\code{p.group('id')}.  Group names may contain alphanumeric characters
+and \code{'_'} only.
 \end{funcdesc}
 
 \begin{excdesc}{error}
index f3df6841be4d8654b582992336f58413957533a2..10abece2ee33432c23317e85831ab2d20e0ab0f8 100644 (file)
@@ -88,7 +88,8 @@ parentheses-enclosed group begins with a group name in angular
 brackets, e.g. \code{'\e(<id>[a-z][a-z0-9]*\e)'}, the group can
 be referenced by its name in arguments to the \code{group} method of
 the resulting compiled regular expression object, like this:
-\code{p.group('id')}.
+\code{p.group('id')}.  Group names may contain alphanumeric characters
+and \code{'_'} only.
 \end{funcdesc}
 
 \begin{excdesc}{error}