diff options
author | Guido van Rossum <guido@python.org> | 1994-08-08 12:30:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-08 12:30:22 (GMT) |
commit | 16d6e7109deb1bcfd8a860cb60c16c02a0ef183b (patch) | |
tree | 81624359068cca2b8476d0894c8cd28788d0762e /Doc/lib/libregex.tex | |
parent | 4b4c664d2e93279c8d749da027000453f9e2cd46 (diff) | |
download | cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.zip cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.tar.gz cpython-16d6e7109deb1bcfd8a860cb60c16c02a0ef183b.tar.bz2 |
Lots of small corrections by Andrew Kuchling (plus all new rotor docs)
Diffstat (limited to 'Doc/lib/libregex.tex')
-rw-r--r-- | Doc/lib/libregex.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libregex.tex b/Doc/lib/libregex.tex index 13b3e20..f3df684 100644 --- a/Doc/lib/libregex.tex +++ b/Doc/lib/libregex.tex @@ -41,7 +41,7 @@ The module defines these functions, and an exception: anywhere!). \end{funcdesc} -\begin{funcdesc}{compile}{pattern\, translate} +\begin{funcdesc}{compile}{pattern\optional{\, translate}} Compile a regular expression pattern into a regular expression object, which can be used for matching using its \code{match} and \code{search} methods, described below. The optional @@ -82,7 +82,7 @@ expressions.) more information. \end{funcdesc} -\begin{funcdesc}{symcomp}{pattern\, translate} +\begin{funcdesc}{symcomp}{pattern\optional{\, translate}} This is like \code{compile}, but supports symbolic group names: if a 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 @@ -108,7 +108,7 @@ equivalents. Compiled regular expression objects support these methods: \renewcommand{\indexsubitem}{(regex method)} -\begin{funcdesc}{match}{string\, pos} +\begin{funcdesc}{match}{string\optional{\, pos}} Return how many characters at the beginning of \var{string} match the compiled regular expression. Return \code{-1} if the string does not match the pattern (this is different from a zero-length @@ -122,7 +122,7 @@ Compiled regular expression objects support these methods: is to start. \end{funcdesc} -\begin{funcdesc}{search}{string\, pos} +\begin{funcdesc}{search}{string\optional{\, pos}} Return the first position in \var{string} that matches the regular expression \code{pattern}. Return \code{-1} if no position in the string matches the pattern (this is different from a zero-length |