diff options
author | dkf <dkf@noemail.net> | 2005-04-06 20:55:16 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-04-06 20:55:16 (GMT) |
commit | 1d3bb17aba3a0769dd828a357e972eb33a63c346 (patch) | |
tree | 5d41883299c2e8bedcd2b437b39c4cbfab40c071 /doc/regsub.n | |
parent | fc7ffe8d5b16feef959e9e04ce5f5369ac766780 (diff) | |
download | tcl-1d3bb17aba3a0769dd828a357e972eb33a63c346.zip tcl-1d3bb17aba3a0769dd828a357e972eb33a63c346.tar.gz tcl-1d3bb17aba3a0769dd828a357e972eb33a63c346.tar.bz2 |
Purge old and inaccurate .VS/.VE macros.
FossilOrigin-Name: b5dbb85db54f15de4f1ce227e598d37c74968fe6
Diffstat (limited to 'doc/regsub.n')
-rw-r--r-- | doc/regsub.n | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/doc/regsub.n b/doc/regsub.n index e6738ce..43b940f 100644 --- a/doc/regsub.n +++ b/doc/regsub.n @@ -6,7 +6,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: regsub.n,v 1.12 2004/10/27 14:24:37 dkf Exp $ +'\" RCS: @(#) $Id: regsub.n,v 1.13 2005/04/06 20:55:24 dkf Exp $ '\" .so man.macros .TH regsub n 8.3 Tcl "Tcl Built-In Commands" @@ -15,26 +15,20 @@ .SH NAME regsub \- Perform substitutions based on regular expression pattern matching .SH SYNOPSIS -.VS 8.4 \fBregsub \fR?\fIswitches\fR? \fIexp string subSpec \fR?\fIvarName\fR? -.VE 8.4 .BE .SH DESCRIPTION .PP This command matches the regular expression \fIexp\fR against \fIstring\fR, -.VS 8.4 and either copies \fIstring\fR to the variable whose name is given by \fIvarName\fR or returns \fIstring\fR if \fIvarName\fR is not present. -.VE 8.4 (Regular expression matching is described in the \fBre_syntax\fR reference page.) If there is a match, then while copying \fIstring\fR to \fIvarName\fR -.VS 8.4 (or to the result of this command if \fIvarName\fR is not present) -.VE 8.4 the portion of \fIstring\fR that matched \fIexp\fR is replaced with \fIsubSpec\fR. If \fIsubSpec\fR contains a ``&'' or ``\e0'', then it is replaced @@ -107,11 +101,9 @@ match the start of the string at \fIindex\fR. Marks the end of switches. The argument following this one will be treated as \fIexp\fR even if it starts with a \fB\-\fR. .PP -.VS 8.4 If \fIvarName\fR is supplied, the command returns a count of the number of matching ranges that were found and replaced, otherwise the string after replacement is returned. -.VE 8.4 See the manual entry for \fBregexp\fR for details on the interpretation of regular expressions. .SH EXAMPLES |