version 1.55, 2018/07/10 09:10:03 |
version 1.56, 2018/07/11 06:47:38 |
|
|
.Pq Ql $ |
.Pq Ql $ |
that addresses the last line of input, or a context address, |
that addresses the last line of input, or a context address, |
which is a regular expression preceded and followed by a delimiter. |
which is a regular expression preceded and followed by a delimiter. |
The delimiter can be any character except a newline or a backslash. |
The delimiter can be any character except a newline or a backslash. |
Unless it is a slash, the opening delimiter needs to be escaped with |
Unless it is a slash, the opening delimiter needs to be escaped with |
a backslash. |
a backslash. |
.Pp |
.Pp |
|
|
.Pq Ql & |
.Pq Ql & |
appearing in the replacement is replaced by the string matching the |
appearing in the replacement is replaced by the string matching the |
regular expression. |
regular expression. |
The special meaning of |
|
.Ql & |
|
in this context can be suppressed by preceding it by a backslash. |
|
The string |
The string |
.Ql \e# , |
.Ql \e# , |
where |
where |
|
|
by the corresponding backreference expression (see |
by the corresponding backreference expression (see |
.Xr re_format 7 ) . |
.Xr re_format 7 ) . |
.Pp |
.Pp |
A line can be split by substituting a newline character into it. |
All other instances of a backslash will print the literal character |
To specify a newline character in the replacement string, precede it with |
following it. |
a backslash. |
Using a backslash before any other character other than |
|
.Ql & , |
|
.Ql \e , |
|
digit, newline |
|
.Pq ascii 0x0a , |
|
and the delimiter is unspecified and might not be portable to other |
|
implementations of |
|
.Nm . |
.Pp |
.Pp |
The value of |
The value of |
.Ar flags |
.Ar flags |