etc/protocols - sync with NetBSD-8
[minix.git] / tests / lib / libc / regex / data / subexp.in
blobc7bcc06175ea58d988394c90f6a56b44c4878c32
1 # subexpressions
2 a(b)(c)d        -       abcd    abcd    b,c
3 a(((b)))c       -       abc     abc     b,b,b
4 a(b|(c))d       -       abd     abd     b,-
5 a(b*|c|e)d      -       abbd    abbd    bb
6 a(b*|c|e)d      -       acd     acd     c
7 a(b*|c|e)d      -       ad      ad      @d
8 a(b?)c          -       abc     abc     b
9 a(b?)c          -       ac      ac      @c
10 a(b+)c          -       abc     abc     b
11 a(b+)c          -       abbbc   abbbc   bbb
12 a(b*)c          -       ac      ac      @c
13 (a|ab)(bc([de]+)f|cde)  -       abcdef  abcdef  a,bcdef,de
14 # the regression tester only asks for 9 subexpressions
15 a(b)(c)(d)(e)(f)(g)(h)(i)(j)k   -       abcdefghijk     abcdefghijk     b,c,d,e,f,g,h,i,j
16 a(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l        -       abcdefghijkl    abcdefghijkl    b,c,d,e,f,g,h,i,j,k
17 a([bc]?)c       -       abc     abc     b
18 a([bc]?)c       -       ac      ac      @c
19 a([bc]+)c       -       abc     abc     b
20 a([bc]+)c       -       abcc    abcc    bc
21 a([bc]+)bc      -       abcbc   abcbc   bc
22 a(bb+|b)b       -       abb     abb     b
23 a(bbb+|bb+|b)b  -       abb     abb     b
24 a(bbb+|bb+|b)b  -       abbb    abbb    bb
25 a(bbb+|bb+|b)bb -       abbb    abbb    b
26 (.*).*          -       abcdef  abcdef  abcdef
27 (a*)*           -       bc      @b      @b
29 # do we get the right subexpression when it is used more than once?
30 a(b|c)*d        -       ad      ad      -
31 a(b|c)*d        -       abcd    abcd    c
32 a(b|c)+d        -       abd     abd     b
33 a(b|c)+d        -       abcd    abcd    c
34 a(b|c?)+d       -       ad      ad      @d
35 a(b|c?)+d       -       abcd    abcd    @d
36 a(b|c){0,0}d    -       ad      ad      -
37 a(b|c){0,1}d    -       ad      ad      -
38 a(b|c){0,1}d    -       abd     abd     b
39 a(b|c){0,2}d    -       ad      ad      -
40 a(b|c){0,2}d    -       abcd    abcd    c
41 a(b|c){0,}d     -       ad      ad      -
42 a(b|c){0,}d     -       abcd    abcd    c
43 a(b|c){1,1}d    -       abd     abd     b
44 a(b|c){1,1}d    -       acd     acd     c
45 a(b|c){1,2}d    -       abd     abd     b
46 a(b|c){1,2}d    -       abcd    abcd    c
47 a(b|c){1,}d     -       abd     abd     b
48 a(b|c){1,}d     -       abcd    abcd    c
49 a(b|c){2,2}d    -       acbd    acbd    b
50 a(b|c){2,2}d    -       abcd    abcd    c
51 a(b|c){2,4}d    -       abcd    abcd    c
52 a(b|c){2,4}d    -       abcbd   abcbd   b
53 a(b|c){2,4}d    -       abcbcd  abcbcd  c
54 a(b|c){2,}d     -       abcd    abcd    c
55 a(b|c){2,}d     -       abcbd   abcbd   b
56 a(b+|((c)*))+d  -       abd     abd     @d,@d,-
57 a(b+|((c)*))+d  -       abcd    abcd    @d,@d,-