xref: /freebsd/contrib/netbsd-tests/lib/libc/regex/data/repet_bounded.in (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1# the dreaded bounded repetitions
2{		&	{	{
3{abc		&	{abc	{abc
4{1		C	BADRPT
5{1}		C	BADRPT
6a{b		&	a{b	a{b
7a{1}b		-	ab	ab
8a\{1\}b		b	ab	ab
9a{1,}b		-	ab	ab
10a\{1,\}b	b	ab	ab
11a{1,2}b		-	aab	aab
12a\{1,2\}b	b	aab	aab
13a{1		C	EBRACE
14a\{1		bC	EBRACE
15a{1a		C	EBRACE
16a\{1a		bC	EBRACE
17a{1a}		C	BADBR
18a\{1a\}		bC	BADBR
19a{,2}		-	a{,2}	a{,2}
20a\{,2\}		bC	BADBR
21a{,}		-	a{,}	a{,}
22a\{,\}		bC	BADBR
23a{1,x}		C	BADBR
24a\{1,x\}	bC	BADBR
25a{1,x		C	EBRACE
26a\{1,x		bC	EBRACE
27a{300}		C	BADBR
28a\{300\}	bC	BADBR
29a{1,0}		C	BADBR
30a\{1,0\}	bC	BADBR
31ab{0,0}c	-	abcac	ac
32ab\{0,0\}c	b	abcac	ac
33ab{0,1}c	-	abcac	abc
34ab\{0,1\}c	b	abcac	abc
35ab{0,3}c	-	abbcac	abbc
36ab\{0,3\}c	b	abbcac	abbc
37ab{1,1}c	-	acabc	abc
38ab\{1,1\}c	b	acabc	abc
39ab{1,3}c	-	acabc	abc
40ab\{1,3\}c	b	acabc	abc
41ab{2,2}c	-	abcabbc	abbc
42ab\{2,2\}c	b	abcabbc	abbc
43ab{2,4}c	-	abcabbc	abbc
44ab\{2,4\}c	b	abcabbc	abbc
45((a{1,10}){1,10}){1,10}	-	a	a	a,a
46