Clarify the endpos argument to the rx.match() method.

Closes SF bug #597177.
This commit is contained in:
Fred Drake 2002-08-20 13:57:47 +00:00
parent b404bb7813
commit ffefb1df56
1 changed files with 6 additions and 2 deletions

View File

@ -668,8 +668,12 @@ attributes:
The optional parameter \var{endpos} limits how far the string will The optional parameter \var{endpos} limits how far the string will
be searched; it will be as if the string is \var{endpos} characters be searched; it will be as if the string is \var{endpos} characters
long, so only the characters from \var{pos} to \var{endpos} will be long, so only the characters from \var{pos} to \code{\var{endpos} -
searched for a match. 1} will be searched for a match. If \var{endpos} is less than
\var{pos}, no match will be found, otherwise, if \var{rx} is a
compiled regular expression object,
\code{\var{rx}.match(\var{string}, 0, 50)} is equivalent to
\code{\var{rx}.match(\var{string}[:50], 0)}.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[RegexObject]{split}{string\optional{, \begin{methoddesc}[RegexObject]{split}{string\optional{,