subexp.in revision 272343
1272343Sngie# subexpressions 2272343Sngiea(b)(c)d - abcd abcd b,c 3272343Sngiea(((b)))c - abc abc b,b,b 4272343Sngiea(b|(c))d - abd abd b,- 5272343Sngiea(b*|c|e)d - abbd abbd bb 6272343Sngiea(b*|c|e)d - acd acd c 7272343Sngiea(b*|c|e)d - ad ad @d 8272343Sngiea(b?)c - abc abc b 9272343Sngiea(b?)c - ac ac @c 10272343Sngiea(b+)c - abc abc b 11272343Sngiea(b+)c - abbbc abbbc bbb 12272343Sngiea(b*)c - ac ac @c 13272343Sngie(a|ab)(bc([de]+)f|cde) - abcdef abcdef a,bcdef,de 14272343Sngie# the regression tester only asks for 9 subexpressions 15272343Sngiea(b)(c)(d)(e)(f)(g)(h)(i)(j)k - abcdefghijk abcdefghijk b,c,d,e,f,g,h,i,j 16272343Sngiea(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l - abcdefghijkl abcdefghijkl b,c,d,e,f,g,h,i,j,k 17272343Sngiea([bc]?)c - abc abc b 18272343Sngiea([bc]?)c - ac ac @c 19272343Sngiea([bc]+)c - abc abc b 20272343Sngiea([bc]+)c - abcc abcc bc 21272343Sngiea([bc]+)bc - abcbc abcbc bc 22272343Sngiea(bb+|b)b - abb abb b 23272343Sngiea(bbb+|bb+|b)b - abb abb b 24272343Sngiea(bbb+|bb+|b)b - abbb abbb bb 25272343Sngiea(bbb+|bb+|b)bb - abbb abbb b 26272343Sngie(.*).* - abcdef abcdef abcdef 27272343Sngie(a*)* - bc @b @b 28272343Sngie 29272343Sngie# do we get the right subexpression when it is used more than once? 30272343Sngiea(b|c)*d - ad ad - 31272343Sngiea(b|c)*d - abcd abcd c 32272343Sngiea(b|c)+d - abd abd b 33272343Sngiea(b|c)+d - abcd abcd c 34272343Sngiea(b|c?)+d - ad ad @d 35272343Sngiea(b|c?)+d - abcd abcd @d 36272343Sngiea(b|c){0,0}d - ad ad - 37272343Sngiea(b|c){0,1}d - ad ad - 38272343Sngiea(b|c){0,1}d - abd abd b 39272343Sngiea(b|c){0,2}d - ad ad - 40272343Sngiea(b|c){0,2}d - abcd abcd c 41272343Sngiea(b|c){0,}d - ad ad - 42272343Sngiea(b|c){0,}d - abcd abcd c 43272343Sngiea(b|c){1,1}d - abd abd b 44272343Sngiea(b|c){1,1}d - acd acd c 45272343Sngiea(b|c){1,2}d - abd abd b 46272343Sngiea(b|c){1,2}d - abcd abcd c 47272343Sngiea(b|c){1,}d - abd abd b 48272343Sngiea(b|c){1,}d - abcd abcd c 49272343Sngiea(b|c){2,2}d - acbd acbd b 50272343Sngiea(b|c){2,2}d - abcd abcd c 51272343Sngiea(b|c){2,4}d - abcd abcd c 52272343Sngiea(b|c){2,4}d - abcbd abcbd b 53272343Sngiea(b|c){2,4}d - abcbcd abcbcd c 54272343Sngiea(b|c){2,}d - abcd abcd c 55272343Sngiea(b|c){2,}d - abcbd abcbd b 56272343Sngiea(b+|((c)*))+d - abd abd @d,@d,- 57272343Sngiea(b+|((c)*))+d - abcd abcd @d,@d,- 58