xref: /freebsd/contrib/netbsd-tests/lib/libc/regex/data/repet_bounded.in (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1# the dreaded bounded repetitions
2# Begin FreeBSD
3{		C	BADRPT
4{		b	{	{
5\{		-	{	{
6\{		bC	BADRPT
7{}		C	BADRPT
8{}		b	{}	{}
9\{\}		-	{}	{}
10\{\}		bC	BADRPT
11}		&	}	}
12\}		&	}	}
13{abc		b	{abc	{abc
14{abc		C	BADRPT
15# End FreeBSD
16{1		C	BADRPT
17{1}		C	BADRPT
18# Begin FreeBSD
19a{b		b	a{b	a{b
20a{b		C	BADRPT
21# End FreeBSD
22a{1}b		-	ab	ab
23a\{1\}b		b	ab	ab
24a{1,}b		-	ab	ab
25a\{1,\}b	b	ab	ab
26a{1,2}b		-	aab	aab
27a\{1,2\}b	b	aab	aab
28a{1		C	EBRACE
29a\{1		bC	EBRACE
30a{1a		C	EBRACE
31a\{1a		bC	EBRACE
32a{1a}		C	BADBR
33a\{1a\}		bC	BADBR
34# Begin FreeBSD
35a{,2}		b	a{,2}	a{,2}
36a{,2}		C	BADBR
37# End FreeBSD
38a\{,2\}		bC	BADBR
39# Begin FreeBSD
40a{,}		b	a{,}	a{,}
41a{,}		C	BADBR
42# End FreeBSD
43a\{,\}		bC	BADBR
44a{1,x}		C	BADBR
45a\{1,x\}	bC	BADBR
46a{1,x		C	EBRACE
47a\{1,x		bC	EBRACE
48a{300}		C	BADBR
49a\{300\}	bC	BADBR
50a{1,0}		C	BADBR
51a\{1,0\}	bC	BADBR
52ab{0,0}c	-	abcac	ac
53ab\{0,0\}c	b	abcac	ac
54ab{0,1}c	-	abcac	abc
55ab\{0,1\}c	b	abcac	abc
56ab{0,3}c	-	abbcac	abbc
57ab\{0,3\}c	b	abbcac	abbc
58ab{1,1}c	-	acabc	abc
59ab\{1,1\}c	b	acabc	abc
60ab{1,3}c	-	acabc	abc
61ab\{1,3\}c	b	acabc	abc
62ab{2,2}c	-	abcabbc	abbc
63ab\{2,2\}c	b	abcabbc	abbc
64ab{2,4}c	-	abcabbc	abbc
65ab\{2,4\}c	b	abcabbc	abbc
66((a{1,10}){1,10}){1,10}	-	a	a	a,a
67