diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 15:40:48 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-13 15:40:48 +0100 |
| commit | 104df30ff09cb14e2806f3089dde4ade62d29604 (patch) | |
| tree | f239a03f2f0ed993f2b113ee57064ec9ff7a9646 /man/vis.1 | |
| parent | 4600b76efe80c9ba0461276412e58992d2300cae (diff) | |
| download | vis-104df30ff09cb14e2806f3089dde4ade62d29604.tar.gz vis-104df30ff09cb14e2806f3089dde4ade62d29604.tar.xz | |
sam: allow input text to refer to search registers
& refers to the most recent complete match and \1 - \9
refer to the last sub-expression matches.
Diffstat (limited to 'man/vis.1')
| -rw-r--r-- | man/vis.1 | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -359,8 +359,10 @@ and hence It is an error for a compound address to represent a malformed substring. . .Ss Commands -In the following, text demarcated by slashes represents text delimited by any printable ASCII character except alphanumerics. -Any number of trailing delimiters may be elided, with multiple elisions then representing null strings, but the first delimiter must always be present. +In the following, text demarcated by slashes represents text delimited +by any printable ASCII character except alphanumerics. Any number +of trailing delimiters may be elided, with multiple elisions then +representing null strings, but the first delimiter must always be present. In any delimited text, newline may not appear literally; .Li \[rs]n and @@ -369,6 +371,13 @@ may be typed for newline and tab; .Li \[rs]/ quotes the delimiter, here .Li / . +An ampersand +.Li & +and +.Sy \[rs]n , +where +.Sy n +is a digit (1-9) are replaced by the corresponding register. Backslash is otherwise interpreted literally. .Pp Most commands may be prefixed with an address to indicate their range |
