Debian Codegraph @

templates/man3/regex.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "regex"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-22"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr ""
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr ""
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
49 msgstr ""
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr ""
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr ""
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>regex.hE<gt>>\n"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
80 #: opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
84 "B< int >I<cflags>B<);>\n"
85 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
86 "B< const char *restrict >I<string>B<,>\n"
87 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n>B<],>\n"
88 "B< int >I<eflags>B<);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
93 #: opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<size_t regerror(>size_t errbuf_size;\n"
97 "B< int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
98 "B< char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
99 "B< size_t >I<errbuf_size>B<);>\n"
100 "B<void regfree(regex_t *>I<preg>B<);>\n"
101 msgstr ""
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid ""
108 "B<typedef struct {>\n"
109 "B<size_t re_nsub;>\n"
110 "B<} regex_t;>\n"
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<typedef struct {>\n"
119 "B<regoff_t rm_so;>\n"
120 "B<regoff_t rm_eo;>\n"
121 "B<} regmatch_t;>\n"
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "B<typedef> /* ... */ B<regoff_t;>\n"
129 msgstr ""
130
131 #. type: SH
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid "DESCRIPTION"
136 msgstr ""
137
138 #. type: SS
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "Compilation"
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "B<regcomp>() is used to compile a regular expression into a form that is "
150 "suitable for subsequent B<regexec>() searches."
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "On success, the pattern buffer at I<*preg> is initialized. I<regex> is a "
158 "null-terminated string. The locale must be the same when running "
159 "B<regexec>()."
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
164 #: opensuse-tumbleweed
165 msgid ""
166 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
167 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
168 "passed as I<n> to B<regexec>() is sufficient to capture all matches."
169 msgstr ""
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "I<cflags> is the bitwise OR of zero or more of the following:"
175 msgstr ""
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<REG_EXTENDED>"
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If "
189 "not set, POSIX Basic Regular Expression syntax is used."
190 msgstr ""
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<REG_ICASE>"
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "Do not differentiate case. Subsequent B<regexec>() searches using this "
204 "pattern buffer will be case insensitive."
205 msgstr ""
206
207 #. type: TP
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "B<REG_NOSUB>"
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
216 #: opensuse-tumbleweed
217 msgid ""
218 "Report only overall success. B<regexec>() will use only I<pmatch> for "
219 "B<REG_STARTEND>, ignoring I<n>."
220 msgstr ""
221
222 #. type: TP
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "B<REG_NEWLINE>"
227 msgstr ""
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "Match-any-character operators don't match a newline."
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not "
240 "match a newline."
241 msgstr ""
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string "
248 "immediately after a newline, regardless of whether I<eflags>, the execution "
249 "flags of B<regexec>(), contains B<REG_NOTBOL>."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "Match-end-of-line operator (B<$>) matches the empty string immediately "
257 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
258 msgstr ""
259
260 #. type: SS
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "Matching"
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
269 #: opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "B<regexec>() is used to match a null-terminated string against the compiled "
272 "pattern buffer in I<*preg>, which must have been initialised with "
273 "B<regcomp>(). I<eflags> is the bitwise OR of zero or more of the following "
274 "flags:"
275 msgstr ""
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<REG_NOTBOL>"
282 msgstr ""
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "The match-beginning-of-line operator always fails to match (but see the "
289 "compilation flag B<REG_NEWLINE> above). This flag may be used when "
290 "different portions of a string are passed to B<regexec>() and the beginning "
291 "of the string should not be interpreted as the beginning of the line."
292 msgstr ""
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<REG_NOTEOL>"
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The match-end-of-line operator always fails to match (but see the "
306 "compilation flag B<REG_NEWLINE> above)."
307 msgstr ""
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<REG_STARTEND>"
314 msgstr ""
315
316 #. type: Plain text
317 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
320 "[I<string>,\\ I<strnul(string)>). This allows matching embedded NUL bytes. "
321 "If any matches are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the "
322 "match succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and "
323 "the match offsets remain relative to I<string> (not I<string + "
324 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
325 msgstr ""
326
327 #. type: SS
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "Match offsets"
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
336 #: opensuse-tumbleweed
337 msgid ""
338 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
339 "locations of matches within I<string>: B<regexec>() fills I<n> elements of "
340 "I<pmatch> with results: I<pmatch[0]> corresponds to the entire match, "
341 "I<pmatch[1]> to the first subexpression, etc. If there were more matches "
342 "than I<n>, they are discarded; if fewer, unused elements of I<pmatch> are "
343 "filled with B<-1>s."
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "Each returned valid (non-B<-1>) match corresponds to the range [I<string + "
351 "rm_so>,I< string + rm_eo>)."
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid ""
358 "I<regoff_t> is a signed integer type capable of storing the largest value "
359 "that can be stored in either an I<ptrdiff_t> type or a I<ssize_t> type."
360 msgstr ""
361
362 #. type: SS
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "Error reporting"
367 msgstr ""
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "B<regerror>() is used to turn the error codes that can be returned by both "
374 "B<regcomp>() and B<regexec>() into error message strings."
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "If I<preg> isn't a null pointer, I<errcode> must be the latest error "
382 "returned from an operation on I<preg>."
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to "
390 "I<errbuf>; the error string is always null-terminated, and truncated to fit."
391 msgstr ""
392
393 #. type: SS
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 #, no-wrap
397 msgid "Freeing"
398 msgstr ""
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any "
405 "associated memory; I<*preg> must have been initialized via B<regcomp>()."
406 msgstr ""
407
408 #. type: SH
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "RETURN VALUE"
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "B<regcomp>() returns zero for a successful compilation or an error code for "
420 "failure."
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for "
428 "failure."
429 msgstr ""
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid ""
435 "B<regerror>() returns the size of the buffer required to hold the string."
436 msgstr ""
437
438 #. type: SH
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "ERRORS"
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid "The following errors can be returned by B<regcomp>():"
449 msgstr ""
450
451 #. type: TP
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "B<REG_BADBR>"
456 msgstr ""
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid "Invalid use of back reference operator."
462 msgstr ""
463
464 #. type: TP
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "B<REG_BADPAT>"
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid "Invalid use of pattern operators such as group or list."
475 msgstr ""
476
477 #. type: TP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "B<REG_BADRPT>"
482 msgstr ""
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first "
489 "character."
490 msgstr ""
491
492 #. type: TP
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "B<REG_EBRACE>"
497 msgstr ""
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 msgid "Un-matched brace interval operators."
503 msgstr ""
504
505 #. type: TP
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "B<REG_EBRACK>"
510 msgstr ""
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "Un-matched bracket list operators."
516 msgstr ""
517
518 #. type: TP
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "B<REG_ECOLLATE>"
523 msgstr ""
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid "Invalid collating element."
529 msgstr ""
530
531 #. type: TP
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "B<REG_ECTYPE>"
536 msgstr ""
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid "Unknown character class name."
542 msgstr ""
543
544 #. type: TP
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "B<REG_EEND>"
549 msgstr ""
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid "Nonspecific error. This is not defined by POSIX."
555 msgstr ""
556
557 #. type: TP
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, no-wrap
561 msgid "B<REG_EESCAPE>"
562 msgstr ""
563
564 #. type: Plain text
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 msgid "Trailing backslash."
568 msgstr ""
569
570 #. type: TP
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "B<REG_EPAREN>"
575 msgstr ""
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid "Un-matched parenthesis group operators."
581 msgstr ""
582
583 #. type: TP
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "B<REG_ERANGE>"
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "Invalid use of the range operator; for example, the ending point of the "
595 "range occurs prior to the starting point."
596 msgstr ""
597
598 #. type: TP
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, no-wrap
602 msgid "B<REG_ESIZE>"
603 msgstr ""
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "Compiled regular expression requires a pattern buffer larger than 64\\ kB. "
610 "This is not defined by POSIX."
611 msgstr ""
612
613 #. type: TP
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid "B<REG_ESPACE>"
618 msgstr ""
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid "The regex routines ran out of memory."
624 msgstr ""
625
626 #. type: TP
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, no-wrap
630 msgid "B<REG_ESUBREG>"
631 msgstr ""
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid "Invalid back reference to a subexpression."
637 msgstr ""
638
639 #. type: SH
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, no-wrap
643 msgid "ATTRIBUTES"
644 msgstr ""
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 msgid ""
650 "For an explanation of the terms used in this section, see B<attributes>(7)."
651 msgstr ""
652
653 #. type: tbl table
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, no-wrap
657 msgid "Interface"
658 msgstr ""
659
660 #. type: tbl table
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 #, no-wrap
664 msgid "Attribute"
665 msgstr ""
666
667 #. type: tbl table
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "Value"
672 msgstr ""
673
674 #. type: tbl table
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid ".na\n"
679 msgstr ""
680
681 #. type: tbl table
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid ".nh\n"
686 msgstr ""
687
688 #. type: tbl table
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid ""
693 "B<regcomp>(),\n"
694 "B<regexec>()"
695 msgstr ""
696
697 #. type: tbl table
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "Thread safety"
702 msgstr ""
703
704 #. type: tbl table
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "MT-Safe locale"
709 msgstr ""
710
711 #. type: tbl table
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "B<regerror>()"
716 msgstr ""
717
718 #. type: tbl table
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "MT-Safe env"
723 msgstr ""
724
725 #. type: tbl table
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "B<regfree>()"
730 msgstr ""
731
732 #. type: tbl table
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "MT-Safe"
737 msgstr ""
738
739 #. type: SH
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 #, no-wrap
743 msgid "STANDARDS"
744 msgstr ""
745
746 #. type: Plain text
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 msgid "POSIX.1-2008."
750 msgstr ""
751
752 #. type: SH
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "HISTORY"
757 msgstr ""
758
759 #. type: Plain text
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 msgid "POSIX.1-2001."
763 msgstr ""
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid ""
769 "Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the "
770 "largest value that can be stored in either an I<off_t> type or a I<ssize_t> "
771 "type."
772 msgstr ""
773
774 #. type: SH
775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "CAVEATS"
779 msgstr ""
780
781 #. glibc, musl, 4.4BSD, illumos
782 #. type: Plain text
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 msgid ""
786 "I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't "
787 "specified, but all known implementations initialize it regardless."
788 msgstr ""
789
790 #. illumos has two more start/end pairs and the first one is of pointers
791 #. type: Plain text
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 msgid ""
795 "Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any "
796 "order. Always reference them by name."
797 msgstr ""
798
799 #. type: SH
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 #, no-wrap
803 msgid "EXAMPLES"
804 msgstr ""
805
806 #. type: Plain text
807 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
808 #: opensuse-tumbleweed
809 #, no-wrap
810 msgid ""
811 "#include E<lt>stdcountof.hE<gt>\n"
812 "#include E<lt>stdint.hE<gt>\n"
813 "#include E<lt>stdio.hE<gt>\n"
814 "#include E<lt>stdlib.hE<gt>\n"
815 "#include E<lt>regex.hE<gt>\n"
816 "\\&\n"
817 "static const char *const str =\n"
818 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
819 "static const char *const re = \"John.*o\";\n"
820 "\\&\n"
821 "int main(void)\n"
822 "{\n"
823 " static const char *s = str;\n"
824 " regex_t regex;\n"
825 " regmatch_t pmatch[1];\n"
826 " regoff_t off, len;\n"
827 "\\&\n"
828 " if (regcomp(&regex, re, REG_NEWLINE))\n"
829 " exit(EXIT_FAILURE);\n"
830 "\\&\n"
831 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
832 " printf(\"Matches:\\[rs]n\");\n"
833 "\\&\n"
834 " for (unsigned int i = 0; ; i++) {\n"
835 " if (regexec(&regex, s, countof(pmatch), pmatch, 0))\n"
836 " break;\n"
837 "\\&\n"
838 " off = pmatch[0].rm_so + (s - str);\n"
839 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
840 " printf(\"#%u:\\[rs]n\", i);\n"
841 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
842 " (intmax_t) len);\n"
843 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
844 "\\&\n"
845 " s += pmatch[0].rm_eo;\n"
846 " }\n"
847 "\\&\n"
848 " exit(EXIT_SUCCESS);\n"
849 "}\n"
850 msgstr ""
851
852 #. type: SH
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 #, no-wrap
856 msgid "SEE ALSO"
857 msgstr ""
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid "B<grep>(1), B<regex>(7)"
863 msgstr ""
864
865 #. type: Plain text
866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
868 msgid "The glibc manual section, I<Regular Expressions>"
869 msgstr ""
870
871 #. type: TH
872 #: debian-trixie
873 #, no-wrap
874 msgid "2024-06-15"
875 msgstr ""
876
877 #. type: TH
878 #: debian-trixie
879 #, no-wrap
880 msgid "Linux man-pages 6.9.1"
881 msgstr ""
882
883 #. type: Plain text
884 #: debian-trixie
885 msgid "Standard C library (I<libc>, I<-lc>)"
886 msgstr ""
887
888 #. type: Plain text
889 #: debian-trixie fedora-44 fedora-rawhide
890 #, no-wrap
891 msgid ""
892 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
893 "B< int >I<cflags>B<);>\n"
894 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
895 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict .>I<nmatch>B<],>\n"
896 "B< int >I<eflags>B<);>\n"
897 msgstr ""
898
899 #. type: Plain text
900 #: debian-trixie fedora-44 fedora-rawhide
901 #, no-wrap
902 msgid ""
903 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
904 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
905 "B< size_t >I<errbuf_size>B<);>\n"
906 "B<void regfree(regex_t *>I<preg>B<);>\n"
907 msgstr ""
908
909 #. type: Plain text
910 #: debian-trixie fedora-44 fedora-rawhide
911 msgid ""
912 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
913 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
914 "passed as I<nmatch> to B<regexec>() is sufficient to capture all matches."
915 msgstr ""
916
917 #. type: Plain text
918 #: debian-trixie fedora-44 fedora-rawhide
919 msgid ""
920 "Report only overall success. B<regexec>() will use only I<pmatch> for "
921 "B<REG_STARTEND>, ignoring I<nmatch>."
922 msgstr ""
923
924 #. type: Plain text
925 #: debian-trixie
926 msgid ""
927 "B<regexec>() is used to match a null-terminated string against the compiled "
928 "pattern buffer in I<*preg>, which must have been initialised with "
929 "B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following "
930 "flags:"
931 msgstr ""
932
933 #. type: Plain text
934 #: debian-trixie fedora-44 fedora-rawhide
935 msgid ""
936 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
937 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
938 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
939 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
940 "succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and "
941 "the match offsets remain relative to I<string> (not I<string + "
942 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
943 msgstr ""
944
945 #. type: Plain text
946 #: debian-trixie fedora-44 fedora-rawhide
947 msgid ""
948 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
949 "locations of matches within I<string>: B<regexec>() fills I<nmatch> "
950 "elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire "
951 "match, I<pmatch[1]> to the first subexpression, etc. If there were more "
952 "matches than I<nmatch>, they are discarded; if fewer, unused elements of "
953 "I<pmatch> are filled with B<-1>s."
954 msgstr ""
955
956 #. type: Plain text
957 #: debian-trixie
958 #, no-wrap
959 msgid ""
960 "#include E<lt>stdint.hE<gt>\n"
961 "#include E<lt>stdio.hE<gt>\n"
962 "#include E<lt>stdlib.hE<gt>\n"
963 "#include E<lt>regex.hE<gt>\n"
964 "\\&\n"
965 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
966 "\\&\n"
967 "static const char *const str =\n"
968 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
969 "static const char *const re = \"John.*o\";\n"
970 "\\&\n"
971 "int main(void)\n"
972 "{\n"
973 " static const char *s = str;\n"
974 " regex_t regex;\n"
975 " regmatch_t pmatch[1];\n"
976 " regoff_t off, len;\n"
977 "\\&\n"
978 " if (regcomp(&regex, re, REG_NEWLINE))\n"
979 " exit(EXIT_FAILURE);\n"
980 "\\&\n"
981 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
982 " printf(\"Matches:\\[rs]n\");\n"
983 "\\&\n"
984 " for (unsigned int i = 0; ; i++) {\n"
985 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
986 " break;\n"
987 "\\&\n"
988 " off = pmatch[0].rm_so + (s - str);\n"
989 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
990 " printf(\"#%zu:\\[rs]n\", i);\n"
991 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
992 " (intmax_t) len);\n"
993 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
994 "\\&\n"
995 " s += pmatch[0].rm_eo;\n"
996 " }\n"
997 "\\&\n"
998 " exit(EXIT_SUCCESS);\n"
999 "}\n"
1000 msgstr ""
1001
1002 #. type: TH
1003 #: fedora-44 fedora-rawhide
1004 #, no-wrap
1005 msgid "2025-02-10"
1006 msgstr ""
1007
1008 #. type: TH
1009 #: fedora-44 fedora-rawhide
1010 #, no-wrap
1011 msgid "Linux man-pages 6.13"
1012 msgstr ""
1013
1014 #. type: Plain text
1015 #: fedora-44 fedora-rawhide
1016 #, no-wrap
1017 msgid ""
1018 "#include E<lt>stdint.hE<gt>\n"
1019 "#include E<lt>stdio.hE<gt>\n"
1020 "#include E<lt>stdlib.hE<gt>\n"
1021 "#include E<lt>regex.hE<gt>\n"
1022 "\\&\n"
1023 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1024 "\\&\n"
1025 "static const char *const str =\n"
1026 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1027 "static const char *const re = \"John.*o\";\n"
1028 "\\&\n"
1029 "int main(void)\n"
1030 "{\n"
1031 " static const char *s = str;\n"
1032 " regex_t regex;\n"
1033 " regmatch_t pmatch[1];\n"
1034 " regoff_t off, len;\n"
1035 "\\&\n"
1036 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1037 " exit(EXIT_FAILURE);\n"
1038 "\\&\n"
1039 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1040 " printf(\"Matches:\\[rs]n\");\n"
1041 "\\&\n"
1042 " for (unsigned int i = 0; ; i++) {\n"
1043 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1044 " break;\n"
1045 "\\&\n"
1046 " off = pmatch[0].rm_so + (s - str);\n"
1047 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1048 " printf(\"#%u:\\[rs]n\", i);\n"
1049 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1050 " (intmax_t) len);\n"
1051 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1052 "\\&\n"
1053 " s += pmatch[0].rm_eo;\n"
1054 " }\n"
1055 "\\&\n"
1056 " exit(EXIT_SUCCESS);\n"
1057 "}\n"
1058 msgstr ""
1059
1060 #. type: TH
1061 #: mageia-cauldron
1062 #, no-wrap
1063 msgid "2026-02-10"
1064 msgstr ""
1065
1066 #. type: TH
1067 #: mageia-cauldron
1068 #, no-wrap
1069 msgid "Linux man-pages 6.17"
1070 msgstr ""
1071
1072 #. type: Plain text
1073 #: mageia-cauldron
1074 msgid ""
1075 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1076 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1077 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1078 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1079 "succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and the "
1080 "match offsets remain relative to I<string> (not I<string + "
1081 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1082 msgstr ""
1083
1084 #. type: TH
1085 #: opensuse-leap-16-1 opensuse-tumbleweed
1086 #, no-wrap
1087 msgid "Linux man-pages (unreleased)"
1088 msgstr ""