summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2023-04-21 04:49:11 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-21 13:43:34 +0200
commit418ef65efaf5ec73eb54022c6661ca9696a62d0c (patch)
treed2dfc9ef5922ac3c83ed911d90b1429c74c7ac7a
parentc775ee2259ff84bb9797e214870e5cfe74f1c070 (diff)
regex.3: Further clarify the sole purpose of REG_NOSUB
Link: <https://lore.kernel.org/linux-man/3459b2a0-6a07-40fc-1e66-db906c3f62ac@gmail.com/T/#mb50a957359e029c611d6e0b8f1b1a20101aae670> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/regex.314
1 files changed, 6 insertions, 8 deletions
diff --git a/man3/regex.3 b/man3/regex.3
index 702a7645c..a5a8e0260 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -96,16 +96,14 @@ Subsequent
searches using this pattern buffer will be case insensitive.
.TP
.B REG_NOSUB
-Do not report position of matches.
-The
-.I nmatch
-and
-.I pmatch
+Report only overall success.
.BR regexec ()
-arguments will be ignored for this purpose (but
+will use only
.I pmatch
-may still be used for
-.BR REG_STARTEND ).
+for
+.BR REG_STARTEND ,
+ignoring
+.IR nmatch .
.TP
.B REG_NEWLINE
Match-any-character operators don't match a newline.