Debian Codegraph @

po/es/man3/regex.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Juan Piernas <[email protected]>, 1998.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
9 "PO-Revision-Date: 1998-10-15 19:53+0200\n"
10 "Last-Translator: Juan Piernas <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\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 "regex"
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-22"
30 msgstr "22 Febrero 2026"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, fuzzy, no-wrap
35 #| msgid "Linux man-pages 6.17"
36 msgid "Linux man-pages 6.18"
37 msgstr "Páginas de Manual de Linux 6.17"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "NOMBRE"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "regcomp, regexec, regerror, regfree - POSIX regex functions"
50 msgstr ""
51 "regcomp, regexec, regerror, regfree - funciones para expresiones regulares "
52 "POSIX"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSIS"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>regex.hE<gt>>\n"
79 msgstr "B<#include E<lt>regex.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, fuzzy, no-wrap
85 #| msgid ""
86 #| "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
87 #| "B< int >I<cflags>B<);>\n"
88 #| "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
89 #| "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[restrict .>I<nmatch>B<],>\n"
90 #| "B< int >I<eflags>B<);>\n"
91 msgid ""
92 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
93 "B< int >I<cflags>B<);>\n"
94 "B<int regexec(const regex_t *restrict >I<preg>B<,>\n"
95 "B< const char *restrict >I<string>B<,>\n"
96 "B< size_t >I<n>B<, regmatch_t >I<pmatch>B<[_Nullable restrict >I<n>B<],>\n"
97 "B< int >I<eflags>B<);>\n"
98 msgstr ""
99 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
100 "B< int >I<cflags>B<);>\n"
101 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
102 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[restrict .>I<nmatch>B<],>\n"
103 "B< int >I<eflags>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
107 #: opensuse-tumbleweed
108 #, fuzzy, no-wrap
109 #| msgid ""
110 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *restrict >I<preg>B<,>\n"
111 #| "B< char >I<errbuf>B<[restrict .>I<errbuf_size>B<], size_t >I<errbuf_size>B<);>\n"
112 #| "B<void regfree(regex_t *>I<preg>B<);>\n"
113 msgid ""
114 "B<size_t regerror(>size_t errbuf_size;\n"
115 "B< int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
116 "B< char >I<errbuf>B<[_Nullable restrict >I<errbuf_size>B<],>\n"
117 "B< size_t >I<errbuf_size>B<);>\n"
118 "B<void regfree(regex_t *>I<preg>B<);>\n"
119 msgstr ""
120 "B<size_t regerror(int >I<errcode>B<, const regex_t *restrict >I<preg>B<,>\n"
121 "B< char >I<errbuf>B<[restrict .>I<errbuf_size>B<], size_t >I<errbuf_size>B<);>\n"
122 "B<void regfree(regex_t *>I<preg>B<);>\n"
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 ""
129 "B<typedef struct {>\n"
130 "B<size_t re_nsub;>\n"
131 "B<} regex_t;>\n"
132 msgstr ""
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, fuzzy, no-wrap
138 #| msgid ""
139 #| "typedef struct {\n"
140 #| " regoff_t rm_so;\n"
141 #| " regoff_t rm_eo;\n"
142 #| "} regmatch_t;\n"
143 msgid ""
144 "B<typedef struct {>\n"
145 "B<regoff_t rm_so;>\n"
146 "B<regoff_t rm_eo;>\n"
147 "B<} regmatch_t;>\n"
148 msgstr ""
149 "typedef struct {\n"
150 " regoff_t rm_so;\n"
151 " regoff_t rm_eo;\n"
152 "} regmatch_t;\n"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "B<typedef> /* ... */ B<regoff_t;>\n"
159 msgstr ""
160
161 #. type: SH
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "DESCRIPTION"
166 msgstr "DESCRIPCIÓN"
167
168 #. type: SS
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "Compilation"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "B<regcomp>() is used to compile a regular expression into a form that is "
180 "suitable for subsequent B<regexec>() searches."
181 msgstr ""
182 "B<regcomp>() se utiliza para compilar una expresión regular en un formato "
183 "apropiado para ser usado por B<regexec>() en búsquedas posteriores."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "On success, the pattern buffer at I<*preg> is initialized. I<regex> is a "
190 "null-terminated string. The locale must be the same when running "
191 "B<regexec>()."
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 msgid ""
198 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
199 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
200 "passed as I<n> to B<regexec>() is sufficient to capture all matches."
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, fuzzy
207 #| msgid "I<cflags> may be the bitwise-B<or> of one or more of the following:"
208 msgid "I<cflags> is the bitwise OR of zero or more of the following:"
209 msgstr ""
210 "I<cflags> debe ser un B<O>-lógico a nivel de bits de una o más de las "
211 "siguientes opciones:"
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<REG_EXTENDED>"
218 msgstr "B<REG_EXTENDED>"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, fuzzy
224 #| msgid ""
225 #| "Use B<POSIX> Extended Regular Expression syntax when interpreting "
226 #| "I<regex>. If not set, B<POSIX> Basic Regular Expression syntax is used."
227 msgid ""
228 "Use POSIX Extended Regular Expression syntax when interpreting I<regex>. If "
229 "not set, POSIX Basic Regular Expression syntax is used."
230 msgstr ""
231 "Utilizar el tipo de sintaxis 'Expresión Regular Extendida B<POSIX>' cuando "
232 "se interprete I<regex>. Si no se activa esta opción, se utiliza el tipo de "
233 "sintaxis 'Expresión Regular Básica B<POSIX>'."
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<REG_ICASE>"
240 msgstr "B<REG_ICASE>"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "Do not differentiate case. Subsequent B<regexec>() searches using this "
247 "pattern buffer will be case insensitive."
248 msgstr ""
249 "No distinguir entre mayúsculas y minúsculas. Las siguientes búsquedas "
250 "B<regexec>() que usen este buffer de patrones no distinguirán entre "
251 "mayúsculas y minúsculas."
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<REG_NOSUB>"
258 msgstr "B<REG_NOSUB>"
259
260 #. type: Plain text
261 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
262 #: opensuse-tumbleweed
263 msgid ""
264 "Report only overall success. B<regexec>() will use only I<pmatch> for "
265 "B<REG_STARTEND>, ignoring I<n>."
266 msgstr ""
267
268 #. type: TP
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "B<REG_NEWLINE>"
273 msgstr "B<REG_NEWLINE>"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "Match-any-character operators don't match a newline."
279 msgstr ""
280 "Los operadores \"coincidir con cualquier carácter\" no coinciden con un "
281 "carácter \"nueva línea\"."
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, fuzzy
287 #| msgid ""
288 #| "A nonmatching list (B<[\\(ha...]>) not containing a newline does not "
289 #| "match a newline."
290 msgid ""
291 "A nonmatching list (B<[\\[ha]...\\&]>) not containing a newline does not "
292 "match a newline."
293 msgstr ""
294 "Una lista de no-coincidencia (B<[\\(ha...]>) que no contenga un carácter "
295 "\"nueva línea\" no coincidirá con una \"nueva línea\"."
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, fuzzy
301 #| msgid ""
302 #| "Match-beginning-of-line operator (B<\\(ha>) matches the empty string "
303 #| "immediately after a newline, regardless of whether I<eflags>, the "
304 #| "execution flags of B<regexec>(), contains B<REG_NOTBOL>."
305 msgid ""
306 "Match-beginning-of-line operator (B<\\[ha]>) matches the empty string "
307 "immediately after a newline, regardless of whether I<eflags>, the execution "
308 "flags of B<regexec>(), contains B<REG_NOTBOL>."
309 msgstr ""
310 "Un operador \"coincidir al principio de línea\" (B<\\(ha>) coincide con la "
311 "cadena vacía inmediatamente posterior a un carácter \"nueva línea\", sin "
312 "tener en cuenta si I<eflags>, la bandera de ejecución de B<regexec>(), "
313 "contiene B<REG_NOTBOL> o no."
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "Match-end-of-line operator (B<$>) matches the empty string immediately "
320 "before a newline, regardless of whether I<eflags> contains B<REG_NOTEOL>."
321 msgstr ""
322 "Un operador \"coincidir al final de línea\" (B<$>) coincide con la cadena "
323 "vacía inmediatamente anterior a un carácter \"nueva línea\", sin tener en "
324 "cuenta si I<eflags> contiene B<REG_NOTEOL> o no."
325
326 #. type: SS
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, fuzzy, no-wrap
330 #| msgid "Searching"
331 msgid "Matching"
332 msgstr "Búsquedas"
333
334 #. type: Plain text
335 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
336 #: opensuse-leap-16-1 opensuse-tumbleweed
337 #, fuzzy
338 #| msgid ""
339 #| "B<regexec>() is used to match a null-terminated string against the "
340 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
341 #| "provide information regarding the location of any matches. I<eflags> may "
342 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
343 #| "which cause changes in matching behavior described below."
344 msgid ""
345 "B<regexec>() is used to match a null-terminated string against the compiled "
346 "pattern buffer in I<*preg>, which must have been initialised with "
347 "B<regcomp>(). I<eflags> is the bitwise OR of zero or more of the following "
348 "flags:"
349 msgstr ""
350 "B<regexec>() se utiliza para comprobar si una cadena I<string>, terminada en "
351 "un carácter nulo, coincide con alguno de los patrones precompilados del "
352 "buffer I<preg>. I<nmatch> y I<pmatch> se utilizan para informar respecto a "
353 "la localización de cualquier coincidencia. I<eflags> puede ser "
354 "B<REG_NOTBOL> o B<REG_NOTEOL> o un B<O>-lógico de ambos valores, lo que "
355 "cambia el comportamiento en las coincidencias tal como se describe a "
356 "continuación."
357
358 #. type: TP
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<REG_NOTBOL>"
363 msgstr "B<REG_NOTBOL>"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "The match-beginning-of-line operator always fails to match (but see the "
370 "compilation flag B<REG_NEWLINE> above). This flag may be used when "
371 "different portions of a string are passed to B<regexec>() and the beginning "
372 "of the string should not be interpreted as the beginning of the line."
373 msgstr ""
374 "El operador \"coincidir al principio de línea\" siempre falla en las "
375 "coincidencias (pero vea la opción de compilación B<REG_NEWLINE> más "
376 "arriba). Esta bandera se puede utilizar cuando se pasan diferentes "
377 "porciones de una cadena a B<regexec>() y el comienzo de la cadena no se debe "
378 "interpretar como el principio de una línea."
379
380 #. type: TP
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "B<REG_NOTEOL>"
385 msgstr "B<REG_NOTEOL>"
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "The match-end-of-line operator always fails to match (but see the "
392 "compilation flag B<REG_NEWLINE> above)."
393 msgstr ""
394 "El operador \"coincidir al final de línea\" siempre falla en la "
395 "coincidencias (pero vea la opción de compilación B<REG_NEWLINE> más arriba)."
396
397 #. type: TP
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "B<REG_STARTEND>"
402 msgstr "B<REG_STARTEND>"
403
404 #. type: Plain text
405 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
408 "[I<string>,\\ I<strnul(string)>). This allows matching embedded NUL bytes. "
409 "If any matches are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the "
410 "match succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and "
411 "the match offsets remain relative to I<string> (not I<string + "
412 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
413 msgstr ""
414
415 #. type: SS
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, fuzzy, no-wrap
419 #| msgid "Byte offsets"
420 msgid "Match offsets"
421 msgstr "Desplazamientos de bytes"
422
423 #. type: Plain text
424 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
425 #: opensuse-tumbleweed
426 msgid ""
427 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
428 "locations of matches within I<string>: B<regexec>() fills I<n> elements of "
429 "I<pmatch> with results: I<pmatch[0]> corresponds to the entire match, "
430 "I<pmatch[1]> to the first subexpression, etc. If there were more matches "
431 "than I<n>, they are discarded; if fewer, unused elements of I<pmatch> are "
432 "filled with B<-1>s."
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid ""
439 "Each returned valid (non-B<-1>) match corresponds to the range [I<string + "
440 "rm_so>,I< string + rm_eo>)."
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "I<regoff_t> is a signed integer type capable of storing the largest value "
448 "that can be stored in either an I<ptrdiff_t> type or a I<ssize_t> type."
449 msgstr ""
450
451 #. type: SS
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, fuzzy, no-wrap
455 #| msgid "POSIX error reporting"
456 msgid "Error reporting"
457 msgstr "Informes de error POSIX"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "B<regerror>() is used to turn the error codes that can be returned by both "
464 "B<regcomp>() and B<regexec>() into error message strings."
465 msgstr ""
466 "B<regerror>() se utiliza para convertir los códigos de error que pueden "
467 "devolver tanto B<regcomp>() como B<regexec>() en cadenas de mensaje de error."
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "If I<preg> isn't a null pointer, I<errcode> must be the latest error "
474 "returned from an operation on I<preg>."
475 msgstr ""
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "If I<errbuf_size> isn't 0, up to I<errbuf_size> bytes are copied to "
482 "I<errbuf>; the error string is always null-terminated, and truncated to fit."
483 msgstr ""
484
485 #. type: SS
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "Freeing"
490 msgstr ""
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "B<regfree>() deinitializes the pattern buffer at I<*preg>, freeing any "
497 "associated memory; I<*preg> must have been initialized via B<regcomp>()."
498 msgstr ""
499
500 #. type: SH
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "RETURN VALUE"
505 msgstr "VALOR DEVUELTO"
506
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "B<regcomp>() returns zero for a successful compilation or an error code for "
512 "failure."
513 msgstr ""
514 "B<regcomp>() devuelve cero si la compilación tiene éxito y un código de "
515 "error si falla."
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "B<regexec>() returns zero for a successful match or B<REG_NOMATCH> for "
522 "failure."
523 msgstr ""
524 "B<regexec>() devuelve cero si hay coincidencia y B<REG_NOMATCH> en caso de "
525 "fallo."
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid ""
531 "B<regerror>() returns the size of the buffer required to hold the string."
532 msgstr ""
533
534 #. type: SH
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "ERRORS"
539 msgstr "ERRORES"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid "The following errors can be returned by B<regcomp>():"
545 msgstr "B<regcomp>() puede devolver los siguientes errores:"
546
547 #. type: TP
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "B<REG_BADBR>"
552 msgstr "B<REG_BADBR>"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid "Invalid use of back reference operator."
558 msgstr "Uso incorrecto del operador de referencia inversa."
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<REG_BADPAT>"
565 msgstr "B<REG_BADPAT>"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid "Invalid use of pattern operators such as group or list."
571 msgstr "Uso incorrecto de operadores de patrón tales como grupo o lista."
572
573 #. type: TP
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "B<REG_BADRPT>"
578 msgstr "B<REG_BADRPT>"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, fuzzy
584 #| msgid ""
585 #| "Invalid use of repetition operators such as using \\(aq*\\(aq as the "
586 #| "first character."
587 msgid ""
588 "Invalid use of repetition operators such as using \\[aq]*\\[aq] as the first "
589 "character."
590 msgstr ""
591 "Uso incorrecto de operadores de repetición, como el uso de \\(aq*\\(aq como "
592 "primer carácter."
593
594 #. type: TP
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 #, no-wrap
598 msgid "B<REG_EBRACE>"
599 msgstr "B<REG_EBRACE>"
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid "Un-matched brace interval operators."
605 msgstr "Existe una llave de un operador de intervalo no emparejada."
606
607 #. type: TP
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "B<REG_EBRACK>"
612 msgstr "B<REG_EBRACK>"
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 msgid "Un-matched bracket list operators."
618 msgstr "Existe un corchete de un operador de lista no emparejado."
619
620 #. type: TP
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "B<REG_ECOLLATE>"
625 msgstr "B<REG_ECOLLATE>"
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid "Invalid collating element."
631 msgstr "Elemento de comparación inválido."
632
633 #. type: TP
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 #, no-wrap
637 msgid "B<REG_ECTYPE>"
638 msgstr "B<REG_ECTYPE>"
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid "Unknown character class name."
644 msgstr "Nombre de clase de caracteres desconocido."
645
646 #. type: TP
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 #, no-wrap
650 msgid "B<REG_EEND>"
651 msgstr "B<REG_EEND>"
652
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, fuzzy
657 #| msgid "Nonspecific error. This is not defined by POSIX.2."
658 msgid "Nonspecific error. This is not defined by POSIX."
659 msgstr "Error indefinido. No definido por POSIX.2."
660
661 #. type: TP
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 #, no-wrap
665 msgid "B<REG_EESCAPE>"
666 msgstr "B<REG_EESCAPE>"
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid "Trailing backslash."
672 msgstr "Barra invertida (\\e) al final."
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "B<REG_EPAREN>"
679 msgstr "B<REG_EPAREN>"
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid "Un-matched parenthesis group operators."
685 msgstr "Existe un paréntesis de un operador de grupo no emparejado."
686
687 #. type: TP
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "B<REG_ERANGE>"
692 msgstr "B<REG_ERANGE>"
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 msgid ""
698 "Invalid use of the range operator; for example, the ending point of the "
699 "range occurs prior to the starting point."
700 msgstr ""
701 "Uso incorrecto de un operador de rango; por ejemplo, el límite superior del "
702 "rango ocurre antes que el límite inferior."
703
704 #. type: TP
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "B<REG_ESIZE>"
709 msgstr "B<REG_ESIZE>"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, fuzzy
715 #| msgid ""
716 #| "Compiled regular expression requires a pattern buffer larger than 64\\ "
717 #| "kB. This is not defined by POSIX.2."
718 msgid ""
719 "Compiled regular expression requires a pattern buffer larger than 64\\ kB. "
720 "This is not defined by POSIX."
721 msgstr ""
722 "La expresión regular compilada necesita un buffer de patrones mayor que 64\\ "
723 "kB. No definido por POSIX.2."
724
725 #. type: TP
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<REG_ESPACE>"
730 msgstr "B<REG_ESPACE>"
731
732 #. type: Plain text
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 msgid "The regex routines ran out of memory."
736 msgstr ""
737 "Las rutinas de expresiones regulares se ejecutaron fuera de sus límites de "
738 "memoria."
739
740 #. type: TP
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid "B<REG_ESUBREG>"
745 msgstr "B<REG_ESUBREG>"
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 msgid "Invalid back reference to a subexpression."
751 msgstr "Referencia inversa incorrecta a una subexpresión."
752
753 #. type: SH
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "ATTRIBUTES"
758 msgstr "ATRIBUTOS"
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid ""
764 "For an explanation of the terms used in this section, see B<attributes>(7)."
765 msgstr ""
766 "Para obtener una explicación de los términos usados en esta sección, véase "
767 "B<attributes>(7)."
768
769 #. type: tbl table
770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
772 #, no-wrap
773 msgid "Interface"
774 msgstr "Interfaz"
775
776 #. type: tbl table
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 #, no-wrap
780 msgid "Attribute"
781 msgstr "Atributo"
782
783 #. type: tbl table
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 #, no-wrap
787 msgid "Value"
788 msgstr "Valor"
789
790 #. type: tbl table
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid ".na\n"
795 msgstr ".na\n"
796
797 #. type: tbl table
798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
800 #, no-wrap
801 msgid ".nh\n"
802 msgstr ".nh\n"
803
804 #. type: tbl table
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid ""
809 "B<regcomp>(),\n"
810 "B<regexec>()"
811 msgstr ""
812 "B<regcomp>(),\n"
813 "B<regexec>()"
814
815 #. type: tbl table
816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
818 #, no-wrap
819 msgid "Thread safety"
820 msgstr "Seguridad del hilo"
821
822 #. type: tbl table
823 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
824 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "MT-Safe locale"
827 msgstr "Configuración regional de multi-hilo seguro"
828
829 #. type: tbl table
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "B<regerror>()"
834 msgstr "B<regerror>()"
835
836 #. type: tbl table
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, fuzzy, no-wrap
840 #| msgid "MT-Safe"
841 msgid "MT-Safe env"
842 msgstr "Multi-hilo seguro"
843
844 #. type: tbl table
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 #, no-wrap
848 msgid "B<regfree>()"
849 msgstr "B<regfree>()"
850
851 #. type: tbl table
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 #, no-wrap
855 msgid "MT-Safe"
856 msgstr "Multi-hilo seguro"
857
858 #. type: SH
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 #, no-wrap
862 msgid "STANDARDS"
863 msgstr "ESTÁNDARES"
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 "POSIX.1-2008."
869 msgstr "POSIX.1-2008."
870
871 #. type: SH
872 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
873 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
874 #, no-wrap
875 msgid "HISTORY"
876 msgstr "HISTORIAL"
877
878 #. type: Plain text
879 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
880 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
881 msgid "POSIX.1-2001."
882 msgstr "POSIX.1-2001."
883
884 #. type: Plain text
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 msgid ""
888 "Prior to POSIX.1-2008, I<regoff_t> was required to be capable of storing the "
889 "largest value that can be stored in either an I<off_t> type or a I<ssize_t> "
890 "type."
891 msgstr ""
892
893 #. type: SH
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 #, no-wrap
897 msgid "CAVEATS"
898 msgstr ""
899
900 #. glibc, musl, 4.4BSD, illumos
901 #. type: Plain text
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 msgid ""
905 "I<re_nsub> is only required to be initialized if B<REG_NOSUB> wasn't "
906 "specified, but all known implementations initialize it regardless."
907 msgstr ""
908
909 #. illumos has two more start/end pairs and the first one is of pointers
910 #. type: Plain text
911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
913 msgid ""
914 "Both I<regex_t> and I<regmatch_t> may (and do) have more members, in any "
915 "order. Always reference them by name."
916 msgstr ""
917
918 #. type: SH
919 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
920 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
921 #, no-wrap
922 msgid "EXAMPLES"
923 msgstr "EJEMPLOS"
924
925 #. type: Plain text
926 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
927 #: opensuse-tumbleweed
928 #, no-wrap
929 msgid ""
930 "#include E<lt>stdcountof.hE<gt>\n"
931 "#include E<lt>stdint.hE<gt>\n"
932 "#include E<lt>stdio.hE<gt>\n"
933 "#include E<lt>stdlib.hE<gt>\n"
934 "#include E<lt>regex.hE<gt>\n"
935 "\\&\n"
936 "static const char *const str =\n"
937 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
938 "static const char *const re = \"John.*o\";\n"
939 "\\&\n"
940 "int main(void)\n"
941 "{\n"
942 " static const char *s = str;\n"
943 " regex_t regex;\n"
944 " regmatch_t pmatch[1];\n"
945 " regoff_t off, len;\n"
946 "\\&\n"
947 " if (regcomp(&regex, re, REG_NEWLINE))\n"
948 " exit(EXIT_FAILURE);\n"
949 "\\&\n"
950 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
951 " printf(\"Matches:\\[rs]n\");\n"
952 "\\&\n"
953 " for (unsigned int i = 0; ; i++) {\n"
954 " if (regexec(&regex, s, countof(pmatch), pmatch, 0))\n"
955 " break;\n"
956 "\\&\n"
957 " off = pmatch[0].rm_so + (s - str);\n"
958 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
959 " printf(\"#%u:\\[rs]n\", i);\n"
960 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
961 " (intmax_t) len);\n"
962 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
963 "\\&\n"
964 " s += pmatch[0].rm_eo;\n"
965 " }\n"
966 "\\&\n"
967 " exit(EXIT_SUCCESS);\n"
968 "}\n"
969 msgstr ""
970
971 #. type: SH
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 #, no-wrap
975 msgid "SEE ALSO"
976 msgstr "VÉASE TAMBIÉN"
977
978 #. type: Plain text
979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
981 msgid "B<grep>(1), B<regex>(7)"
982 msgstr "B<grep>(1), B<regex>(7)"
983
984 #. type: Plain text
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 msgid "The glibc manual section, I<Regular Expressions>"
988 msgstr ""
989
990 #. type: TH
991 #: debian-trixie
992 #, no-wrap
993 msgid "2024-06-15"
994 msgstr "15 Junio 2024"
995
996 #. type: TH
997 #: debian-trixie
998 #, no-wrap
999 msgid "Linux man-pages 6.9.1"
1000 msgstr "Páginas de Manual de Linux 6.9.1"
1001
1002 #. type: Plain text
1003 #: debian-trixie
1004 msgid "Standard C library (I<libc>, I<-lc>)"
1005 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
1006
1007 #. type: Plain text
1008 #: debian-trixie fedora-44 fedora-rawhide
1009 #, fuzzy, no-wrap
1010 #| msgid ""
1011 #| "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
1012 #| "B< int >I<cflags>B<);>\n"
1013 #| "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
1014 #| "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[restrict .>I<nmatch>B<],>\n"
1015 #| "B< int >I<eflags>B<);>\n"
1016 msgid ""
1017 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
1018 "B< int >I<cflags>B<);>\n"
1019 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
1020 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[_Nullable restrict .>I<nmatch>B<],>\n"
1021 "B< int >I<eflags>B<);>\n"
1022 msgstr ""
1023 "B<int regcomp(regex_t *restrict >I<preg>B<, const char *restrict >I<regex>B<,>\n"
1024 "B< int >I<cflags>B<);>\n"
1025 "B<int regexec(const regex_t *restrict >I<preg>B<, const char *restrict >I<string>B<,>\n"
1026 "B< size_t >I<nmatch>B<, regmatch_t >I<pmatch>B<[restrict .>I<nmatch>B<],>\n"
1027 "B< int >I<eflags>B<);>\n"
1028
1029 #. type: Plain text
1030 #: debian-trixie fedora-44 fedora-rawhide
1031 #, fuzzy, no-wrap
1032 #| msgid ""
1033 #| "B<size_t regerror(int >I<errcode>B<, const regex_t *restrict >I<preg>B<,>\n"
1034 #| "B< char >I<errbuf>B<[restrict .>I<errbuf_size>B<], size_t >I<errbuf_size>B<);>\n"
1035 #| "B<void regfree(regex_t *>I<preg>B<);>\n"
1036 msgid ""
1037 "B<size_t regerror(int >I<errcode>B<, const regex_t *_Nullable restrict >I<preg>B<,>\n"
1038 "B< char >I<errbuf>B<[_Nullable restrict .>I<errbuf_size>B<],>\n"
1039 "B< size_t >I<errbuf_size>B<);>\n"
1040 "B<void regfree(regex_t *>I<preg>B<);>\n"
1041 msgstr ""
1042 "B<size_t regerror(int >I<errcode>B<, const regex_t *restrict >I<preg>B<,>\n"
1043 "B< char >I<errbuf>B<[restrict .>I<errbuf_size>B<], size_t >I<errbuf_size>B<);>\n"
1044 "B<void regfree(regex_t *>I<preg>B<);>\n"
1045
1046 #. type: Plain text
1047 #: debian-trixie fedora-44 fedora-rawhide
1048 msgid ""
1049 "After B<regcomp>() succeeds, I<preg-E<gt>re_nsub> holds the number of "
1050 "subexpressions in I<regex>. Thus, a value of I<preg-E<gt>re_nsub> + 1 "
1051 "passed as I<nmatch> to B<regexec>() is sufficient to capture all matches."
1052 msgstr ""
1053
1054 #. type: Plain text
1055 #: debian-trixie fedora-44 fedora-rawhide
1056 msgid ""
1057 "Report only overall success. B<regexec>() will use only I<pmatch> for "
1058 "B<REG_STARTEND>, ignoring I<nmatch>."
1059 msgstr ""
1060
1061 #. type: Plain text
1062 #: debian-trixie
1063 #, fuzzy
1064 #| msgid ""
1065 #| "B<regexec>() is used to match a null-terminated string against the "
1066 #| "precompiled pattern buffer, I<preg>. I<nmatch> and I<pmatch> are used to "
1067 #| "provide information regarding the location of any matches. I<eflags> may "
1068 #| "be the bitwise-B<or> of one or both of B<REG_NOTBOL> and B<REG_NOTEOL> "
1069 #| "which cause changes in matching behavior described below."
1070 msgid ""
1071 "B<regexec>() is used to match a null-terminated string against the compiled "
1072 "pattern buffer in I<*preg>, which must have been initialised with "
1073 "B<regexec>(). I<eflags> is the bitwise OR of zero or more of the following "
1074 "flags:"
1075 msgstr ""
1076 "B<regexec>() se utiliza para comprobar si una cadena I<string>, terminada en "
1077 "un carácter nulo, coincide con alguno de los patrones precompilados del "
1078 "buffer I<preg>. I<nmatch> y I<pmatch> se utilizan para informar respecto a "
1079 "la localización de cualquier coincidencia. I<eflags> puede ser "
1080 "B<REG_NOTBOL> o B<REG_NOTEOL> o un B<O>-lógico de ambos valores, lo que "
1081 "cambia el comportamiento en las coincidencias tal como se describe a "
1082 "continuación."
1083
1084 #. type: Plain text
1085 #: debian-trixie fedora-44 fedora-rawhide
1086 msgid ""
1087 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1088 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1089 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1090 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1091 "succeeded, and I<nmatch> E<gt> 0), they overwrite I<pmatch> as usual, and "
1092 "the match offsets remain relative to I<string> (not I<string + "
1093 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1094 msgstr ""
1095
1096 #. type: Plain text
1097 #: debian-trixie fedora-44 fedora-rawhide
1098 msgid ""
1099 "Unless B<REG_NOSUB> was passed to B<regcomp>(), it is possible to obtain the "
1100 "locations of matches within I<string>: B<regexec>() fills I<nmatch> "
1101 "elements of I<pmatch> with results: I<pmatch[0]> corresponds to the entire "
1102 "match, I<pmatch[1]> to the first subexpression, etc. If there were more "
1103 "matches than I<nmatch>, they are discarded; if fewer, unused elements of "
1104 "I<pmatch> are filled with B<-1>s."
1105 msgstr ""
1106
1107 #. type: Plain text
1108 #: debian-trixie
1109 #, no-wrap
1110 msgid ""
1111 "#include E<lt>stdint.hE<gt>\n"
1112 "#include E<lt>stdio.hE<gt>\n"
1113 "#include E<lt>stdlib.hE<gt>\n"
1114 "#include E<lt>regex.hE<gt>\n"
1115 "\\&\n"
1116 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1117 "\\&\n"
1118 "static const char *const str =\n"
1119 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1120 "static const char *const re = \"John.*o\";\n"
1121 "\\&\n"
1122 "int main(void)\n"
1123 "{\n"
1124 " static const char *s = str;\n"
1125 " regex_t regex;\n"
1126 " regmatch_t pmatch[1];\n"
1127 " regoff_t off, len;\n"
1128 "\\&\n"
1129 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1130 " exit(EXIT_FAILURE);\n"
1131 "\\&\n"
1132 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1133 " printf(\"Matches:\\[rs]n\");\n"
1134 "\\&\n"
1135 " for (unsigned int i = 0; ; i++) {\n"
1136 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1137 " break;\n"
1138 "\\&\n"
1139 " off = pmatch[0].rm_so + (s - str);\n"
1140 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1141 " printf(\"#%zu:\\[rs]n\", i);\n"
1142 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1143 " (intmax_t) len);\n"
1144 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1145 "\\&\n"
1146 " s += pmatch[0].rm_eo;\n"
1147 " }\n"
1148 "\\&\n"
1149 " exit(EXIT_SUCCESS);\n"
1150 "}\n"
1151 msgstr ""
1152
1153 #. type: TH
1154 #: fedora-44 fedora-rawhide
1155 #, no-wrap
1156 msgid "2025-02-10"
1157 msgstr "10 Febrero 2025"
1158
1159 #. type: TH
1160 #: fedora-44 fedora-rawhide
1161 #, no-wrap
1162 msgid "Linux man-pages 6.13"
1163 msgstr "Páginas de Manual de Linux 6.13"
1164
1165 #. type: Plain text
1166 #: fedora-44 fedora-rawhide
1167 #, no-wrap
1168 msgid ""
1169 "#include E<lt>stdint.hE<gt>\n"
1170 "#include E<lt>stdio.hE<gt>\n"
1171 "#include E<lt>stdlib.hE<gt>\n"
1172 "#include E<lt>regex.hE<gt>\n"
1173 "\\&\n"
1174 "#define ARRAY_SIZE(arr) (sizeof((arr)) / sizeof((arr)[0]))\n"
1175 "\\&\n"
1176 "static const char *const str =\n"
1177 " \"1) John Driverhacker;\\[rs]n2) John Doe;\\[rs]n3) John Foo;\\[rs]n\";\n"
1178 "static const char *const re = \"John.*o\";\n"
1179 "\\&\n"
1180 "int main(void)\n"
1181 "{\n"
1182 " static const char *s = str;\n"
1183 " regex_t regex;\n"
1184 " regmatch_t pmatch[1];\n"
1185 " regoff_t off, len;\n"
1186 "\\&\n"
1187 " if (regcomp(&regex, re, REG_NEWLINE))\n"
1188 " exit(EXIT_FAILURE);\n"
1189 "\\&\n"
1190 " printf(\"String = \\[rs]\"%s\\[rs]\"\\[rs]n\", str);\n"
1191 " printf(\"Matches:\\[rs]n\");\n"
1192 "\\&\n"
1193 " for (unsigned int i = 0; ; i++) {\n"
1194 " if (regexec(&regex, s, ARRAY_SIZE(pmatch), pmatch, 0))\n"
1195 " break;\n"
1196 "\\&\n"
1197 " off = pmatch[0].rm_so + (s - str);\n"
1198 " len = pmatch[0].rm_eo - pmatch[0].rm_so;\n"
1199 " printf(\"#%u:\\[rs]n\", i);\n"
1200 " printf(\"offset = %jd; length = %jd\\[rs]n\", (intmax_t) off,\n"
1201 " (intmax_t) len);\n"
1202 " printf(\"substring = \\[rs]\"%.*s\\[rs]\"\\[rs]n\", len, s + pmatch[0].rm_so);\n"
1203 "\\&\n"
1204 " s += pmatch[0].rm_eo;\n"
1205 " }\n"
1206 "\\&\n"
1207 " exit(EXIT_SUCCESS);\n"
1208 "}\n"
1209 msgstr ""
1210
1211 #. type: TH
1212 #: mageia-cauldron
1213 #, no-wrap
1214 msgid "2026-02-10"
1215 msgstr "10 Febrero 2026"
1216
1217 #. type: TH
1218 #: mageia-cauldron
1219 #, no-wrap
1220 msgid "Linux man-pages 6.17"
1221 msgstr "Páginas de Manual de Linux 6.17"
1222
1223 #. type: Plain text
1224 #: mageia-cauldron
1225 msgid ""
1226 "Match [I<string + pmatch[0].rm_so>,I< string + pmatch[0].rm_eo>) instead of "
1227 "[I<string>,I< string + strlen(string)>). This allows matching embedded NUL "
1228 "bytes and avoids a B<strlen>(3) on known-length strings. If any matches "
1229 "are returned (B<REG_NOSUB> wasn't passed to B<regcomp>(), the match "
1230 "succeeded, and I<n> E<gt> 0), they overwrite I<pmatch> as usual, and the "
1231 "match offsets remain relative to I<string> (not I<string + "
1232 "pmatch[0].rm_so>). This flag is a BSD extension, not present in POSIX."
1233 msgstr ""
1234
1235 #. type: TH
1236 #: opensuse-leap-16-1 opensuse-tumbleweed
1237 #, no-wrap
1238 msgid "Linux man-pages (unreleased)"
1239 msgstr "Páginas de Manual de Linux (no publicadas)"