xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/re_tests (revision 0:68f95e015346)
1*0Sstevel@tonic-gateabc	abc	y	$&	abc
2*0Sstevel@tonic-gateabc	abc	y	$-[0]	0
3*0Sstevel@tonic-gateabc	abc	y	$+[0]	3
4*0Sstevel@tonic-gateabc	xbc	n	-	-
5*0Sstevel@tonic-gateabc	axc	n	-	-
6*0Sstevel@tonic-gateabc	abx	n	-	-
7*0Sstevel@tonic-gateabc	xabcy	y	$&	abc
8*0Sstevel@tonic-gateabc	xabcy	y	$-[0]	1
9*0Sstevel@tonic-gateabc	xabcy	y	$+[0]	4
10*0Sstevel@tonic-gateabc	ababc	y	$&	abc
11*0Sstevel@tonic-gateabc	ababc	y	$-[0]	2
12*0Sstevel@tonic-gateabc	ababc	y	$+[0]	5
13*0Sstevel@tonic-gateab*c	abc	y	$&	abc
14*0Sstevel@tonic-gateab*c	abc	y	$-[0]	0
15*0Sstevel@tonic-gateab*c	abc	y	$+[0]	3
16*0Sstevel@tonic-gateab*bc	abc	y	$&	abc
17*0Sstevel@tonic-gateab*bc	abc	y	$-[0]	0
18*0Sstevel@tonic-gateab*bc	abc	y	$+[0]	3
19*0Sstevel@tonic-gateab*bc	abbc	y	$&	abbc
20*0Sstevel@tonic-gateab*bc	abbc	y	$-[0]	0
21*0Sstevel@tonic-gateab*bc	abbc	y	$+[0]	4
22*0Sstevel@tonic-gateab*bc	abbbbc	y	$&	abbbbc
23*0Sstevel@tonic-gateab*bc	abbbbc	y	$-[0]	0
24*0Sstevel@tonic-gateab*bc	abbbbc	y	$+[0]	6
25*0Sstevel@tonic-gate.{1}	abbbbc	y	$&	a
26*0Sstevel@tonic-gate.{1}	abbbbc	y	$-[0]	0
27*0Sstevel@tonic-gate.{1}	abbbbc	y	$+[0]	1
28*0Sstevel@tonic-gate.{3,4}	abbbbc	y	$&	abbb
29*0Sstevel@tonic-gate.{3,4}	abbbbc	y	$-[0]	0
30*0Sstevel@tonic-gate.{3,4}	abbbbc	y	$+[0]	4
31*0Sstevel@tonic-gateab{0,}bc	abbbbc	y	$&	abbbbc
32*0Sstevel@tonic-gateab{0,}bc	abbbbc	y	$-[0]	0
33*0Sstevel@tonic-gateab{0,}bc	abbbbc	y	$+[0]	6
34*0Sstevel@tonic-gateab+bc	abbc	y	$&	abbc
35*0Sstevel@tonic-gateab+bc	abbc	y	$-[0]	0
36*0Sstevel@tonic-gateab+bc	abbc	y	$+[0]	4
37*0Sstevel@tonic-gateab+bc	abc	n	-	-
38*0Sstevel@tonic-gateab+bc	abq	n	-	-
39*0Sstevel@tonic-gateab{1,}bc	abq	n	-	-
40*0Sstevel@tonic-gateab+bc	abbbbc	y	$&	abbbbc
41*0Sstevel@tonic-gateab+bc	abbbbc	y	$-[0]	0
42*0Sstevel@tonic-gateab+bc	abbbbc	y	$+[0]	6
43*0Sstevel@tonic-gateab{1,}bc	abbbbc	y	$&	abbbbc
44*0Sstevel@tonic-gateab{1,}bc	abbbbc	y	$-[0]	0
45*0Sstevel@tonic-gateab{1,}bc	abbbbc	y	$+[0]	6
46*0Sstevel@tonic-gateab{1,3}bc	abbbbc	y	$&	abbbbc
47*0Sstevel@tonic-gateab{1,3}bc	abbbbc	y	$-[0]	0
48*0Sstevel@tonic-gateab{1,3}bc	abbbbc	y	$+[0]	6
49*0Sstevel@tonic-gateab{3,4}bc	abbbbc	y	$&	abbbbc
50*0Sstevel@tonic-gateab{3,4}bc	abbbbc	y	$-[0]	0
51*0Sstevel@tonic-gateab{3,4}bc	abbbbc	y	$+[0]	6
52*0Sstevel@tonic-gateab{4,5}bc	abbbbc	n	-	-
53*0Sstevel@tonic-gateab?bc	abbc	y	$&	abbc
54*0Sstevel@tonic-gateab?bc	abc	y	$&	abc
55*0Sstevel@tonic-gateab{0,1}bc	abc	y	$&	abc
56*0Sstevel@tonic-gateab?bc	abbbbc	n	-	-
57*0Sstevel@tonic-gateab?c	abc	y	$&	abc
58*0Sstevel@tonic-gateab{0,1}c	abc	y	$&	abc
59*0Sstevel@tonic-gate^abc$	abc	y	$&	abc
60*0Sstevel@tonic-gate^abc$	abcc	n	-	-
61*0Sstevel@tonic-gate^abc	abcc	y	$&	abc
62*0Sstevel@tonic-gate^abc$	aabc	n	-	-
63*0Sstevel@tonic-gateabc$	aabc	y	$&	abc
64*0Sstevel@tonic-gateabc$	aabcd	n	-	-
65*0Sstevel@tonic-gate^	abc	y	$&
66*0Sstevel@tonic-gate$	abc	y	$&
67*0Sstevel@tonic-gatea.c	abc	y	$&	abc
68*0Sstevel@tonic-gatea.c	axc	y	$&	axc
69*0Sstevel@tonic-gatea.*c	axyzc	y	$&	axyzc
70*0Sstevel@tonic-gatea.*c	axyzd	n	-	-
71*0Sstevel@tonic-gatea[bc]d	abc	n	-	-
72*0Sstevel@tonic-gatea[bc]d	abd	y	$&	abd
73*0Sstevel@tonic-gatea[b-d]e	abd	n	-	-
74*0Sstevel@tonic-gatea[b-d]e	ace	y	$&	ace
75*0Sstevel@tonic-gatea[b-d]	aac	y	$&	ac
76*0Sstevel@tonic-gatea[-b]	a-	y	$&	a-
77*0Sstevel@tonic-gatea[b-]	a-	y	$&	a-
78*0Sstevel@tonic-gatea[b-a]	-	c	-	Invalid [] range "b-a"
79*0Sstevel@tonic-gatea[]b	-	c	-	Unmatched [
80*0Sstevel@tonic-gatea[	-	c	-	Unmatched [
81*0Sstevel@tonic-gatea]	a]	y	$&	a]
82*0Sstevel@tonic-gatea[]]b	a]b	y	$&	a]b
83*0Sstevel@tonic-gatea[^bc]d	aed	y	$&	aed
84*0Sstevel@tonic-gatea[^bc]d	abd	n	-	-
85*0Sstevel@tonic-gatea[^-b]c	adc	y	$&	adc
86*0Sstevel@tonic-gatea[^-b]c	a-c	n	-	-
87*0Sstevel@tonic-gatea[^]b]c	a]c	n	-	-
88*0Sstevel@tonic-gatea[^]b]c	adc	y	$&	adc
89*0Sstevel@tonic-gate\ba\b	a-	y	-	-
90*0Sstevel@tonic-gate\ba\b	-a	y	-	-
91*0Sstevel@tonic-gate\ba\b	-a-	y	-	-
92*0Sstevel@tonic-gate\by\b	xy	n	-	-
93*0Sstevel@tonic-gate\by\b	yz	n	-	-
94*0Sstevel@tonic-gate\by\b	xyz	n	-	-
95*0Sstevel@tonic-gate\Ba\B	a-	n	-	-
96*0Sstevel@tonic-gate\Ba\B	-a	n	-	-
97*0Sstevel@tonic-gate\Ba\B	-a-	n	-	-
98*0Sstevel@tonic-gate\By\b	xy	y	-	-
99*0Sstevel@tonic-gate\By\b	xy	y	$-[0]	1
100*0Sstevel@tonic-gate\By\b	xy	y	$+[0]	2
101*0Sstevel@tonic-gate\By\b	xy	y	-	-
102*0Sstevel@tonic-gate\by\B	yz	y	-	-
103*0Sstevel@tonic-gate\By\B	xyz	y	-	-
104*0Sstevel@tonic-gate\w	a	y	-	-
105*0Sstevel@tonic-gate\w	-	n	-	-
106*0Sstevel@tonic-gate\W	a	n	-	-
107*0Sstevel@tonic-gate\W	-	y	-	-
108*0Sstevel@tonic-gatea\sb	a b	y	-	-
109*0Sstevel@tonic-gatea\sb	a-b	n	-	-
110*0Sstevel@tonic-gatea\Sb	a b	n	-	-
111*0Sstevel@tonic-gatea\Sb	a-b	y	-	-
112*0Sstevel@tonic-gate\d	1	y	-	-
113*0Sstevel@tonic-gate\d	-	n	-	-
114*0Sstevel@tonic-gate\D	1	n	-	-
115*0Sstevel@tonic-gate\D	-	y	-	-
116*0Sstevel@tonic-gate[\w]	a	y	-	-
117*0Sstevel@tonic-gate[\w]	-	n	-	-
118*0Sstevel@tonic-gate[\W]	a	n	-	-
119*0Sstevel@tonic-gate[\W]	-	y	-	-
120*0Sstevel@tonic-gatea[\s]b	a b	y	-	-
121*0Sstevel@tonic-gatea[\s]b	a-b	n	-	-
122*0Sstevel@tonic-gatea[\S]b	a b	n	-	-
123*0Sstevel@tonic-gatea[\S]b	a-b	y	-	-
124*0Sstevel@tonic-gate[\d]	1	y	-	-
125*0Sstevel@tonic-gate[\d]	-	n	-	-
126*0Sstevel@tonic-gate[\D]	1	n	-	-
127*0Sstevel@tonic-gate[\D]	-	y	-	-
128*0Sstevel@tonic-gateab|cd	abc	y	$&	ab
129*0Sstevel@tonic-gateab|cd	abcd	y	$&	ab
130*0Sstevel@tonic-gate()ef	def	y	$&-$1	ef-
131*0Sstevel@tonic-gate()ef	def	y	$-[0]	1
132*0Sstevel@tonic-gate()ef	def	y	$+[0]	3
133*0Sstevel@tonic-gate()ef	def	y	$-[1]	1
134*0Sstevel@tonic-gate()ef	def	y	$+[1]	1
135*0Sstevel@tonic-gate*a	-	c	-	Quantifier follows nothing
136*0Sstevel@tonic-gate(*)b	-	c	-	Quantifier follows nothing
137*0Sstevel@tonic-gate$b	b	n	-	-
138*0Sstevel@tonic-gatea\	-	c	-	Search pattern not terminated
139*0Sstevel@tonic-gatea\(b	a(b	y	$&-$1	a(b-
140*0Sstevel@tonic-gatea\(*b	ab	y	$&	ab
141*0Sstevel@tonic-gatea\(*b	a((b	y	$&	a((b
142*0Sstevel@tonic-gatea\\b	a\b	y	$&	a\b
143*0Sstevel@tonic-gateabc)	-	c	-	Unmatched )
144*0Sstevel@tonic-gate(abc	-	c	-	Unmatched (
145*0Sstevel@tonic-gate((a))	abc	y	$&-$1-$2	a-a-a
146*0Sstevel@tonic-gate((a))	abc	y	$-[0]-$-[1]-$-[2]	0-0-0
147*0Sstevel@tonic-gate((a))	abc	y	$+[0]-$+[1]-$+[2]	1-1-1
148*0Sstevel@tonic-gate((a))	abc	b	@-	0 0 0
149*0Sstevel@tonic-gate((a))	abc	b	@+	1 1 1
150*0Sstevel@tonic-gate(a)b(c)	abc	y	$&-$1-$2	abc-a-c
151*0Sstevel@tonic-gate(a)b(c)	abc	y	$-[0]-$-[1]-$-[2]	0-0-2
152*0Sstevel@tonic-gate(a)b(c)	abc	y	$+[0]-$+[1]-$+[2]	3-1-3
153*0Sstevel@tonic-gatea+b+c	aabbabc	y	$&	abc
154*0Sstevel@tonic-gatea{1,}b{1,}c	aabbabc	y	$&	abc
155*0Sstevel@tonic-gatea**	-	c	-	Nested quantifiers
156*0Sstevel@tonic-gatea.+?c	abcabc	y	$&	abc
157*0Sstevel@tonic-gate(a+|b)*	ab	y	$&-$1	ab-b
158*0Sstevel@tonic-gate(a+|b)*	ab	y	$-[0]	0
159*0Sstevel@tonic-gate(a+|b)*	ab	y	$+[0]	2
160*0Sstevel@tonic-gate(a+|b)*	ab	y	$-[1]	1
161*0Sstevel@tonic-gate(a+|b)*	ab	y	$+[1]	2
162*0Sstevel@tonic-gate(a+|b){0,}	ab	y	$&-$1	ab-b
163*0Sstevel@tonic-gate(a+|b)+	ab	y	$&-$1	ab-b
164*0Sstevel@tonic-gate(a+|b){1,}	ab	y	$&-$1	ab-b
165*0Sstevel@tonic-gate(a+|b)?	ab	y	$&-$1	a-a
166*0Sstevel@tonic-gate(a+|b){0,1}	ab	y	$&-$1	a-a
167*0Sstevel@tonic-gate)(	-	c	-	Unmatched )
168*0Sstevel@tonic-gate[^ab]*	cde	y	$&	cde
169*0Sstevel@tonic-gateabc		n	-	-
170*0Sstevel@tonic-gatea*		y	$&
171*0Sstevel@tonic-gate([abc])*d	abbbcd	y	$&-$1	abbbcd-c
172*0Sstevel@tonic-gate([abc])*bcd	abcd	y	$&-$1	abcd-a
173*0Sstevel@tonic-gatea|b|c|d|e	e	y	$&	e
174*0Sstevel@tonic-gate(a|b|c|d|e)f	ef	y	$&-$1	ef-e
175*0Sstevel@tonic-gate(a|b|c|d|e)f	ef	y	$-[0]	0
176*0Sstevel@tonic-gate(a|b|c|d|e)f	ef	y	$+[0]	2
177*0Sstevel@tonic-gate(a|b|c|d|e)f	ef	y	$-[1]	0
178*0Sstevel@tonic-gate(a|b|c|d|e)f	ef	y	$+[1]	1
179*0Sstevel@tonic-gateabcd*efg	abcdefg	y	$&	abcdefg
180*0Sstevel@tonic-gateab*	xabyabbbz	y	$&	ab
181*0Sstevel@tonic-gateab*	xayabbbz	y	$&	a
182*0Sstevel@tonic-gate(ab|cd)e	abcde	y	$&-$1	cde-cd
183*0Sstevel@tonic-gate[abhgefdc]ij	hij	y	$&	hij
184*0Sstevel@tonic-gate^(ab|cd)e	abcde	n	x$1y	xy
185*0Sstevel@tonic-gate(abc|)ef	abcdef	y	$&-$1	ef-
186*0Sstevel@tonic-gate(a|b)c*d	abcd	y	$&-$1	bcd-b
187*0Sstevel@tonic-gate(ab|ab*)bc	abc	y	$&-$1	abc-a
188*0Sstevel@tonic-gatea([bc]*)c*	abc	y	$&-$1	abc-bc
189*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$&-$1-$2	abcd-bc-d
190*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$-[0]	0
191*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$+[0]	4
192*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$-[1]	1
193*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$+[1]	3
194*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$-[2]	3
195*0Sstevel@tonic-gatea([bc]*)(c*d)	abcd	y	$+[2]	4
196*0Sstevel@tonic-gatea([bc]+)(c*d)	abcd	y	$&-$1-$2	abcd-bc-d
197*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$&-$1-$2	abcd-b-cd
198*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$-[0]	0
199*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$+[0]	4
200*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$-[1]	1
201*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$+[1]	2
202*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$-[2]	2
203*0Sstevel@tonic-gatea([bc]*)(c+d)	abcd	y	$+[2]	4
204*0Sstevel@tonic-gatea[bcd]*dcdcde	adcdcde	y	$&	adcdcde
205*0Sstevel@tonic-gatea[bcd]+dcdcde	adcdcde	n	-	-
206*0Sstevel@tonic-gate(ab|a)b*c	abc	y	$&-$1	abc-ab
207*0Sstevel@tonic-gate(ab|a)b*c	abc	y	$-[0]	0
208*0Sstevel@tonic-gate(ab|a)b*c	abc	y	$+[0]	3
209*0Sstevel@tonic-gate(ab|a)b*c	abc	y	$-[1]	0
210*0Sstevel@tonic-gate(ab|a)b*c	abc	y	$+[1]	2
211*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$1-$2-$3-$4	abc-a-b-d
212*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$-[0]	0
213*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$+[0]	4
214*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$-[1]	0
215*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$+[1]	3
216*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$-[2]	0
217*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$+[2]	1
218*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$-[3]	1
219*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$+[3]	2
220*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$-[4]	3
221*0Sstevel@tonic-gate((a)(b)c)(d)	abcd	y	$+[4]	4
222*0Sstevel@tonic-gate[a-zA-Z_][a-zA-Z0-9_]*	alpha	y	$&	alpha
223*0Sstevel@tonic-gate^a(bc+|b[eh])g|.h$	abh	y	$&-$1	bh-
224*0Sstevel@tonic-gate(bc+d$|ef*g.|h?i(j|k))	effgz	y	$&-$1-$2	effgz-effgz-
225*0Sstevel@tonic-gate(bc+d$|ef*g.|h?i(j|k))	ij	y	$&-$1-$2	ij-ij-j
226*0Sstevel@tonic-gate(bc+d$|ef*g.|h?i(j|k))	effg	n	-	-
227*0Sstevel@tonic-gate(bc+d$|ef*g.|h?i(j|k))	bcdd	n	-	-
228*0Sstevel@tonic-gate(bc+d$|ef*g.|h?i(j|k))	reffgz	y	$&-$1-$2	effgz-effgz-
229*0Sstevel@tonic-gate((((((((((a))))))))))	a	y	$10	a
230*0Sstevel@tonic-gate((((((((((a))))))))))	a	y	$-[0]	0
231*0Sstevel@tonic-gate((((((((((a))))))))))	a	y	$+[0]	1
232*0Sstevel@tonic-gate((((((((((a))))))))))	a	y	$-[10]	0
233*0Sstevel@tonic-gate((((((((((a))))))))))	a	y	$+[10]	1
234*0Sstevel@tonic-gate((((((((((a))))))))))\10	aa	y	$&	aa
235*0Sstevel@tonic-gate((((((((((a))))))))))${bang}	aa	n	-	-
236*0Sstevel@tonic-gate((((((((((a))))))))))${bang}	a!	y	$&	a!
237*0Sstevel@tonic-gate(((((((((a)))))))))	a	y	$&	a
238*0Sstevel@tonic-gatemultiple words of text	uh-uh	n	-	-
239*0Sstevel@tonic-gatemultiple words	multiple words, yeah	y	$&	multiple words
240*0Sstevel@tonic-gate(.*)c(.*)	abcde	y	$&-$1-$2	abcde-ab-de
241*0Sstevel@tonic-gate\((.*), (.*)\)	(a, b)	y	($2, $1)	(b, a)
242*0Sstevel@tonic-gate[k]	ab	n	-	-
243*0Sstevel@tonic-gateabcd	abcd	y	$&-\$&-\\$&	abcd-$&-\abcd
244*0Sstevel@tonic-gatea(bc)d	abcd	y	$1-\$1-\\$1	bc-$1-\bc
245*0Sstevel@tonic-gatea[-]?c	ac	y	$&	ac
246*0Sstevel@tonic-gate(abc)\1	abcabc	y	$1	abc
247*0Sstevel@tonic-gate([a-c]*)\1	abcabc	y	$1	abc
248*0Sstevel@tonic-gate\1	-	c	-	Reference to nonexistent group
249*0Sstevel@tonic-gate\2	-	c	-	Reference to nonexistent group
250*0Sstevel@tonic-gate(a)|\1	a	y	-	-
251*0Sstevel@tonic-gate(a)|\1	x	n	-	-
252*0Sstevel@tonic-gate(a)|\2	-	c	-	Reference to nonexistent group
253*0Sstevel@tonic-gate(([a-c])b*?\2)*	ababbbcbc	y	$&-$1-$2	ababb-bb-b
254*0Sstevel@tonic-gate(([a-c])b*?\2){3}	ababbbcbc	y	$&-$1-$2	ababbbcbc-cbc-c
255*0Sstevel@tonic-gate((\3|b)\2(a)x)+	aaxabxbaxbbx	n	-	-
256*0Sstevel@tonic-gate((\3|b)\2(a)x)+	aaaxabaxbaaxbbax	y	$&-$1-$2-$3	bbax-bbax-b-a
257*0Sstevel@tonic-gate((\3|b)\2(a)){2,}	bbaababbabaaaaabbaaaabba	y	$&-$1-$2-$3	bbaaaabba-bba-b-a
258*0Sstevel@tonic-gate(a)|(b)	b	y	$-[0]	0
259*0Sstevel@tonic-gate(a)|(b)	b	y	$+[0]	1
260*0Sstevel@tonic-gate(a)|(b)	b	y	x$-[1]	x
261*0Sstevel@tonic-gate(a)|(b)	b	y	x$+[1]	x
262*0Sstevel@tonic-gate(a)|(b)	b	y	$-[2]	0
263*0Sstevel@tonic-gate(a)|(b)	b	y	$+[2]	1
264*0Sstevel@tonic-gate'abc'i	ABC	y	$&	ABC
265*0Sstevel@tonic-gate'abc'i	XBC	n	-	-
266*0Sstevel@tonic-gate'abc'i	AXC	n	-	-
267*0Sstevel@tonic-gate'abc'i	ABX	n	-	-
268*0Sstevel@tonic-gate'abc'i	XABCY	y	$&	ABC
269*0Sstevel@tonic-gate'abc'i	ABABC	y	$&	ABC
270*0Sstevel@tonic-gate'ab*c'i	ABC	y	$&	ABC
271*0Sstevel@tonic-gate'ab*bc'i	ABC	y	$&	ABC
272*0Sstevel@tonic-gate'ab*bc'i	ABBC	y	$&	ABBC
273*0Sstevel@tonic-gate'ab*?bc'i	ABBBBC	y	$&	ABBBBC
274*0Sstevel@tonic-gate'ab{0,}?bc'i	ABBBBC	y	$&	ABBBBC
275*0Sstevel@tonic-gate'ab+?bc'i	ABBC	y	$&	ABBC
276*0Sstevel@tonic-gate'ab+bc'i	ABC	n	-	-
277*0Sstevel@tonic-gate'ab+bc'i	ABQ	n	-	-
278*0Sstevel@tonic-gate'ab{1,}bc'i	ABQ	n	-	-
279*0Sstevel@tonic-gate'ab+bc'i	ABBBBC	y	$&	ABBBBC
280*0Sstevel@tonic-gate'ab{1,}?bc'i	ABBBBC	y	$&	ABBBBC
281*0Sstevel@tonic-gate'ab{1,3}?bc'i	ABBBBC	y	$&	ABBBBC
282*0Sstevel@tonic-gate'ab{3,4}?bc'i	ABBBBC	y	$&	ABBBBC
283*0Sstevel@tonic-gate'ab{4,5}?bc'i	ABBBBC	n	-	-
284*0Sstevel@tonic-gate'ab??bc'i	ABBC	y	$&	ABBC
285*0Sstevel@tonic-gate'ab??bc'i	ABC	y	$&	ABC
286*0Sstevel@tonic-gate'ab{0,1}?bc'i	ABC	y	$&	ABC
287*0Sstevel@tonic-gate'ab??bc'i	ABBBBC	n	-	-
288*0Sstevel@tonic-gate'ab??c'i	ABC	y	$&	ABC
289*0Sstevel@tonic-gate'ab{0,1}?c'i	ABC	y	$&	ABC
290*0Sstevel@tonic-gate'^abc$'i	ABC	y	$&	ABC
291*0Sstevel@tonic-gate'^abc$'i	ABCC	n	-	-
292*0Sstevel@tonic-gate'^abc'i	ABCC	y	$&	ABC
293*0Sstevel@tonic-gate'^abc$'i	AABC	n	-	-
294*0Sstevel@tonic-gate'abc$'i	AABC	y	$&	ABC
295*0Sstevel@tonic-gate'^'i	ABC	y	$&
296*0Sstevel@tonic-gate'$'i	ABC	y	$&
297*0Sstevel@tonic-gate'a.c'i	ABC	y	$&	ABC
298*0Sstevel@tonic-gate'a.c'i	AXC	y	$&	AXC
299*0Sstevel@tonic-gate'a.*?c'i	AXYZC	y	$&	AXYZC
300*0Sstevel@tonic-gate'a.*c'i	AXYZD	n	-	-
301*0Sstevel@tonic-gate'a[bc]d'i	ABC	n	-	-
302*0Sstevel@tonic-gate'a[bc]d'i	ABD	y	$&	ABD
303*0Sstevel@tonic-gate'a[b-d]e'i	ABD	n	-	-
304*0Sstevel@tonic-gate'a[b-d]e'i	ACE	y	$&	ACE
305*0Sstevel@tonic-gate'a[b-d]'i	AAC	y	$&	AC
306*0Sstevel@tonic-gate'a[-b]'i	A-	y	$&	A-
307*0Sstevel@tonic-gate'a[b-]'i	A-	y	$&	A-
308*0Sstevel@tonic-gate'a[b-a]'i	-	c	-	Invalid [] range "b-a"
309*0Sstevel@tonic-gate'a[]b'i	-	c	-	Unmatched [
310*0Sstevel@tonic-gate'a['i	-	c	-	Unmatched [
311*0Sstevel@tonic-gate'a]'i	A]	y	$&	A]
312*0Sstevel@tonic-gate'a[]]b'i	A]B	y	$&	A]B
313*0Sstevel@tonic-gate'a[^bc]d'i	AED	y	$&	AED
314*0Sstevel@tonic-gate'a[^bc]d'i	ABD	n	-	-
315*0Sstevel@tonic-gate'a[^-b]c'i	ADC	y	$&	ADC
316*0Sstevel@tonic-gate'a[^-b]c'i	A-C	n	-	-
317*0Sstevel@tonic-gate'a[^]b]c'i	A]C	n	-	-
318*0Sstevel@tonic-gate'a[^]b]c'i	ADC	y	$&	ADC
319*0Sstevel@tonic-gate'ab|cd'i	ABC	y	$&	AB
320*0Sstevel@tonic-gate'ab|cd'i	ABCD	y	$&	AB
321*0Sstevel@tonic-gate'()ef'i	DEF	y	$&-$1	EF-
322*0Sstevel@tonic-gate'*a'i	-	c	-	Quantifier follows nothing
323*0Sstevel@tonic-gate'(*)b'i	-	c	-	Quantifier follows nothing
324*0Sstevel@tonic-gate'$b'i	B	n	-	-
325*0Sstevel@tonic-gate'a\'i	-	c	-	Search pattern not terminated
326*0Sstevel@tonic-gate'a\(b'i	A(B	y	$&-$1	A(B-
327*0Sstevel@tonic-gate'a\(*b'i	AB	y	$&	AB
328*0Sstevel@tonic-gate'a\(*b'i	A((B	y	$&	A((B
329*0Sstevel@tonic-gate'a\\b'i	A\B	y	$&	A\B
330*0Sstevel@tonic-gate'abc)'i	-	c	-	Unmatched )
331*0Sstevel@tonic-gate'(abc'i	-	c	-	Unmatched (
332*0Sstevel@tonic-gate'((a))'i	ABC	y	$&-$1-$2	A-A-A
333*0Sstevel@tonic-gate'(a)b(c)'i	ABC	y	$&-$1-$2	ABC-A-C
334*0Sstevel@tonic-gate'a+b+c'i	AABBABC	y	$&	ABC
335*0Sstevel@tonic-gate'a{1,}b{1,}c'i	AABBABC	y	$&	ABC
336*0Sstevel@tonic-gate'a**'i	-	c	-	Nested quantifiers
337*0Sstevel@tonic-gate'a.+?c'i	ABCABC	y	$&	ABC
338*0Sstevel@tonic-gate'a.*?c'i	ABCABC	y	$&	ABC
339*0Sstevel@tonic-gate'a.{0,5}?c'i	ABCABC	y	$&	ABC
340*0Sstevel@tonic-gate'(a+|b)*'i	AB	y	$&-$1	AB-B
341*0Sstevel@tonic-gate'(a+|b){0,}'i	AB	y	$&-$1	AB-B
342*0Sstevel@tonic-gate'(a+|b)+'i	AB	y	$&-$1	AB-B
343*0Sstevel@tonic-gate'(a+|b){1,}'i	AB	y	$&-$1	AB-B
344*0Sstevel@tonic-gate'(a+|b)?'i	AB	y	$&-$1	A-A
345*0Sstevel@tonic-gate'(a+|b){0,1}'i	AB	y	$&-$1	A-A
346*0Sstevel@tonic-gate'(a+|b){0,1}?'i	AB	y	$&-$1	-
347*0Sstevel@tonic-gate')('i	-	c	-	Unmatched )
348*0Sstevel@tonic-gate'[^ab]*'i	CDE	y	$&	CDE
349*0Sstevel@tonic-gate'abc'i		n	-	-
350*0Sstevel@tonic-gate'a*'i		y	$&
351*0Sstevel@tonic-gate'([abc])*d'i	ABBBCD	y	$&-$1	ABBBCD-C
352*0Sstevel@tonic-gate'([abc])*bcd'i	ABCD	y	$&-$1	ABCD-A
353*0Sstevel@tonic-gate'a|b|c|d|e'i	E	y	$&	E
354*0Sstevel@tonic-gate'(a|b|c|d|e)f'i	EF	y	$&-$1	EF-E
355*0Sstevel@tonic-gate'abcd*efg'i	ABCDEFG	y	$&	ABCDEFG
356*0Sstevel@tonic-gate'ab*'i	XABYABBBZ	y	$&	AB
357*0Sstevel@tonic-gate'ab*'i	XAYABBBZ	y	$&	A
358*0Sstevel@tonic-gate'(ab|cd)e'i	ABCDE	y	$&-$1	CDE-CD
359*0Sstevel@tonic-gate'[abhgefdc]ij'i	HIJ	y	$&	HIJ
360*0Sstevel@tonic-gate'^(ab|cd)e'i	ABCDE	n	x$1y	XY
361*0Sstevel@tonic-gate'(abc|)ef'i	ABCDEF	y	$&-$1	EF-
362*0Sstevel@tonic-gate'(a|b)c*d'i	ABCD	y	$&-$1	BCD-B
363*0Sstevel@tonic-gate'(ab|ab*)bc'i	ABC	y	$&-$1	ABC-A
364*0Sstevel@tonic-gate'a([bc]*)c*'i	ABC	y	$&-$1	ABC-BC
365*0Sstevel@tonic-gate'a([bc]*)(c*d)'i	ABCD	y	$&-$1-$2	ABCD-BC-D
366*0Sstevel@tonic-gate'a([bc]+)(c*d)'i	ABCD	y	$&-$1-$2	ABCD-BC-D
367*0Sstevel@tonic-gate'a([bc]*)(c+d)'i	ABCD	y	$&-$1-$2	ABCD-B-CD
368*0Sstevel@tonic-gate'a[bcd]*dcdcde'i	ADCDCDE	y	$&	ADCDCDE
369*0Sstevel@tonic-gate'a[bcd]+dcdcde'i	ADCDCDE	n	-	-
370*0Sstevel@tonic-gate'(ab|a)b*c'i	ABC	y	$&-$1	ABC-AB
371*0Sstevel@tonic-gate'((a)(b)c)(d)'i	ABCD	y	$1-$2-$3-$4	ABC-A-B-D
372*0Sstevel@tonic-gate'[a-zA-Z_][a-zA-Z0-9_]*'i	ALPHA	y	$&	ALPHA
373*0Sstevel@tonic-gate'^a(bc+|b[eh])g|.h$'i	ABH	y	$&-$1	BH-
374*0Sstevel@tonic-gate'(bc+d$|ef*g.|h?i(j|k))'i	EFFGZ	y	$&-$1-$2	EFFGZ-EFFGZ-
375*0Sstevel@tonic-gate'(bc+d$|ef*g.|h?i(j|k))'i	IJ	y	$&-$1-$2	IJ-IJ-J
376*0Sstevel@tonic-gate'(bc+d$|ef*g.|h?i(j|k))'i	EFFG	n	-	-
377*0Sstevel@tonic-gate'(bc+d$|ef*g.|h?i(j|k))'i	BCDD	n	-	-
378*0Sstevel@tonic-gate'(bc+d$|ef*g.|h?i(j|k))'i	REFFGZ	y	$&-$1-$2	EFFGZ-EFFGZ-
379*0Sstevel@tonic-gate'((((((((((a))))))))))'i	A	y	$10	A
380*0Sstevel@tonic-gate'((((((((((a))))))))))\10'i	AA	y	$&	AA
381*0Sstevel@tonic-gate'((((((((((a))))))))))${bang}'i	AA	n	-	-
382*0Sstevel@tonic-gate'((((((((((a))))))))))${bang}'i	A!	y	$&	A!
383*0Sstevel@tonic-gate'(((((((((a)))))))))'i	A	y	$&	A
384*0Sstevel@tonic-gate'(?:(?:(?:(?:(?:(?:(?:(?:(?:(a))))))))))'i	A	y	$1	A
385*0Sstevel@tonic-gate'(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))'i	C	y	$1	C
386*0Sstevel@tonic-gate'multiple words of text'i	UH-UH	n	-	-
387*0Sstevel@tonic-gate'multiple words'i	MULTIPLE WORDS, YEAH	y	$&	MULTIPLE WORDS
388*0Sstevel@tonic-gate'(.*)c(.*)'i	ABCDE	y	$&-$1-$2	ABCDE-AB-DE
389*0Sstevel@tonic-gate'\((.*), (.*)\)'i	(A, B)	y	($2, $1)	(B, A)
390*0Sstevel@tonic-gate'[k]'i	AB	n	-	-
391*0Sstevel@tonic-gate'abcd'i	ABCD	y	$&-\$&-\\$&	ABCD-$&-\ABCD
392*0Sstevel@tonic-gate'a(bc)d'i	ABCD	y	$1-\$1-\\$1	BC-$1-\BC
393*0Sstevel@tonic-gate'a[-]?c'i	AC	y	$&	AC
394*0Sstevel@tonic-gate'(abc)\1'i	ABCABC	y	$1	ABC
395*0Sstevel@tonic-gate'([a-c]*)\1'i	ABCABC	y	$1	ABC
396*0Sstevel@tonic-gatea(?!b).	abad	y	$&	ad
397*0Sstevel@tonic-gatea(?=d).	abad	y	$&	ad
398*0Sstevel@tonic-gatea(?=c|d).	abad	y	$&	ad
399*0Sstevel@tonic-gatea(?:b|c|d)(.)	ace	y	$1	e
400*0Sstevel@tonic-gatea(?:b|c|d)*(.)	ace	y	$1	e
401*0Sstevel@tonic-gatea(?:b|c|d)+?(.)	ace	y	$1	e
402*0Sstevel@tonic-gatea(?:b|c|d)+?(.)	acdbcdbe	y	$1	d
403*0Sstevel@tonic-gatea(?:b|c|d)+(.)	acdbcdbe	y	$1	e
404*0Sstevel@tonic-gatea(?:b|c|d){2}(.)	acdbcdbe	y	$1	b
405*0Sstevel@tonic-gatea(?:b|c|d){4,5}(.)	acdbcdbe	y	$1	b
406*0Sstevel@tonic-gatea(?:b|c|d){4,5}?(.)	acdbcdbe	y	$1	d
407*0Sstevel@tonic-gate((foo)|(bar))*	foobar	y	$1-$2-$3	bar-foo-bar
408*0Sstevel@tonic-gate:(?:	-	c	-	Sequence (? incomplete
409*0Sstevel@tonic-gatea(?:b|c|d){6,7}(.)	acdbcdbe	y	$1	e
410*0Sstevel@tonic-gatea(?:b|c|d){6,7}?(.)	acdbcdbe	y	$1	e
411*0Sstevel@tonic-gatea(?:b|c|d){5,6}(.)	acdbcdbe	y	$1	e
412*0Sstevel@tonic-gatea(?:b|c|d){5,6}?(.)	acdbcdbe	y	$1	b
413*0Sstevel@tonic-gatea(?:b|c|d){5,7}(.)	acdbcdbe	y	$1	e
414*0Sstevel@tonic-gatea(?:b|c|d){5,7}?(.)	acdbcdbe	y	$1	b
415*0Sstevel@tonic-gatea(?:b|(c|e){1,2}?|d)+?(.)	ace	y	$1$2	ce
416*0Sstevel@tonic-gate^(.+)?B	AB	y	$1	A
417*0Sstevel@tonic-gate^([^a-z])|(\^)$	.	y	$1	.
418*0Sstevel@tonic-gate^[<>]&	<&OUT	y	$&	<&
419*0Sstevel@tonic-gate^(a\1?){4}$	aaaaaaaaaa	y	$1	aaaa
420*0Sstevel@tonic-gate^(a\1?){4}$	aaaaaaaaa	n	-	-
421*0Sstevel@tonic-gate^(a\1?){4}$	aaaaaaaaaaa	n	-	-
422*0Sstevel@tonic-gate^(a(?(1)\1)){4}$	aaaaaaaaaa	y	$1	aaaa
423*0Sstevel@tonic-gate^(a(?(1)\1)){4}$	aaaaaaaaa	n	-	-
424*0Sstevel@tonic-gate^(a(?(1)\1)){4}$	aaaaaaaaaaa	n	-	-
425*0Sstevel@tonic-gate((a{4})+)	aaaaaaaaa	y	$1	aaaaaaaa
426*0Sstevel@tonic-gate(((aa){2})+)	aaaaaaaaaa	y	$1	aaaaaaaa
427*0Sstevel@tonic-gate(((a{2}){2})+)	aaaaaaaaaa	y	$1	aaaaaaaa
428*0Sstevel@tonic-gate(?:(f)(o)(o)|(b)(a)(r))*	foobar	y	$1:$2:$3:$4:$5:$6	f:o:o:b:a:r
429*0Sstevel@tonic-gate(?<=a)b	ab	y	$&	b
430*0Sstevel@tonic-gate(?<=a)b	cb	n	-	-
431*0Sstevel@tonic-gate(?<=a)b	b	n	-	-
432*0Sstevel@tonic-gate(?<!c)b	ab	y	$&	b
433*0Sstevel@tonic-gate(?<!c)b	cb	n	-	-
434*0Sstevel@tonic-gate(?<!c)b	b	y	-	-
435*0Sstevel@tonic-gate(?<!c)b	b	y	$&	b
436*0Sstevel@tonic-gate(?<%)b	-	c	-	Sequence (?<%...) not recognized
437*0Sstevel@tonic-gate(?:..)*a	aba	y	$&	aba
438*0Sstevel@tonic-gate(?:..)*?a	aba	y	$&	a
439*0Sstevel@tonic-gate^(?:b|a(?=(.)))*\1	abc	y	$&	ab
440*0Sstevel@tonic-gate^(){3,5}	abc	y	a$1	a
441*0Sstevel@tonic-gate^(a+)*ax	aax	y	$1	a
442*0Sstevel@tonic-gate^((a|b)+)*ax	aax	y	$1	a
443*0Sstevel@tonic-gate^((a|bc)+)*ax	aax	y	$1	a
444*0Sstevel@tonic-gate(a|x)*ab	cab	y	y$1	y
445*0Sstevel@tonic-gate(a)*ab	cab	y	y$1	y
446*0Sstevel@tonic-gate(?:(?i)a)b	ab	y	$&	ab
447*0Sstevel@tonic-gate((?i)a)b	ab	y	$&:$1	ab:a
448*0Sstevel@tonic-gate(?:(?i)a)b	Ab	y	$&	Ab
449*0Sstevel@tonic-gate((?i)a)b	Ab	y	$&:$1	Ab:A
450*0Sstevel@tonic-gate(?:(?i)a)b	aB	n	-	-
451*0Sstevel@tonic-gate((?i)a)b	aB	n	-	-
452*0Sstevel@tonic-gate(?i:a)b	ab	y	$&	ab
453*0Sstevel@tonic-gate((?i:a))b	ab	y	$&:$1	ab:a
454*0Sstevel@tonic-gate(?i:a)b	Ab	y	$&	Ab
455*0Sstevel@tonic-gate((?i:a))b	Ab	y	$&:$1	Ab:A
456*0Sstevel@tonic-gate(?i:a)b	aB	n	-	-
457*0Sstevel@tonic-gate((?i:a))b	aB	n	-	-
458*0Sstevel@tonic-gate'(?:(?-i)a)b'i	ab	y	$&	ab
459*0Sstevel@tonic-gate'((?-i)a)b'i	ab	y	$&:$1	ab:a
460*0Sstevel@tonic-gate'(?:(?-i)a)b'i	aB	y	$&	aB
461*0Sstevel@tonic-gate'((?-i)a)b'i	aB	y	$&:$1	aB:a
462*0Sstevel@tonic-gate'(?:(?-i)a)b'i	Ab	n	-	-
463*0Sstevel@tonic-gate'((?-i)a)b'i	Ab	n	-	-
464*0Sstevel@tonic-gate'(?:(?-i)a)b'i	aB	y	$&	aB
465*0Sstevel@tonic-gate'((?-i)a)b'i	aB	y	$1	a
466*0Sstevel@tonic-gate'(?:(?-i)a)b'i	AB	n	-	-
467*0Sstevel@tonic-gate'((?-i)a)b'i	AB	n	-	-
468*0Sstevel@tonic-gate'(?-i:a)b'i	ab	y	$&	ab
469*0Sstevel@tonic-gate'((?-i:a))b'i	ab	y	$&:$1	ab:a
470*0Sstevel@tonic-gate'(?-i:a)b'i	aB	y	$&	aB
471*0Sstevel@tonic-gate'((?-i:a))b'i	aB	y	$&:$1	aB:a
472*0Sstevel@tonic-gate'(?-i:a)b'i	Ab	n	-	-
473*0Sstevel@tonic-gate'((?-i:a))b'i	Ab	n	-	-
474*0Sstevel@tonic-gate'(?-i:a)b'i	aB	y	$&	aB
475*0Sstevel@tonic-gate'((?-i:a))b'i	aB	y	$1	a
476*0Sstevel@tonic-gate'(?-i:a)b'i	AB	n	-	-
477*0Sstevel@tonic-gate'((?-i:a))b'i	AB	n	-	-
478*0Sstevel@tonic-gate'((?-i:a.))b'i	a\nB	n	-	-
479*0Sstevel@tonic-gate'((?s-i:a.))b'i	a\nB	y	$1	a\n
480*0Sstevel@tonic-gate'((?s-i:a.))b'i	B\nB	n	-	-
481*0Sstevel@tonic-gate(?:c|d)(?:)(?:a(?:)(?:b)(?:b(?:))(?:b(?:)(?:b)))	cabbbb	y	$&	cabbbb
482*0Sstevel@tonic-gate(?:c|d)(?:)(?:aaaaaaaa(?:)(?:bbbbbbbb)(?:bbbbbbbb(?:))(?:bbbbbbbb(?:)(?:bbbbbbbb)))	caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb	y	$&	caaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
483*0Sstevel@tonic-gate'(ab)\d\1'i	Ab4ab	y	$1	Ab
484*0Sstevel@tonic-gate'(ab)\d\1'i	ab4Ab	y	$1	ab
485*0Sstevel@tonic-gatefoo\w*\d{4}baz	foobar1234baz	y	$&	foobar1234baz
486*0Sstevel@tonic-gatea(?{})b	cabd	y	$&	ab
487*0Sstevel@tonic-gatea(?{)b	-	c	-	Sequence (?{...}) not terminated or not {}-balanced
488*0Sstevel@tonic-gatea(?{{})b	-	c	-	Sequence (?{...}) not terminated or not {}-balanced
489*0Sstevel@tonic-gatea(?{}})b	-	c	-
490*0Sstevel@tonic-gatea(?{"{"})b	-	c	-	Sequence (?{...}) not terminated or not {}-balanced
491*0Sstevel@tonic-gatea(?{"\{"})b	cabd	y	$&	ab
492*0Sstevel@tonic-gatea(?{"{"}})b	-	c	-	Unmatched right curly bracket
493*0Sstevel@tonic-gatea(?{$bl="\{"}).b	caxbd	y	$bl	{
494*0Sstevel@tonic-gatex(~~)*(?:(?:F)?)?	x~~	y	-	-
495*0Sstevel@tonic-gate^a(?#xxx){3}c	aaac	y	$&	aaac
496*0Sstevel@tonic-gate'^a (?#xxx) (?#yyy) {3}c'x	aaac	y	$&	aaac
497*0Sstevel@tonic-gate(?<![cd])b	dbcb	n	-	-
498*0Sstevel@tonic-gate(?<![cd])[ab]	dbaacb	y	$&	a
499*0Sstevel@tonic-gate(?<!(c|d))b	dbcb	n	-	-
500*0Sstevel@tonic-gate(?<!(c|d))[ab]	dbaacb	y	$&	a
501*0Sstevel@tonic-gate(?<!cd)[ab]	cdaccb	y	$&	b
502*0Sstevel@tonic-gate^(?:a?b?)*$	a--	n	-	-
503*0Sstevel@tonic-gate((?s)^a(.))((?m)^b$)	a\nb\nc\n	y	$1;$2;$3	a\n;\n;b
504*0Sstevel@tonic-gate((?m)^b$)	a\nb\nc\n	y	$1	b
505*0Sstevel@tonic-gate(?m)^b	a\nb\n	y	$&	b
506*0Sstevel@tonic-gate(?m)^(b)	a\nb\n	y	$1	b
507*0Sstevel@tonic-gate((?m)^b)	a\nb\n	y	$1	b
508*0Sstevel@tonic-gate\n((?m)^b)	a\nb\n	y	$1	b
509*0Sstevel@tonic-gate((?s).)c(?!.)	a\nb\nc\n	y	$1	\n
510*0Sstevel@tonic-gate((?s).)c(?!.)	a\nb\nc\n	y	$1:$&	\n:\nc
511*0Sstevel@tonic-gate((?s)b.)c(?!.)	a\nb\nc\n	y	$1	b\n
512*0Sstevel@tonic-gate((?s)b.)c(?!.)	a\nb\nc\n	y	$1:$&	b\n:b\nc
513*0Sstevel@tonic-gate^b	a\nb\nc\n	n	-	-
514*0Sstevel@tonic-gate()^b	a\nb\nc\n	n	-	-
515*0Sstevel@tonic-gate((?m)^b)	a\nb\nc\n	y	$1	b
516*0Sstevel@tonic-gate(?(1)a|b)	a	n	-	-
517*0Sstevel@tonic-gate(?(1)b|a)	a	y	$&	a
518*0Sstevel@tonic-gate(x)?(?(1)a|b)	a	n	-	-
519*0Sstevel@tonic-gate(x)?(?(1)b|a)	a	y	$&	a
520*0Sstevel@tonic-gate()?(?(1)b|a)	a	y	$&	a
521*0Sstevel@tonic-gate()(?(1)b|a)	a	n	-	-
522*0Sstevel@tonic-gate()?(?(1)a|b)	a	y	$&	a
523*0Sstevel@tonic-gate^(\()?blah(?(1)(\)))$	(blah)	y	$2	)
524*0Sstevel@tonic-gate^(\()?blah(?(1)(\)))$	blah	y	($2)	()
525*0Sstevel@tonic-gate^(\()?blah(?(1)(\)))$	blah)	n	-	-
526*0Sstevel@tonic-gate^(\()?blah(?(1)(\)))$	(blah	n	-	-
527*0Sstevel@tonic-gate^(\(+)?blah(?(1)(\)))$	(blah)	y	$2	)
528*0Sstevel@tonic-gate^(\(+)?blah(?(1)(\)))$	blah	y	($2)	()
529*0Sstevel@tonic-gate^(\(+)?blah(?(1)(\)))$	blah)	n	-	-
530*0Sstevel@tonic-gate^(\(+)?blah(?(1)(\)))$	(blah	n	-	-
531*0Sstevel@tonic-gate(?(1?)a|b)	a	c	-	Switch condition not recognized
532*0Sstevel@tonic-gate(?(1)a|b|c)	a	c	-	Switch (?(condition)... contains too many branches
533*0Sstevel@tonic-gate(?(?{0})a|b)	a	n	-	-
534*0Sstevel@tonic-gate(?(?{0})b|a)	a	y	$&	a
535*0Sstevel@tonic-gate(?(?{1})b|a)	a	n	-	-
536*0Sstevel@tonic-gate(?(?{1})a|b)	a	y	$&	a
537*0Sstevel@tonic-gate(?(?!a)a|b)	a	n	-	-
538*0Sstevel@tonic-gate(?(?!a)b|a)	a	y	$&	a
539*0Sstevel@tonic-gate(?(?=a)b|a)	a	n	-	-
540*0Sstevel@tonic-gate(?(?=a)a|b)	a	y	$&	a
541*0Sstevel@tonic-gate(?=(a+?))(\1ab)	aaab	y	$2	aab
542*0Sstevel@tonic-gate^(?=(a+?))\1ab	aaab	n	-	-
543*0Sstevel@tonic-gate(\w+:)+	one:	y	$1	one:
544*0Sstevel@tonic-gate$(?<=^(a))	a	y	$1	a
545*0Sstevel@tonic-gate(?=(a+?))(\1ab)	aaab	y	$2	aab
546*0Sstevel@tonic-gate^(?=(a+?))\1ab	aaab	n	-	-
547*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	abcd:	n	-	-
548*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	abcd	y	$1-$2	-abcd
549*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	xy:z:::abcd	y	$1-$2	xy:z:::-abcd
550*0Sstevel@tonic-gate^[^bcd]*(c+)	aexycd	y	$1	c
551*0Sstevel@tonic-gate(a*)b+	caab	y	$1	aa
552*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	abcd:	n	-	-
553*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	abcd	y	$1-$2	-abcd
554*0Sstevel@tonic-gate([\w:]+::)?(\w+)$	xy:z:::abcd	y	$1-$2	xy:z:::-abcd
555*0Sstevel@tonic-gate^[^bcd]*(c+)	aexycd	y	$1	c
556*0Sstevel@tonic-gate(?{$a=2})a*aa(?{local$a=$a+1})k*c(?{$b=$a})	yaaxxaaaacd	y	$b	3
557*0Sstevel@tonic-gate(?{$a=2})(a(?{local$a=$a+1}))*aak*c(?{$b=$a})	yaaxxaaaacd	y	$b	4
558*0Sstevel@tonic-gate(>a+)ab	aaab	n	-	-
559*0Sstevel@tonic-gate(?>a+)b	aaab	y	-	-
560*0Sstevel@tonic-gate([[:]+)	a:[b]:	y	$1	:[
561*0Sstevel@tonic-gate([[=]+)	a=[b]=	y	$1	=[
562*0Sstevel@tonic-gate([[.]+)	a.[b].	y	$1	.[
563*0Sstevel@tonic-gate[a[:xyz:	-	c	-	Unmatched [
564*0Sstevel@tonic-gate[a[:xyz:]	-	c	-	POSIX class [:xyz:] unknown
565*0Sstevel@tonic-gate[a[:]b[:c]	abc	y	$&	abc
566*0Sstevel@tonic-gate([a[:xyz:]b]+)	pbaq	c	-	POSIX class [:xyz:] unknown
567*0Sstevel@tonic-gate[a[:]b[:c]	abc	y	$&	abc
568*0Sstevel@tonic-gate([[:alpha:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd
569*0Sstevel@tonic-gate([[:alnum:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy
570*0Sstevel@tonic-gate([[:ascii:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__--  ${nulnul}
571*0Sstevel@tonic-gate([[:cntrl:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	${nulnul}
572*0Sstevel@tonic-gate([[:digit:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	01
573*0Sstevel@tonic-gate([[:graph:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__--
574*0Sstevel@tonic-gate([[:lower:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	cd
575*0Sstevel@tonic-gate([[:print:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__--
576*0Sstevel@tonic-gate([[:punct:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	__--
577*0Sstevel@tonic-gate([[:space:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1
578*0Sstevel@tonic-gate([[:word:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__
579*0Sstevel@tonic-gate([[:upper:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	AB
580*0Sstevel@tonic-gate([[:xdigit:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01
581*0Sstevel@tonic-gate([[:^alpha:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	01
582*0Sstevel@tonic-gate([[:^alnum:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	__--  ${nulnul}${ffff}
583*0Sstevel@tonic-gate([[:^ascii:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	${ffff}
584*0Sstevel@tonic-gate([[:^cntrl:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__--
585*0Sstevel@tonic-gate([[:^digit:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd
586*0Sstevel@tonic-gate([[:^lower:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	AB
587*0Sstevel@tonic-gate([[:^print:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	${nulnul}${ffff}
588*0Sstevel@tonic-gate([[:^punct:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy
589*0Sstevel@tonic-gate([[:^space:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	ABcd01Xy__--
590*0Sstevel@tonic-gate([[:^word:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	--  ${nulnul}${ffff}
591*0Sstevel@tonic-gate([[:^upper:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	cd01
592*0Sstevel@tonic-gate([[:^xdigit:]]+)	ABcd01Xy__--  ${nulnul}${ffff}	y	$1	Xy__--  ${nulnul}${ffff}
593*0Sstevel@tonic-gate[[:foo:]]	-	c	-	POSIX class [:foo:] unknown
594*0Sstevel@tonic-gate[[:^foo:]]	-	c	-	POSIX class [:^foo:] unknown
595*0Sstevel@tonic-gate((?>a+)b)	aaab	y	$1	aaab
596*0Sstevel@tonic-gate(?>(a+))b	aaab	y	$1	aaa
597*0Sstevel@tonic-gate((?>[^()]+)|\([^()]*\))+	((abc(ade)ufh()()x	y	$&	abc(ade)ufh()()x
598*0Sstevel@tonic-gate(?<=x+)y	-	c	-	Variable length lookbehind not implemented
599*0Sstevel@tonic-gatea{37,17}	-	c	-	Can't do {n,m} with n > m
600*0Sstevel@tonic-gate\Z	a\nb\n	y	$-[0]	3
601*0Sstevel@tonic-gate\z	a\nb\n	y	$-[0]	4
602*0Sstevel@tonic-gate$	a\nb\n	y	$-[0]	3
603*0Sstevel@tonic-gate\Z	b\na\n	y	$-[0]	3
604*0Sstevel@tonic-gate\z	b\na\n	y	$-[0]	4
605*0Sstevel@tonic-gate$	b\na\n	y	$-[0]	3
606*0Sstevel@tonic-gate\Z	b\na	y	$-[0]	3
607*0Sstevel@tonic-gate\z	b\na	y	$-[0]	3
608*0Sstevel@tonic-gate$	b\na	y	$-[0]	3
609*0Sstevel@tonic-gate'\Z'm	a\nb\n	y	$-[0]	3
610*0Sstevel@tonic-gate'\z'm	a\nb\n	y	$-[0]	4
611*0Sstevel@tonic-gate'$'m	a\nb\n	y	$-[0]	1
612*0Sstevel@tonic-gate'\Z'm	b\na\n	y	$-[0]	3
613*0Sstevel@tonic-gate'\z'm	b\na\n	y	$-[0]	4
614*0Sstevel@tonic-gate'$'m	b\na\n	y	$-[0]	1
615*0Sstevel@tonic-gate'\Z'm	b\na	y	$-[0]	3
616*0Sstevel@tonic-gate'\z'm	b\na	y	$-[0]	3
617*0Sstevel@tonic-gate'$'m	b\na	y	$-[0]	1
618*0Sstevel@tonic-gatea\Z	a\nb\n	n	-	-
619*0Sstevel@tonic-gatea\z	a\nb\n	n	-	-
620*0Sstevel@tonic-gatea$	a\nb\n	n	-	-
621*0Sstevel@tonic-gatea\Z	b\na\n	y	$-[0]	2
622*0Sstevel@tonic-gatea\z	b\na\n	n	-	-
623*0Sstevel@tonic-gatea$	b\na\n	y	$-[0]	2
624*0Sstevel@tonic-gatea\Z	b\na	y	$-[0]	2
625*0Sstevel@tonic-gatea\z	b\na	y	$-[0]	2
626*0Sstevel@tonic-gatea$	b\na	y	$-[0]	2
627*0Sstevel@tonic-gate'a\Z'm	a\nb\n	n	-	-
628*0Sstevel@tonic-gate'a\z'm	a\nb\n	n	-	-
629*0Sstevel@tonic-gate'a$'m	a\nb\n	y	$-[0]	0
630*0Sstevel@tonic-gate'a\Z'm	b\na\n	y	$-[0]	2
631*0Sstevel@tonic-gate'a\z'm	b\na\n	n	-	-
632*0Sstevel@tonic-gate'a$'m	b\na\n	y	$-[0]	2
633*0Sstevel@tonic-gate'a\Z'm	b\na	y	$-[0]	2
634*0Sstevel@tonic-gate'a\z'm	b\na	y	$-[0]	2
635*0Sstevel@tonic-gate'a$'m	b\na	y	$-[0]	2
636*0Sstevel@tonic-gateaa\Z	aa\nb\n	n	-	-
637*0Sstevel@tonic-gateaa\z	aa\nb\n	n	-	-
638*0Sstevel@tonic-gateaa$	aa\nb\n	n	-	-
639*0Sstevel@tonic-gateaa\Z	b\naa\n	y	$-[0]	2
640*0Sstevel@tonic-gateaa\z	b\naa\n	n	-	-
641*0Sstevel@tonic-gateaa$	b\naa\n	y	$-[0]	2
642*0Sstevel@tonic-gateaa\Z	b\naa	y	$-[0]	2
643*0Sstevel@tonic-gateaa\z	b\naa	y	$-[0]	2
644*0Sstevel@tonic-gateaa$	b\naa	y	$-[0]	2
645*0Sstevel@tonic-gate'aa\Z'm	aa\nb\n	n	-	-
646*0Sstevel@tonic-gate'aa\z'm	aa\nb\n	n	-	-
647*0Sstevel@tonic-gate'aa$'m	aa\nb\n	y	$-[0]	0
648*0Sstevel@tonic-gate'aa\Z'm	b\naa\n	y	$-[0]	2
649*0Sstevel@tonic-gate'aa\z'm	b\naa\n	n	-	-
650*0Sstevel@tonic-gate'aa$'m	b\naa\n	y	$-[0]	2
651*0Sstevel@tonic-gate'aa\Z'm	b\naa	y	$-[0]	2
652*0Sstevel@tonic-gate'aa\z'm	b\naa	y	$-[0]	2
653*0Sstevel@tonic-gate'aa$'m	b\naa	y	$-[0]	2
654*0Sstevel@tonic-gateaa\Z	ac\nb\n	n	-	-
655*0Sstevel@tonic-gateaa\z	ac\nb\n	n	-	-
656*0Sstevel@tonic-gateaa$	ac\nb\n	n	-	-
657*0Sstevel@tonic-gateaa\Z	b\nac\n	n	-	-
658*0Sstevel@tonic-gateaa\z	b\nac\n	n	-	-
659*0Sstevel@tonic-gateaa$	b\nac\n	n	-	-
660*0Sstevel@tonic-gateaa\Z	b\nac	n	-	-
661*0Sstevel@tonic-gateaa\z	b\nac	n	-	-
662*0Sstevel@tonic-gateaa$	b\nac	n	-	-
663*0Sstevel@tonic-gate'aa\Z'm	ac\nb\n	n	-	-
664*0Sstevel@tonic-gate'aa\z'm	ac\nb\n	n	-	-
665*0Sstevel@tonic-gate'aa$'m	ac\nb\n	n	-	-
666*0Sstevel@tonic-gate'aa\Z'm	b\nac\n	n	-	-
667*0Sstevel@tonic-gate'aa\z'm	b\nac\n	n	-	-
668*0Sstevel@tonic-gate'aa$'m	b\nac\n	n	-	-
669*0Sstevel@tonic-gate'aa\Z'm	b\nac	n	-	-
670*0Sstevel@tonic-gate'aa\z'm	b\nac	n	-	-
671*0Sstevel@tonic-gate'aa$'m	b\nac	n	-	-
672*0Sstevel@tonic-gateaa\Z	ca\nb\n	n	-	-
673*0Sstevel@tonic-gateaa\z	ca\nb\n	n	-	-
674*0Sstevel@tonic-gateaa$	ca\nb\n	n	-	-
675*0Sstevel@tonic-gateaa\Z	b\nca\n	n	-	-
676*0Sstevel@tonic-gateaa\z	b\nca\n	n	-	-
677*0Sstevel@tonic-gateaa$	b\nca\n	n	-	-
678*0Sstevel@tonic-gateaa\Z	b\nca	n	-	-
679*0Sstevel@tonic-gateaa\z	b\nca	n	-	-
680*0Sstevel@tonic-gateaa$	b\nca	n	-	-
681*0Sstevel@tonic-gate'aa\Z'm	ca\nb\n	n	-	-
682*0Sstevel@tonic-gate'aa\z'm	ca\nb\n	n	-	-
683*0Sstevel@tonic-gate'aa$'m	ca\nb\n	n	-	-
684*0Sstevel@tonic-gate'aa\Z'm	b\nca\n	n	-	-
685*0Sstevel@tonic-gate'aa\z'm	b\nca\n	n	-	-
686*0Sstevel@tonic-gate'aa$'m	b\nca\n	n	-	-
687*0Sstevel@tonic-gate'aa\Z'm	b\nca	n	-	-
688*0Sstevel@tonic-gate'aa\z'm	b\nca	n	-	-
689*0Sstevel@tonic-gate'aa$'m	b\nca	n	-	-
690*0Sstevel@tonic-gateab\Z	ab\nb\n	n	-	-
691*0Sstevel@tonic-gateab\z	ab\nb\n	n	-	-
692*0Sstevel@tonic-gateab$	ab\nb\n	n	-	-
693*0Sstevel@tonic-gateab\Z	b\nab\n	y	$-[0]	2
694*0Sstevel@tonic-gateab\z	b\nab\n	n	-	-
695*0Sstevel@tonic-gateab$	b\nab\n	y	$-[0]	2
696*0Sstevel@tonic-gateab\Z	b\nab	y	$-[0]	2
697*0Sstevel@tonic-gateab\z	b\nab	y	$-[0]	2
698*0Sstevel@tonic-gateab$	b\nab	y	$-[0]	2
699*0Sstevel@tonic-gate'ab\Z'm	ab\nb\n	n	-	-
700*0Sstevel@tonic-gate'ab\z'm	ab\nb\n	n	-	-
701*0Sstevel@tonic-gate'ab$'m	ab\nb\n	y	$-[0]	0
702*0Sstevel@tonic-gate'ab\Z'm	b\nab\n	y	$-[0]	2
703*0Sstevel@tonic-gate'ab\z'm	b\nab\n	n	-	-
704*0Sstevel@tonic-gate'ab$'m	b\nab\n	y	$-[0]	2
705*0Sstevel@tonic-gate'ab\Z'm	b\nab	y	$-[0]	2
706*0Sstevel@tonic-gate'ab\z'm	b\nab	y	$-[0]	2
707*0Sstevel@tonic-gate'ab$'m	b\nab	y	$-[0]	2
708*0Sstevel@tonic-gateab\Z	ac\nb\n	n	-	-
709*0Sstevel@tonic-gateab\z	ac\nb\n	n	-	-
710*0Sstevel@tonic-gateab$	ac\nb\n	n	-	-
711*0Sstevel@tonic-gateab\Z	b\nac\n	n	-	-
712*0Sstevel@tonic-gateab\z	b\nac\n	n	-	-
713*0Sstevel@tonic-gateab$	b\nac\n	n	-	-
714*0Sstevel@tonic-gateab\Z	b\nac	n	-	-
715*0Sstevel@tonic-gateab\z	b\nac	n	-	-
716*0Sstevel@tonic-gateab$	b\nac	n	-	-
717*0Sstevel@tonic-gate'ab\Z'm	ac\nb\n	n	-	-
718*0Sstevel@tonic-gate'ab\z'm	ac\nb\n	n	-	-
719*0Sstevel@tonic-gate'ab$'m	ac\nb\n	n	-	-
720*0Sstevel@tonic-gate'ab\Z'm	b\nac\n	n	-	-
721*0Sstevel@tonic-gate'ab\z'm	b\nac\n	n	-	-
722*0Sstevel@tonic-gate'ab$'m	b\nac\n	n	-	-
723*0Sstevel@tonic-gate'ab\Z'm	b\nac	n	-	-
724*0Sstevel@tonic-gate'ab\z'm	b\nac	n	-	-
725*0Sstevel@tonic-gate'ab$'m	b\nac	n	-	-
726*0Sstevel@tonic-gateab\Z	ca\nb\n	n	-	-
727*0Sstevel@tonic-gateab\z	ca\nb\n	n	-	-
728*0Sstevel@tonic-gateab$	ca\nb\n	n	-	-
729*0Sstevel@tonic-gateab\Z	b\nca\n	n	-	-
730*0Sstevel@tonic-gateab\z	b\nca\n	n	-	-
731*0Sstevel@tonic-gateab$	b\nca\n	n	-	-
732*0Sstevel@tonic-gateab\Z	b\nca	n	-	-
733*0Sstevel@tonic-gateab\z	b\nca	n	-	-
734*0Sstevel@tonic-gateab$	b\nca	n	-	-
735*0Sstevel@tonic-gate'ab\Z'm	ca\nb\n	n	-	-
736*0Sstevel@tonic-gate'ab\z'm	ca\nb\n	n	-	-
737*0Sstevel@tonic-gate'ab$'m	ca\nb\n	n	-	-
738*0Sstevel@tonic-gate'ab\Z'm	b\nca\n	n	-	-
739*0Sstevel@tonic-gate'ab\z'm	b\nca\n	n	-	-
740*0Sstevel@tonic-gate'ab$'m	b\nca\n	n	-	-
741*0Sstevel@tonic-gate'ab\Z'm	b\nca	n	-	-
742*0Sstevel@tonic-gate'ab\z'm	b\nca	n	-	-
743*0Sstevel@tonic-gate'ab$'m	b\nca	n	-	-
744*0Sstevel@tonic-gateabb\Z	abb\nb\n	n	-	-
745*0Sstevel@tonic-gateabb\z	abb\nb\n	n	-	-
746*0Sstevel@tonic-gateabb$	abb\nb\n	n	-	-
747*0Sstevel@tonic-gateabb\Z	b\nabb\n	y	$-[0]	2
748*0Sstevel@tonic-gateabb\z	b\nabb\n	n	-	-
749*0Sstevel@tonic-gateabb$	b\nabb\n	y	$-[0]	2
750*0Sstevel@tonic-gateabb\Z	b\nabb	y	$-[0]	2
751*0Sstevel@tonic-gateabb\z	b\nabb	y	$-[0]	2
752*0Sstevel@tonic-gateabb$	b\nabb	y	$-[0]	2
753*0Sstevel@tonic-gate'abb\Z'm	abb\nb\n	n	-	-
754*0Sstevel@tonic-gate'abb\z'm	abb\nb\n	n	-	-
755*0Sstevel@tonic-gate'abb$'m	abb\nb\n	y	$-[0]	0
756*0Sstevel@tonic-gate'abb\Z'm	b\nabb\n	y	$-[0]	2
757*0Sstevel@tonic-gate'abb\z'm	b\nabb\n	n	-	-
758*0Sstevel@tonic-gate'abb$'m	b\nabb\n	y	$-[0]	2
759*0Sstevel@tonic-gate'abb\Z'm	b\nabb	y	$-[0]	2
760*0Sstevel@tonic-gate'abb\z'm	b\nabb	y	$-[0]	2
761*0Sstevel@tonic-gate'abb$'m	b\nabb	y	$-[0]	2
762*0Sstevel@tonic-gateabb\Z	ac\nb\n	n	-	-
763*0Sstevel@tonic-gateabb\z	ac\nb\n	n	-	-
764*0Sstevel@tonic-gateabb$	ac\nb\n	n	-	-
765*0Sstevel@tonic-gateabb\Z	b\nac\n	n	-	-
766*0Sstevel@tonic-gateabb\z	b\nac\n	n	-	-
767*0Sstevel@tonic-gateabb$	b\nac\n	n	-	-
768*0Sstevel@tonic-gateabb\Z	b\nac	n	-	-
769*0Sstevel@tonic-gateabb\z	b\nac	n	-	-
770*0Sstevel@tonic-gateabb$	b\nac	n	-	-
771*0Sstevel@tonic-gate'abb\Z'm	ac\nb\n	n	-	-
772*0Sstevel@tonic-gate'abb\z'm	ac\nb\n	n	-	-
773*0Sstevel@tonic-gate'abb$'m	ac\nb\n	n	-	-
774*0Sstevel@tonic-gate'abb\Z'm	b\nac\n	n	-	-
775*0Sstevel@tonic-gate'abb\z'm	b\nac\n	n	-	-
776*0Sstevel@tonic-gate'abb$'m	b\nac\n	n	-	-
777*0Sstevel@tonic-gate'abb\Z'm	b\nac	n	-	-
778*0Sstevel@tonic-gate'abb\z'm	b\nac	n	-	-
779*0Sstevel@tonic-gate'abb$'m	b\nac	n	-	-
780*0Sstevel@tonic-gateabb\Z	ca\nb\n	n	-	-
781*0Sstevel@tonic-gateabb\z	ca\nb\n	n	-	-
782*0Sstevel@tonic-gateabb$	ca\nb\n	n	-	-
783*0Sstevel@tonic-gateabb\Z	b\nca\n	n	-	-
784*0Sstevel@tonic-gateabb\z	b\nca\n	n	-	-
785*0Sstevel@tonic-gateabb$	b\nca\n	n	-	-
786*0Sstevel@tonic-gateabb\Z	b\nca	n	-	-
787*0Sstevel@tonic-gateabb\z	b\nca	n	-	-
788*0Sstevel@tonic-gateabb$	b\nca	n	-	-
789*0Sstevel@tonic-gate'abb\Z'm	ca\nb\n	n	-	-
790*0Sstevel@tonic-gate'abb\z'm	ca\nb\n	n	-	-
791*0Sstevel@tonic-gate'abb$'m	ca\nb\n	n	-	-
792*0Sstevel@tonic-gate'abb\Z'm	b\nca\n	n	-	-
793*0Sstevel@tonic-gate'abb\z'm	b\nca\n	n	-	-
794*0Sstevel@tonic-gate'abb$'m	b\nca\n	n	-	-
795*0Sstevel@tonic-gate'abb\Z'm	b\nca	n	-	-
796*0Sstevel@tonic-gate'abb\z'm	b\nca	n	-	-
797*0Sstevel@tonic-gate'abb$'m	b\nca	n	-	-
798*0Sstevel@tonic-gate(^|x)(c)	ca	y	$2	c
799*0Sstevel@tonic-gatea*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz	x	n	-	-
800*0Sstevel@tonic-gatea(?{$a=2;$b=3;($b)=$a})b	yabz	y	$b	2
801*0Sstevel@tonic-gateround\(((?>[^()]+))\)	_I(round(xs * sz),1)	y	$1	xs * sz
802*0Sstevel@tonic-gate'((?x:.) )'	x 	y	$1-	x -
803*0Sstevel@tonic-gate'((?-x:.) )'x	x 	y	$1-	x-
804*0Sstevel@tonic-gatefoo.bart	foo.bart	y	-	-
805*0Sstevel@tonic-gate'^d[x][x][x]'m	abcd\ndxxx	y	-	-
806*0Sstevel@tonic-gate.X(.+)+X	bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
807*0Sstevel@tonic-gate.X(.+)+XX	bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
808*0Sstevel@tonic-gate.XX(.+)+X	bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
809*0Sstevel@tonic-gate.X(.+)+X	bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
810*0Sstevel@tonic-gate.X(.+)+XX	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
811*0Sstevel@tonic-gate.XX(.+)+X	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
812*0Sstevel@tonic-gate.X(.+)+[X]	bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
813*0Sstevel@tonic-gate.X(.+)+[X][X]	bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
814*0Sstevel@tonic-gate.XX(.+)+[X]	bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
815*0Sstevel@tonic-gate.X(.+)+[X]	bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
816*0Sstevel@tonic-gate.X(.+)+[X][X]	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
817*0Sstevel@tonic-gate.XX(.+)+[X]	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
818*0Sstevel@tonic-gate.[X](.+)+[X]	bbbbXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
819*0Sstevel@tonic-gate.[X](.+)+[X][X]	bbbbXcXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
820*0Sstevel@tonic-gate.[X][X](.+)+[X]	bbbbXXcXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	y	-	-
821*0Sstevel@tonic-gate.[X](.+)+[X]	bbbbXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
822*0Sstevel@tonic-gate.[X](.+)+[X][X]	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
823*0Sstevel@tonic-gate.[X][X](.+)+[X]	bbbbXXXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa	n	-	-
824*0Sstevel@tonic-gatett+$	xxxtt	y	-	-
825*0Sstevel@tonic-gate([a-\d]+)	za-9z	y	$1	a-9
826*0Sstevel@tonic-gate([\d-z]+)	a0-za	y	$1	0-z
827*0Sstevel@tonic-gate([\d-\s]+)	a0- z	y	$1	0-
828*0Sstevel@tonic-gate([a-[:digit:]]+)	za-9z	y	$1	a-9
829*0Sstevel@tonic-gate([[:digit:]-z]+)	=0-z=	y	$1	0-z
830*0Sstevel@tonic-gate([[:digit:]-[:alpha:]]+)	=0-z=	y	$1	0-z
831*0Sstevel@tonic-gate\GX.*X	aaaXbX	n	-	-
832*0Sstevel@tonic-gate(\d+\.\d+)	3.1415926	y	$1	3.1415926
833*0Sstevel@tonic-gate(\ba.{0,10}br)	have a web browser	y	$1	a web br
834*0Sstevel@tonic-gate'\.c(pp|xx|c)?$'i	Changes	n	-	-
835*0Sstevel@tonic-gate'\.c(pp|xx|c)?$'i	IO.c	y	-	-
836*0Sstevel@tonic-gate'(\.c(pp|xx|c)?$)'i	IO.c	y	$1	.c
837*0Sstevel@tonic-gate^([a-z]:)	C:/	n	-	-
838*0Sstevel@tonic-gate'^\S\s+aa$'m	\nx aa	y	-	-
839*0Sstevel@tonic-gate(^|a)b	ab	y	-	-
840*0Sstevel@tonic-gate^([ab]*?)(b)?(c)$	abac	y	-$2-	--
841*0Sstevel@tonic-gate(\w)?(abc)\1b	abcab	n	-	-
842*0Sstevel@tonic-gate^(?:.,){2}c	a,b,c	y	-	-
843*0Sstevel@tonic-gate^(.,){2}c	a,b,c	y	$1	b,
844*0Sstevel@tonic-gate^(?:[^,]*,){2}c	a,b,c	y	-	-
845*0Sstevel@tonic-gate^([^,]*,){2}c	a,b,c	y	$1	b,
846*0Sstevel@tonic-gate^([^,]*,){3}d	aaa,b,c,d	y	$1	c,
847*0Sstevel@tonic-gate^([^,]*,){3,}d	aaa,b,c,d	y	$1	c,
848*0Sstevel@tonic-gate^([^,]*,){0,3}d	aaa,b,c,d	y	$1	c,
849*0Sstevel@tonic-gate^([^,]{1,3},){3}d	aaa,b,c,d	y	$1	c,
850*0Sstevel@tonic-gate^([^,]{1,3},){3,}d	aaa,b,c,d	y	$1	c,
851*0Sstevel@tonic-gate^([^,]{1,3},){0,3}d	aaa,b,c,d	y	$1	c,
852*0Sstevel@tonic-gate^([^,]{1,},){3}d	aaa,b,c,d	y	$1	c,
853*0Sstevel@tonic-gate^([^,]{1,},){3,}d	aaa,b,c,d	y	$1	c,
854*0Sstevel@tonic-gate^([^,]{1,},){0,3}d	aaa,b,c,d	y	$1	c,
855*0Sstevel@tonic-gate^([^,]{0,3},){3}d	aaa,b,c,d	y	$1	c,
856*0Sstevel@tonic-gate^([^,]{0,3},){3,}d	aaa,b,c,d	y	$1	c,
857*0Sstevel@tonic-gate^([^,]{0,3},){0,3}d	aaa,b,c,d	y	$1	c,
858*0Sstevel@tonic-gate(?i)		y	-	-
859*0Sstevel@tonic-gate'(?!\A)x'm	a\nxb\n	y	-	-
860*0Sstevel@tonic-gate^(a(b)?)+$	aba	y	-$1-$2-	-a--
861*0Sstevel@tonic-gate^(aa(bb)?)+$	aabbaa	y	-$1-$2-	-aa--
862*0Sstevel@tonic-gate'^.{9}abc.*\n'm	123\nabcabcabcabc\n	y	-	-
863*0Sstevel@tonic-gate^(a)?a$	a	y	-$1-	--
864*0Sstevel@tonic-gate^(a)?(?(1)a|b)+$	a	n	-	-
865*0Sstevel@tonic-gate^(a\1?)(a\1?)(a\2?)(a\3?)$	aaaaaa	y	$1,$2,$3,$4	a,aa,a,aa
866*0Sstevel@tonic-gate^(a\1?){4}$	aaaaaa	y	$1	aa
867*0Sstevel@tonic-gate^(0+)?(?:x(1))?	x1	y	-	-
868*0Sstevel@tonic-gate^([0-9a-fA-F]+)(?:x([0-9a-fA-F]+)?)(?:x([0-9a-fA-F]+))?	012cxx0190	y	-	-
869*0Sstevel@tonic-gate^(b+?|a){1,2}c	bbbac	y	$1	a
870*0Sstevel@tonic-gate^(b+?|a){1,2}c	bbbbac	y	$1	a
871*0Sstevel@tonic-gate\((\w\. \w+)\)	cd. (A. Tw)	y	-$1-	-A. Tw-
872*0Sstevel@tonic-gate((?:aaaa|bbbb)cccc)?	aaaacccc	y	-	-
873*0Sstevel@tonic-gate((?:aaaa|bbbb)cccc)?	bbbbcccc	y	-	-
874*0Sstevel@tonic-gate(a)?(a)+	a	y	$1:$2	:a	-
875*0Sstevel@tonic-gate(ab)?(ab)+	ab	y	$1:$2	:ab	-
876*0Sstevel@tonic-gate(abc)?(abc)+	abc	y	$1:$2	:abc	-
877*0Sstevel@tonic-gate'b\s^'m	a\nb\n	n	-	-
878*0Sstevel@tonic-gate\ba	a	y	-	-
879*0Sstevel@tonic-gate^(a(??{"(?!)"})|(a)(?{1}))b	ab	y	$2	a	# [ID 20010811.006]
880*0Sstevel@tonic-gateab(?i)cd	AbCd	n	-	-	# [ID 20010809.023]
881*0Sstevel@tonic-gateab(?i)cd	abCd	y	-	-
882*0Sstevel@tonic-gate(A|B)*(?(1)(CD)|(CD))	CD	y	$2-$3	-CD
883*0Sstevel@tonic-gate(A|B)*(?(1)(CD)|(CD))	ABCD	y	$2-$3	CD-
884*0Sstevel@tonic-gate(A|B)*?(?(1)(CD)|(CD))	CD	y	$2-$3	-CD	# [ID 20010803.016]
885*0Sstevel@tonic-gate(A|B)*?(?(1)(CD)|(CD))	ABCD	y	$2-$3	CD-
886*0Sstevel@tonic-gate'^(o)(?!.*\1)'i	Oo	n	-	-
887*0Sstevel@tonic-gate(.*)\d+\1	abc12bc	y	$1	bc
888*0Sstevel@tonic-gate(?m:(foo\s*$))	foo\n bar	y	$1	foo
889*0Sstevel@tonic-gate(.*)c	abcd	y	$1	ab
890*0Sstevel@tonic-gate(.*)(?=c)	abcd	y	$1	ab
891*0Sstevel@tonic-gate(.*)(?=c)c	abcd	yB	$1	ab
892*0Sstevel@tonic-gate(.*)(?=b|c)	abcd	y	$1	ab
893*0Sstevel@tonic-gate(.*)(?=b|c)c	abcd	y	$1	ab
894*0Sstevel@tonic-gate(.*)(?=c|b)	abcd	y	$1	ab
895*0Sstevel@tonic-gate(.*)(?=c|b)c	abcd	y	$1	ab
896*0Sstevel@tonic-gate(.*)(?=[bc])	abcd	y	$1	ab
897*0Sstevel@tonic-gate(.*)(?=[bc])c	abcd	yB	$1	ab
898*0Sstevel@tonic-gate(.*)(?<=b)	abcd	y	$1	ab
899*0Sstevel@tonic-gate(.*)(?<=b)c	abcd	y	$1	ab
900*0Sstevel@tonic-gate(.*)(?<=b|c)	abcd	y	$1	abc
901*0Sstevel@tonic-gate(.*)(?<=b|c)c	abcd	y	$1	ab
902*0Sstevel@tonic-gate(.*)(?<=c|b)	abcd	y	$1	abc
903*0Sstevel@tonic-gate(.*)(?<=c|b)c	abcd	y	$1	ab
904*0Sstevel@tonic-gate(.*)(?<=[bc])	abcd	y	$1	abc
905*0Sstevel@tonic-gate(.*)(?<=[bc])c	abcd	y	$1	ab
906*0Sstevel@tonic-gate(.*?)c	abcd	y	$1	ab
907*0Sstevel@tonic-gate(.*?)(?=c)	abcd	y	$1	ab
908*0Sstevel@tonic-gate(.*?)(?=c)c	abcd	yB	$1	ab
909*0Sstevel@tonic-gate(.*?)(?=b|c)	abcd	y	$1	a
910*0Sstevel@tonic-gate(.*?)(?=b|c)c	abcd	y	$1	ab
911*0Sstevel@tonic-gate(.*?)(?=c|b)	abcd	y	$1	a
912*0Sstevel@tonic-gate(.*?)(?=c|b)c	abcd	y	$1	ab
913*0Sstevel@tonic-gate(.*?)(?=[bc])	abcd	y	$1	a
914*0Sstevel@tonic-gate(.*?)(?=[bc])c	abcd	yB	$1	ab
915*0Sstevel@tonic-gate(.*?)(?<=b)	abcd	y	$1	ab
916*0Sstevel@tonic-gate(.*?)(?<=b)c	abcd	y	$1	ab
917*0Sstevel@tonic-gate(.*?)(?<=b|c)	abcd	y	$1	ab
918*0Sstevel@tonic-gate(.*?)(?<=b|c)c	abcd	y	$1	ab
919*0Sstevel@tonic-gate(.*?)(?<=c|b)	abcd	y	$1	ab
920*0Sstevel@tonic-gate(.*?)(?<=c|b)c	abcd	y	$1	ab
921*0Sstevel@tonic-gate(.*?)(?<=[bc])	abcd	y	$1	ab
922*0Sstevel@tonic-gate(.*?)(?<=[bc])c	abcd	y	$1	ab
923*0Sstevel@tonic-gate2(]*)?$\1	2	y	$&	2
924*0Sstevel@tonic-gate(??{})	x	y	-	-
925*0Sstevel@tonic-gatea(b)??	abc	y	<$1>	<>	# undef [perl #16773]
926*0Sstevel@tonic-gate(\d{1,3}\.){3,}	128.134.142.8	y	<$1>	<142.>	# [perl #18019]
927*0Sstevel@tonic-gate^.{3,4}(.+)\1\z	foobarbar	y	$1	bar	# 16 tests for [perl #23171]
928*0Sstevel@tonic-gate^(?:f|o|b){3,4}(.+)\1\z	foobarbar	y	$1	bar
929*0Sstevel@tonic-gate^.{3,4}((?:b|a|r)+)\1\z	foobarbar	y	$1	bar
930*0Sstevel@tonic-gate^(?:f|o|b){3,4}((?:b|a|r)+)\1\z	foobarbar	y	$1	bar
931*0Sstevel@tonic-gate^.{3,4}(.+?)\1\z	foobarbar	y	$1	bar
932*0Sstevel@tonic-gate^(?:f|o|b){3,4}(.+?)\1\z	foobarbar	y	$1	bar
933*0Sstevel@tonic-gate^.{3,4}((?:b|a|r)+?)\1\z	foobarbar	y	$1	bar
934*0Sstevel@tonic-gate^(?:f|o|b){3,4}((?:b|a|r)+?)\1\z	foobarbar	y	$1	bar
935*0Sstevel@tonic-gate^.{2,3}?(.+)\1\z	foobarbar	y	$1	bar
936*0Sstevel@tonic-gate^(?:f|o|b){2,3}?(.+)\1\z	foobarbar	y	$1	bar
937*0Sstevel@tonic-gate^.{2,3}?((?:b|a|r)+)\1\z	foobarbar	y	$1	bar
938*0Sstevel@tonic-gate^(?:f|o|b){2,3}?((?:b|a|r)+)\1\z	foobarbar	y	$1	bar
939*0Sstevel@tonic-gate^.{2,3}?(.+?)\1\z	foobarbar	y	$1	bar
940*0Sstevel@tonic-gate^(?:f|o|b){2,3}?(.+?)\1\z	foobarbar	y	$1	bar
941*0Sstevel@tonic-gate^.{2,3}?((?:b|a|r)+?)\1\z	foobarbar	y	$1	bar
942*0Sstevel@tonic-gate^(?:f|o|b){2,3}?((?:b|a|r)+?)\1\z	foobarbar	y	$1	bar
943*0Sstevel@tonic-gate.*a(?!(b|cd)*e).*f	......abef	n	-	-	# [perl #23030]
944*0Sstevel@tonic-gatex(?#	x	c	-	Sequence (?#... not terminated
945*0Sstevel@tonic-gate:x(?#:	x	c	-	Sequence (?#... not terminated
946