Lines Matching +full:re +full:-

40 .Nd regular-expression library
63 .St -p1003.2
65 .Pq Do RE Dc Ns s ;
71 compiles an RE written as a string into an internal form,
75 transforms error codes from either into human-readable messages,
78 frees any dynamically-allocated storage used by the internal form
79 of an RE.
110 .Bl -tag -width REG_EXTENDED
128 .Dq RE
132 .St -p1003.2 ,
149 Compile for newline-sensitive matching.
176 This flag permits inclusion of NULs in the RE;
180 .St -p1003.2 ,
185 .St -p1003.2
191 .St -p1003.2 ,
207 contains the number of parenthesized subexpressions within the RE
213 fails, it returns a non-zero error code;
220 matches the compiled RE pointed to by
230 The RE must have been compiled by a previous invocation of
234 so a single compiled RE can be used simultaneously by multiple threads.
237 the NUL-terminated string pointed to by
244 .Bl -tag -width REG_STARTEND
281 .St -p1003.2 ,
319 for a discussion of what is matched in situations where an RE or a
325 returns 0 for success and the non-zero code
328 Other non-zero error codes may be returned in exceptional situations;
334 was specified in the compilation of the RE,
373 was matched by the entire RE.
375 subexpressions within the RE;
381 parentheses in the RE, left to right.
384 exist in the RE (that is,
387 .Fa preg Ns -> Ns Va re_nsub ) )
392 set to -1.
395 (Note, as an example in particular, that when the RE
434 maps a non-zero
440 to a human-readable, printable message.
444 .No non\- Ns Dv NULL ,
466 places the NUL-terminated message into the buffer pointed to by
501 .No non\- Ns Dv NULL
517 .St -p1003.2 ,
525 frees any dynamically-allocated storage associated with the compiled RE
530 is no longer a valid compiled RE
542 .St -p1003.2
547 forbidden by the RE grammar.
552 for a discussion of the definition of case-independent matching.
556 Memory usage is approximately linear in RE size, and largely insensitive
557 to RE complexity, except for bounded repetitions.
560 for one short RE using them
565 .St -p1003.2
577 Equivalence classes cannot begin or end bracket-expression ranges.
606 An empty string is not a legal RE.
624 Non-zero error codes from
630 .Bl -tag -width REG_ECOLLATE -compact
676 cannot happen - you found a bug
678 invalid argument, e.g.\& negative-length string
686 .St -p1003.2 ,
700 The back-reference code is subtle and doubts linger about its correctness
717 is largely insensitive to RE complexity
722 for keeping RE length under about 30 characters,
731 An RE like, say,
742 .St -p1003.2 ,
760 The implementation of word-boundary matching is a bit of a kludge,
761 and bugs may lurk in combinations of word-boundary matching and anchoring.
763 Word-boundary matching does not work properly in multibyte locales.