mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Explicitly tell that one needs to start a context address with a
backslash if he/she wants to use a non-traditional delimiter, i.e., anything other than a slash. That is, /abc/ works as is, but xabcx needs to be spelled as \xabcx. Add appropriate markup. Bump Dd. Checked with: IEEE Std 1003.1, 2004 Edition MFC after: 3 days
This commit is contained in:
parent
f0c042211b
commit
625451f9f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182107
@ -31,7 +31,7 @@
|
||||
.\" @(#)sed.1 8.2 (Berkeley) 12/30/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd April 21, 2007
|
||||
.Dd August 24, 2008
|
||||
.Dt SED 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -243,10 +243,17 @@ has the following two additions to regular expressions:
|
||||
In a context address, any character other than a backslash
|
||||
.Pq Dq \e
|
||||
or newline character may be used to delimit the regular expression.
|
||||
The opening delimiter needs to be preceded by a backslash
|
||||
unless it is a slash.
|
||||
For example, the context address
|
||||
.Li \exabcx
|
||||
is equivalent to
|
||||
.Li /abc/ .
|
||||
Also, putting a backslash character before the delimiting character
|
||||
causes the character to be treated literally.
|
||||
For example, in the context address \exabc\exdefx, the RE delimiter
|
||||
is an
|
||||
withing the regular expression causes the character to be treated literally.
|
||||
For example, in the context address
|
||||
.Li \exabc\exdefx ,
|
||||
the RE delimiter is an
|
||||
.Dq x
|
||||
and the second
|
||||
.Dq x
|
||||
|
Loading…
Reference in New Issue
Block a user