mirror of https://github.com/mkerrisk/man-pages
regex.3: Document REG_STARTEND
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6e164fba7e
commit
f8c3a92763
11
man3/regex.3
11
man3/regex.3
|
@ -157,6 +157,17 @@ The match-end-of-line operator always fails to match (but see the
|
||||||
compilation flag
|
compilation flag
|
||||||
.B REG_NEWLINE
|
.B REG_NEWLINE
|
||||||
above).
|
above).
|
||||||
|
.SS BSD regex matching
|
||||||
|
.TP
|
||||||
|
.B REG_STARTEND
|
||||||
|
Use pmatch[0] on the input string, starting at byte pmatch[0].rm_so and ending
|
||||||
|
before byte pmatch[0].rm_eo. This allows matching embedded NUL bytes
|
||||||
|
and avoids a strlen() on large strings. It does not use nmatch on input,
|
||||||
|
and does not change
|
||||||
|
.B REG_NOTBOL
|
||||||
|
or
|
||||||
|
.B REG_NEWLINE
|
||||||
|
processing.
|
||||||
.SS Byte offsets
|
.SS Byte offsets
|
||||||
Unless
|
Unless
|
||||||
.B REG_NOSUB
|
.B REG_NOSUB
|
||||||
|
|
Loading…
Reference in New Issue