| @@ -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, |
190 | compatible with but not specified by | | 190 | compatible with but not specified by |
191 | .St -p1003.2 , | | 191 | .St -p1003.2 , |
192 | and should be used with | | 192 | and should be used with |
193 | caution in software intended to be portable to other systems. | | 193 | caution in software intended to be portable to other systems. |
194 | .It Dv REG_GNU | | 194 | .It Dv REG_GNU |
195 | Include GNU-inspired extensions: | | 195 | Include 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 |
199 | Use backreference | | 199 | Use backreference |
200 | .Dv N | | 200 | .Dv N |
201 | where | | 201 | where |
202 | .Dv N | | 202 | .Dv N |
203 | is between | | 203 | is a single digit number between |
204 | .Dv [1-9] . | | 204 | .Dv 1 |
| | | 205 | and |
| | | 206 | .Dv 9 . |
205 | .It \ea | | 207 | .It \ea |
206 | Visual Bell | | 208 | Visual Bell |
207 | .It \eb | | 209 | .It \eb |
208 | Match a position that is a word boundary. | | 210 | Match a position that is a word boundary. |
209 | .It \eB | | 211 | .It \eB |
210 | Match a position that is a not word boundary. | | 212 | Match a position that is a not word boundary. |
211 | .It \ef | | 213 | .It \ef |
212 | Form Feed | | 214 | Form Feed |
213 | .It \en | | 215 | .It \en |
214 | Line Feed | | 216 | Line Feed |
215 | .It \er | | 217 | .It \er |
216 | Carriage return | | 218 | Carriage return |
217 | .It \es | | 219 | .It \es |
218 | Alias for [[:space:]] | | 220 | Alias for [[:space:]] |
219 | .It \eS | | 221 | .It \eS |
220 | Alias for [^[:space:]] | | 222 | Alias for [^[:space:]] |
221 | .It \et | | 223 | .It \et |
222 | Horizontal Tab | | 224 | Horizontal Tab |
223 | .It \ev | | 225 | .It \ev |
224 | Vertical Tab | | 226 | Vertical Tab |
225 | .It \ew | | 227 | .It \ew |
226 | Alias for [[:alnum:]] | | 228 | Alias for [[:alnum:]] |
227 | .It \eW | | 229 | .It \eW |
228 | Alias for [^[:alnum:]] | | 230 | Alias for [^[:alnum:]] |
229 | .It \e' | | 231 | .It \e' |
230 | Matches the end of the subject. | | 232 | Matches the end of the subject string (the string to be matched). |
231 | .It \e` | | 233 | .It \e` |
232 | Matches the beginning of the subject. | | 234 | Matches the beginning of the subject string. |
233 | .El | | 235 | .El |
234 | .Pp | | 236 | .Pp |
235 | This is an extension, | | 237 | This is an extension, |
236 | compatible with but not specified by | | 238 | compatible with but not specified by |
237 | .St -p1003.2 , | | 239 | .St -p1003.2 , |
238 | and should be used with | | 240 | and should be used with |
239 | caution in software intended to be portable to other systems. | | 241 | caution in software intended to be portable to other systems. |
240 | .El | | 242 | .El |
241 | .Pp | | 243 | .Pp |
242 | When successful, | | 244 | When successful, |
243 | .Fn regcomp | | 245 | .Fn regcomp |
244 | returns 0 and fills in the structure pointed to by | | 246 | returns 0 and fills in the structure pointed to by |
245 | .Fa preg . | | 247 | .Fa preg . |