subexp.in revision 1.1
11.1Spgoyette# subexpressions
21.1Spgoyettea(b)(c)d	-	abcd	abcd	b,c
31.1Spgoyettea(((b)))c	-	abc	abc	b,b,b
41.1Spgoyettea(b|(c))d	-	abd	abd	b,-
51.1Spgoyettea(b*|c|e)d	-	abbd	abbd	bb
61.1Spgoyettea(b*|c|e)d	-	acd	acd	c
71.1Spgoyettea(b*|c|e)d	-	ad	ad	@d
81.1Spgoyettea(b?)c		-	abc	abc	b
91.1Spgoyettea(b?)c		-	ac	ac	@c
101.1Spgoyettea(b+)c		-	abc	abc	b
111.1Spgoyettea(b+)c		-	abbbc	abbbc	bbb
121.1Spgoyettea(b*)c		-	ac	ac	@c
131.1Spgoyette(a|ab)(bc([de]+)f|cde)	-	abcdef	abcdef	a,bcdef,de
141.1Spgoyette# the regression tester only asks for 9 subexpressions
151.1Spgoyettea(b)(c)(d)(e)(f)(g)(h)(i)(j)k	-	abcdefghijk	abcdefghijk	b,c,d,e,f,g,h,i,j
161.1Spgoyettea(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l	-	abcdefghijkl	abcdefghijkl	b,c,d,e,f,g,h,i,j,k
171.1Spgoyettea([bc]?)c	-	abc	abc	b
181.1Spgoyettea([bc]?)c	-	ac	ac	@c
191.1Spgoyettea([bc]+)c	-	abc	abc	b
201.1Spgoyettea([bc]+)c	-	abcc	abcc	bc
211.1Spgoyettea([bc]+)bc	-	abcbc	abcbc	bc
221.1Spgoyettea(bb+|b)b	-	abb	abb	b
231.1Spgoyettea(bbb+|bb+|b)b	-	abb	abb	b
241.1Spgoyettea(bbb+|bb+|b)b	-	abbb	abbb	bb
251.1Spgoyettea(bbb+|bb+|b)bb	-	abbb	abbb	b
261.1Spgoyette(.*).*		-	abcdef	abcdef	abcdef
271.1Spgoyette(a*)*		-	bc	@b	@b
281.1Spgoyette
291.1Spgoyette# do we get the right subexpression when it is used more than once?
301.1Spgoyettea(b|c)*d	-	ad	ad	-
311.1Spgoyettea(b|c)*d	-	abcd	abcd	c
321.1Spgoyettea(b|c)+d	-	abd	abd	b
331.1Spgoyettea(b|c)+d	-	abcd	abcd	c
341.1Spgoyettea(b|c?)+d	-	ad	ad	@d
351.1Spgoyettea(b|c?)+d	-	abcd	abcd	@d
361.1Spgoyettea(b|c){0,0}d	-	ad	ad	-
371.1Spgoyettea(b|c){0,1}d	-	ad	ad	-
381.1Spgoyettea(b|c){0,1}d	-	abd	abd	b
391.1Spgoyettea(b|c){0,2}d	-	ad	ad	-
401.1Spgoyettea(b|c){0,2}d	-	abcd	abcd	c
411.1Spgoyettea(b|c){0,}d	-	ad	ad	-
421.1Spgoyettea(b|c){0,}d	-	abcd	abcd	c
431.1Spgoyettea(b|c){1,1}d	-	abd	abd	b
441.1Spgoyettea(b|c){1,1}d	-	acd	acd	c
451.1Spgoyettea(b|c){1,2}d	-	abd	abd	b
461.1Spgoyettea(b|c){1,2}d	-	abcd	abcd	c
471.1Spgoyettea(b|c){1,}d	-	abd	abd	b
481.1Spgoyettea(b|c){1,}d	-	abcd	abcd	c
491.1Spgoyettea(b|c){2,2}d	-	acbd	acbd	b
501.1Spgoyettea(b|c){2,2}d	-	abcd	abcd	c
511.1Spgoyettea(b|c){2,4}d	-	abcd	abcd	c
521.1Spgoyettea(b|c){2,4}d	-	abcbd	abcbd	b
531.1Spgoyettea(b|c){2,4}d	-	abcbcd	abcbcd	c
541.1Spgoyettea(b|c){2,}d	-	abcd	abcd	c
551.1Spgoyettea(b|c){2,}d	-	abcbd	abcbd	b
561.1Spgoyettea(b+|((c)*))+d	-	abd	abd	@d,@d,-
571.1Spgoyettea(b+|((c)*))+d	-	abcd	abcd	@d,@d,-
58