xref: /freebsd/contrib/netbsd-tests/lib/libc/regex/data/bracket.in (revision f39bffc62c1395bde25d152c7f68fdf7cbaab414)
1# brackets, and numerous perversions thereof
2a[b]c		&	abc	abc
3a[ab]c		&	abc	abc
4a[^ab]c		&	adc	adc
5a[]b]c		&	a]c	a]c
6a[[b]c		&	a[c	a[c
7a[-b]c		&	a-c	a-c
8a[^]b]c		&	adc	adc
9a[^-b]c		&	adc	adc
10a[b-]c		&	a-c	a-c
11a[b		&C	EBRACK
12a[]		&C	EBRACK
13a[1-3]c		&	a2c	a2c
14a[3-1]c		&C	ERANGE
15a[1-3-5]c	&C	ERANGE
16a[[.-.]--]c	&	a-c	a-c
17a[1-		&C	ERANGE
18a[[.		&C	EBRACK
19a[[.x		&C	EBRACK
20a[[.x.		&C	EBRACK
21a[[.x.]		&C	EBRACK
22a[[.x.]]	&	ax	ax
23a[[.x,.]]	&C	ECOLLATE
24a[[.one.]]b	&	a1b	a1b
25a[[.notdef.]]b	&C	ECOLLATE
26a[[.].]]b	&	a]b	a]b
27a[[:alpha:]]c	&	abc	abc
28a[[:notdef:]]c	&C	ECTYPE
29a[[:		&C	EBRACK
30a[[:alpha	&C	EBRACK
31a[[:alpha:]	&C	EBRACK
32a[[:alpha,:]	&C	ECTYPE
33a[[:]:]]b	&C	ECTYPE
34a[[:-:]]b	&C	ECTYPE
35a[[:alph:]]	&C	ECTYPE
36a[[:alphabet:]]	&C	ECTYPE
37[[:alnum:]]+	-	-%@a0X-	a0X
38[[:alpha:]]+	-	-%@aX0-	aX
39[[:blank:]]+	-	aSSTb	SST
40[[:cntrl:]]+	-	aNTb	NT
41[[:digit:]]+	-	a019b	019
42[[:graph:]]+	-	Sa%bS	a%b
43[[:lower:]]+	-	AabC	ab
44[[:print:]]+	-	NaSbN	aSb
45[[:punct:]]+	-	S%-&T	%-&
46[[:space:]]+	-	aSNTb	SNT
47[[:upper:]]+	-	aBCd	BC
48[[:xdigit:]]+	-	p0f3Cq	0f3C
49a[[=b=]]c	&	abc	abc
50a[[=		&C	EBRACK
51a[[=b		&C	EBRACK
52a[[=b=		&C	EBRACK
53a[[=b=]		&C	EBRACK
54a[[=b,=]]	&C	ECOLLATE
55a[[=one=]]b	&	a1b	a1b
56