Lines Matching +full:posix +full:- +full:character +full:- +full:classes
43 .Nd POSIX regular expressions
47 .St -p1003.1-2004 ,
68 POSIX leaves some aspects of RE syntax and semantics open;
71 may not be fully portable to other POSIX implementations.
77 An ERE is one** or more non-empty**
152 (matching any single character),
161 (matching that character taken as an ordinary character),
164 followed by any other character**
165 (matching that character taken as an ordinary character,
169 or a single character with no other significance (matching that character).
172 followed by a character other than a digit is an ordinary character,
179 It normally matches any single character from the list (but see below).
182 it matches any single character
187 .Sq - ,
192 .Sq [0-9]
195 .Sq a-c-e .
196 Ranges are very collating-sequence-dependent,
201 in the list, make it the first character
205 .Sq - ,
206 make it the first or last character,
209 .Sq -
224 (a character,
225 a multi-character sequence that collates as if it were a single character,
226 or a collating-sequence name for either)
233 A bracket expression containing a multi-character collating element
234 can thus match more than one character,
268 .Em character class
275 Standard character class names are:
276 .Bd -literal -offset indent
283 These stand for the character classes defined in
286 A character class may not be used as an endpoint of a range.
295 characters starting and ending with a word character
298 A word character is an
300 character (as defined by
304 compatible with but not specified by POSIX,
317 Note that higher-level subexpressions thus take priority over
318 their lower-level component subexpressions.
340 If case-independent matching is specified,
344 ordinary character outside a bracket expression, it is effectively
365 POSIX-compliant.
368 .Bl -tag -width Ds
370 Any character
374 Any backslash-escaped character
378 Matches any single character that is not a newline
380 .It Bq Ar char-class
381 Matches any single character in
382 .Ar char-class .
386 .Ar char-class ,
387 it must be the first character.
390 .Ql - ;
392 .Ar a-z
395 .Ar char-class
397 .Bd -unfilled -offset indent
404 .Ql -
405 appears as the first or last character of
406 .Ar char-class ,
409 .Ar char-class
413 .Ar char-class
416 .Ar col-elm
420 .Ar col-elm
423 .Ar col-elm
427 .It Bq ^ Ns Ar char-class
428 Matches any single character, other than newline, not in
429 .Ar char-class .
430 .Ar char-class
435 is the first character of a regular expression, then it
441 is the last character of a regular expression,
445 Anchors the single character regular expression or subexpression
448 Anchors the single character regular expression or subexpression
455 (that is a long-winded way of saying the constructs
461 Matches the single character regular expression or subexpression
465 is the first character of a regular expression or subexpression,
478 Matches the singular character regular expression
482 Matches the singular character regular expression
492 Matches the single character regular expression or subexpression
518 .Bl -bullet -offset 3n
548 is an ordinary character except at the beginning of the
552 is an ordinary character except at the end of the
556 is an ordinary character if it appears at the beginning of the
562 .Em back-reference :
564 followed by a non-zero decimal digit
582 .Bl -tag -width Ds
584 Any character
588 Any backslash-escaped character
598 Matches any single character that is not a newline
600 .It Bq Ar char-class
601 Matches any single character in
602 .Ar char-class .
606 .Ar char-class ,
607 it must be the first character.
610 .Ql - ;
612 .Ar a-z
615 .Ar char-class
617 .Bd -unfilled -offset indent
624 .Ql -
625 appears as the first or last character of
626 .Ar char-class ,
629 .Ar char-class
633 .Ar char-class
636 .Ar col-elm
640 .Ar col-elm
643 .Ar col-elm
647 .It Bq ^ Ns Ar char-class
648 Matches any single character, other than newline, not in
649 .Ar char-class .
650 .Ar char-class
655 is the first character of a regular expression, then it
661 is the last character of a regular expression,
665 Anchors the single character regular expression or subexpression
668 Anchors the single character regular expression or subexpression
686 Matches the single character regular expression or subexpression
690 is the first character of a regular expression or subexpression,
709 Matches the single character regular expression or subexpression
728 .St -p1003.1-2004 :
733 The current POSIX spec says that
735 is an ordinary character in the absence of an unmatched
741 Back-references are a dreadful botch,
750 POSIX's specification of case-independent matching is vague.