Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Rewrite the documentation of [regsub -command] so it's not quite such a mess. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c11222b967f3c6518b415bc0a9644f57 |
User & Date: | dgp 2017-06-23 13:09:23 |
Context
2017-06-23
| ||
13:11 | typo fix check-in: b3af99ceb9 user: dgp tags: trunk | |
13:09 | Rewrite the documentation of [regsub -command] so it's not quite such a mess. check-in: c11222b967 user: dgp tags: trunk | |
12:39 | repair broken tests check-in: b063408c38 user: dgp tags: trunk | |
Changes
Changes to doc/regsub.n.
︙ | ︙ | |||
66 67 68 69 70 71 72 | and .QW \e\fIn\fR sequences are handled for each substitution using the information from the corresponding match. .TP \fB\-command\fR .VS 8.7 | | > | | < | | | > > | < | > | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | and .QW \e\fIn\fR sequences are handled for each substitution using the information from the corresponding match. .TP \fB\-command\fR .VS 8.7 Changes the handling of \fIsubSpec\fR so that it is not treated as a template for a substitution string and the substrings .QW & and .QW \e\fIn\fR no longer have special meaning. Instead \fIsubSpec\fR must be a command prefix, that is, a non-empty list. The substring of \fIstring\fR that matches \fIexp\fR, and then each substring that matches each capturing sub-RE within \fIexp\fR are appended as additional elements to that list. (The items appended to the list are much like what \fBregexp\fR \fB-inline\fR would return). The completed list is then evaluated as a Tcl command, and the result of that command is the substitution string. Any error or exception from command evaluation becomes an error or exception from the \fBregsub\fR command. .RS .PP If \fB\-all\fR is not also given, the command callback will be invoked at most once (exactly when the regular expression matches). If \fB\-all\fR is given, the command callback will be invoked for each matched location, in sequence. The exact location indices that matched are not made available to the script. .PP |
︙ | ︙ |