Random update to regex doc.

This commit is contained in:
shivers 1997-04-04 22:36:16 +00:00
parent db69cd677b
commit 8233556820
1 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ The code uses Henry Spencer's regular expression package.
Is the object a regular expression match? Is the object a regular expression match?
\end{defundesc} \end{defundesc}
\begin{defundesc} {match:start} {match [match-number]} \fixnum \begin{defundesc} {match:start} {match [match-number]} {{\fixnum} or false}
Returns the start position of the match denoted by \var{match-number}. Returns the start position of the match denoted by \var{match-number}.
The whole regexp is 0. Each further number represents positions The whole regexp is 0. Each further number represents positions
enclosed by \ex{(\ldots)} sections. \var{Match-number} defaults to 0. enclosed by \ex{(\ldots)} sections. \var{Match-number} defaults to 0.
@ -54,9 +54,10 @@ The code uses Henry Spencer's regular expression package.
\ex{match:end} returns {\sharpf}. \ex{match:end} returns {\sharpf}.
\end{defundesc} \end{defundesc}
\begin{defundesc} {match:substring} {match [match-number]} \str \begin{defundesc} {match:substring} {match [match-number]} {{\str} or false}
Returns the substring matched by match \var{match-number}. Returns the substring matched by match \var{match-number}.
\var{Match-number} defaults to 0 (the whole match). \var{Match-number} defaults to 0 (the whole match).
If there was no match, returns false.
\end{defundesc} \end{defundesc}
Regular expression matching compiles patterns into special data Regular expression matching compiles patterns into special data