fixed issue #29
This commit is contained in:
parent
7a4e46d7ab
commit
eadeb86f51
2 changed files with 35 additions and 0 deletions
|
@ -243,6 +243,13 @@ converts its numerical argument, a character number, to a
|
||||||
.SM UTF
|
.SM UTF
|
||||||
string
|
string
|
||||||
.TP
|
.TP
|
||||||
|
.BI substr( s , " m")
|
||||||
|
the maximum length substring of
|
||||||
|
.I s
|
||||||
|
that begins at position
|
||||||
|
.IR m
|
||||||
|
counted from 1.
|
||||||
|
.TP
|
||||||
.BI substr( s , " m" , " n\fL)
|
.BI substr( s , " m" , " n\fL)
|
||||||
the
|
the
|
||||||
.IR n -character
|
.IR n -character
|
||||||
|
@ -303,6 +310,10 @@ If
|
||||||
is not given,
|
is not given,
|
||||||
.B $0
|
.B $0
|
||||||
is used.
|
is used.
|
||||||
|
.B &
|
||||||
|
in
|
||||||
|
.I t
|
||||||
|
is replaced by the match.
|
||||||
.TP
|
.TP
|
||||||
.B gsub
|
.B gsub
|
||||||
same as
|
same as
|
||||||
|
|
|
@ -255,6 +255,30 @@ Append the pattern space to
|
||||||
if a replacement
|
if a replacement
|
||||||
was made.
|
was made.
|
||||||
.RE
|
.RE
|
||||||
|
.IP
|
||||||
|
An ampersand
|
||||||
|
.L &
|
||||||
|
appearing in the replacement
|
||||||
|
is replaced by the string matching the regular expression.
|
||||||
|
The characters
|
||||||
|
.BI \e n\f1,
|
||||||
|
where
|
||||||
|
.I n
|
||||||
|
is a digit,
|
||||||
|
are replaced by the text matched by the
|
||||||
|
.IR n -th
|
||||||
|
regular subexpression
|
||||||
|
enclosed between
|
||||||
|
.L (
|
||||||
|
and
|
||||||
|
.LR ) .
|
||||||
|
When
|
||||||
|
nested parenthesized subexpressions
|
||||||
|
are present,
|
||||||
|
.I n
|
||||||
|
is determined by counting occurrences of
|
||||||
|
.L (
|
||||||
|
starting from the left.
|
||||||
.TP
|
.TP
|
||||||
.BI t " label"
|
.BI t " label"
|
||||||
Test.
|
Test.
|
||||||
|
|
Loading…
Reference in a new issue