mirror of https://github.com/mkerrisk/man-pages
regex.3: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e7a1bf89a2
commit
ce0fd56bd7
17
man3/regex.3
17
man3/regex.3
|
@ -160,12 +160,19 @@ above).
|
||||||
.SS BSD regex matching
|
.SS BSD regex matching
|
||||||
.TP
|
.TP
|
||||||
.B REG_STARTEND
|
.B REG_STARTEND
|
||||||
Use pmatch[0] on the input string, starting at byte pmatch[0].rm_so and ending
|
Use
|
||||||
before byte pmatch[0].rm_eo.
|
.I pmatch[0]
|
||||||
|
on the input string, starting at byte
|
||||||
|
.I pmatch[0].rm_so
|
||||||
|
and ending before byte
|
||||||
|
.IR pmatch[0].rm_eo .
|
||||||
This allows matching embedded NUL bytes
|
This allows matching embedded NUL bytes
|
||||||
and avoids a strlen() on large strings.
|
and avoids a
|
||||||
It does not use nmatch on input,
|
.BR strlen (3)
|
||||||
and does not change
|
on large strings.
|
||||||
|
It does not use
|
||||||
|
.I nmatch
|
||||||
|
on input, and does not change
|
||||||
.B REG_NOTBOL
|
.B REG_NOTBOL
|
||||||
or
|
or
|
||||||
.B REG_NEWLINE
|
.B REG_NEWLINE
|
||||||
|
|
Loading…
Reference in New Issue