Thu Mar 11 16:36:41 2021 UTC ()
improve wording.


(christos)
diff -r1.29 -r1.30 src/lib/libc/regex/regex.3

cvs diff -r1.29 -r1.30 src/lib/libc/regex/regex.3 (expand / switch to unified diff)

--- src/lib/libc/regex/regex.3 2021/03/11 15:12:51 1.29
+++ src/lib/libc/regex/regex.3 2021/03/11 16:36:41 1.30
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: regex.3,v 1.29 2021/03/11 15:12:51 christos Exp $ 1.\" $NetBSD: regex.3,v 1.30 2021/03/11 16:36:41 christos Exp $
2.\" 2.\"
3.\" Copyright (c) 1992, 1993, 1994 Henry Spencer. 3.\" Copyright (c) 1992, 1993, 1994 Henry Spencer.
4.\" Copyright (c) 1992, 1993, 1994 4.\" Copyright (c) 1992, 1993, 1994
5.\" The Regents of the University of California. All rights reserved. 5.\" The Regents of the University of California. All rights reserved.
6.\" 6.\"
7.\" This code is derived from software contributed to Berkeley by 7.\" This code is derived from software contributed to Berkeley by
8.\" Henry Spencer. 8.\" Henry Spencer.
9.\" 9.\"
10.\" Redistribution and use in source and binary forms, with or without 10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions 11.\" modification, are permitted provided that the following conditions
12.\" are met: 12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright 13.\" 1. Redistributions of source code must retain the above copyright
14.\" notice, this list of conditions and the following disclaimer. 14.\" notice, this list of conditions and the following disclaimer.
@@ -190,56 +190,58 @@ This is an extension, @@ -190,56 +190,58 @@ This is an extension,
190compatible with but not specified by 190compatible with but not specified by
191.St -p1003.2 , 191.St -p1003.2 ,
192and should be used with 192and should be used with
193caution in software intended to be portable to other systems. 193caution in software intended to be portable to other systems.
194.It Dv REG_GNU 194.It Dv REG_GNU
195Include GNU-inspired extensions: 195Include GNU-inspired extensions:
196.Pp 196.Pp
197.Bl -tag -offset indent -width XX -compact  197.Bl -tag -offset indent -width XX -compact
198.It \eN 198.It \eN
199Use backreference 199Use backreference
200.Dv N 200.Dv N
201where 201where
202.Dv N 202.Dv N
203is between 203is a single digit number between
204.Dv [1-9] . 204.Dv 1
 205and
 206.Dv 9 .
205.It \ea 207.It \ea
206Visual Bell 208Visual Bell
207.It \eb 209.It \eb
208Match a position that is a word boundary. 210Match a position that is a word boundary.
209.It \eB 211.It \eB
210Match a position that is a not word boundary. 212Match a position that is a not word boundary.
211.It \ef 213.It \ef
212Form Feed 214Form Feed
213.It \en 215.It \en
214Line Feed 216Line Feed
215.It \er 217.It \er
216Carriage return 218Carriage return
217.It \es 219.It \es
218Alias for [[:space:]] 220Alias for [[:space:]]
219.It \eS 221.It \eS
220Alias for [^[:space:]] 222Alias for [^[:space:]]
221.It \et 223.It \et
222Horizontal Tab 224Horizontal Tab
223.It \ev 225.It \ev
224Vertical Tab 226Vertical Tab
225.It \ew 227.It \ew
226Alias for [[:alnum:]] 228Alias for [[:alnum:]]
227.It \eW 229.It \eW
228Alias for [^[:alnum:]] 230Alias for [^[:alnum:]]
229.It \e' 231.It \e'
230Matches the end of the subject. 232Matches the end of the subject string (the string to be matched).
231.It \e` 233.It \e`
232Matches the beginning of the subject. 234Matches the beginning of the subject string.
233.El 235.El
234.Pp 236.Pp
235This is an extension, 237This is an extension,
236compatible with but not specified by 238compatible with but not specified by
237.St -p1003.2 , 239.St -p1003.2 ,
238and should be used with 240and should be used with
239caution in software intended to be portable to other systems. 241caution in software intended to be portable to other systems.
240.El 242.El
241.Pp 243.Pp
242When successful, 244When successful,
243.Fn regcomp 245.Fn regcomp
244returns 0 and fills in the structure pointed to by 246returns 0 and fills in the structure pointed to by
245.Fa preg . 247.Fa preg .