etc/protocols - sync with NetBSD-8
[minix.git] / tests / lib / libc / regex / data / bracket.in
blob53a0b20d3c84f27019c87e2efbe0d07a4c08563b
1 # brackets, and numerous perversions thereof
2 a[b]c           &       abc     abc
3 a[ab]c          &       abc     abc
4 a[^ab]c         &       adc     adc
5 a[]b]c          &       a]c     a]c
6 a[[b]c          &       a[c     a[c
7 a[-b]c          &       a-c     a-c
8 a[^]b]c         &       adc     adc
9 a[^-b]c         &       adc     adc
10 a[b-]c          &       a-c     a-c
11 a[b             &C      EBRACK
12 a[]             &C      EBRACK
13 a[1-3]c         &       a2c     a2c
14 a[3-1]c         &C      ERANGE
15 a[1-3-5]c       &C      ERANGE
16 a[[.-.]--]c     &       a-c     a-c
17 a[1-            &C      ERANGE
18 a[[.            &C      EBRACK
19 a[[.x           &C      EBRACK
20 a[[.x.          &C      EBRACK
21 a[[.x.]         &C      EBRACK
22 a[[.x.]]        &       ax      ax
23 a[[.x,.]]       &C      ECOLLATE
24 a[[.one.]]b     &       a1b     a1b
25 a[[.notdef.]]b  &C      ECOLLATE
26 a[[.].]]b       &       a]b     a]b
27 a[[:alpha:]]c   &       abc     abc
28 a[[:notdef:]]c  &C      ECTYPE
29 a[[:            &C      EBRACK
30 a[[:alpha       &C      EBRACK
31 a[[:alpha:]     &C      EBRACK
32 a[[:alpha,:]    &C      ECTYPE
33 a[[:]:]]b       &C      ECTYPE
34 a[[:-:]]b       &C      ECTYPE
35 a[[:alph:]]     &C      ECTYPE
36 a[[:alphabet:]] &C      ECTYPE
37 [[:alnum:]]+    -       -%@a0X- a0X
38 [[:alpha:]]+    -       -%@aX0- aX
39 [[:blank:]]+    -       aSSTb   SST
40 [[:cntrl:]]+    -       aNTb    NT
41 [[:digit:]]+    -       a019b   019
42 [[:graph:]]+    -       Sa%bS   a%b
43 [[:lower:]]+    -       AabC    ab
44 [[:print:]]+    -       NaSbN   aSb
45 [[:punct:]]+    -       S%-&T   %-&
46 [[:space:]]+    -       aSNTb   SNT
47 [[:upper:]]+    -       aBCd    BC
48 [[:xdigit:]]+   -       p0f3Cq  0f3C
49 a[[=b=]]c       &       abc     abc
50 a[[=            &C      EBRACK
51 a[[=b           &C      EBRACK
52 a[[=b=          &C      EBRACK
53 a[[=b=]         &C      EBRACK
54 a[[=b,=]]       &C      ECOLLATE
55 a[[=one=]]b     &       a1b     a1b