File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -597,6 +597,15 @@ \subsection{Match Objects \label{match-objects}}
597597
598598\class {MatchObject} instances support the following methods and attributes:
599599
600+ \begin {methoddesc }[MatchObject]{expand}{template}
601+ Return the string obtained by doing backslash substitution on the
602+ template string \var {template}, as done by the \method {sub()} method.
603+ Escapes such as \samp {\e n} are converted to the appropriate
604+ characters, and numeric backreferences (\samp {\e 1}, \samp {\e 2}) and named
605+ backreferences (\samp {\e g<1>}, \samp {\e g<name>}) are replaced by the contents of the
606+ corresponding group.
607+ \end {methoddesc }
608+
600609\begin {methoddesc }[MatchObject]{group}{\optional {group1, \moreargs }}
601610Returns one or more subgroups of the match. If there is a single
602611argument, the result is a single string; if there are
You can’t perform that action at this time.
0 commit comments