From 7defee7a06637633d3561f752b644b21d4797243 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 27 Feb 1995 17:52:35 +0000 Subject: document restriction on group names --- Doc/lib/libregex.tex | 3 ++- Doc/libregex.tex | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libregex.tex b/Doc/lib/libregex.tex index f3df684..10abece 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 f3df684..10abece 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} -- cgit v0.12