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
11 a(b+)c - abbbc abbbc bbb
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
20 a([bc]+)c - abcc abcc bc
21 a([bc]+)bc - abcbc abcbc bc
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
29 # do we get the right subexpression when it is used more than once?
31 a(b|c)*d - abcd abcd c
33 a(b|c)+d - abcd abcd c
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
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,-