From: Guido van Rossum Date: Mon, 27 Feb 1995 17:52:35 +0000 (+0000) Subject: document restriction on group names X-Git-Tag: v1.2b4~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7defee7a06637633d3561f752b644b21d4797243;p=thirdparty%2FPython%2Fcpython.git document restriction on group names --- diff --git a/Doc/lib/libregex.tex b/Doc/lib/libregex.tex index f3df6841be4d..10abece2ee33 100644 --- a/Doc/lib/libregex.tex +++ b/Doc/lib/libregex.tex @@ -88,7 +88,8 @@ parentheses-enclosed group begins with a group name in angular brackets, e.g. \code{'\e([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} diff --git a/Doc/libregex.tex b/Doc/libregex.tex index f3df6841be4d..10abece2ee33 100644 --- a/Doc/libregex.tex +++ b/Doc/libregex.tex @@ -88,7 +88,8 @@ parentheses-enclosed group begins with a group name in angular brackets, e.g. \code{'\e([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}