]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
regex.3: Further clarify the sole purpose of REG_NOSUB
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 21 Apr 2023 02:49:11 +0000 (04:49 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 21 Apr 2023 11:43:34 +0000 (13:43 +0200)
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>
man3/regex.3

index 702a7645ca065a9501d29bffaff0d9fa3fec1d1f..a5a8e02604ffbb782b617466d3021b8e12a9d665 100644 (file)
@@ -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.