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