• Home
  • Raw
  • Download

Lines Matching refs:SUCCEED

7 [SUCCEED, FAIL, SYNTAX_ERROR] = range(3)
69 ('(?P<foo_123>a)', 'a', SUCCEED, 'g1', 'a'),
70 ('(?P<foo_123>a)(?P=foo_123)', 'aa', SUCCEED, 'g1', 'a'),
74 ('[\\1]', '\1', SUCCEED, 'found', '\1'), # Character
75 ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'),
76 ('\\141', 'a', SUCCEED, 'found', 'a'),
77 …('(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\\119', 'abcdefghijklk9', SUCCEED, 'found+"-"+g11', 'abcdefg…
80 (r'\0', '\0', SUCCEED, 'found', '\0'),
81 (r'[\0a]', '\0', SUCCEED, 'found', '\0'),
82 (r'[a\0]', '\0', SUCCEED, 'found', '\0'),
86 (r'\a[\b]\f\n\r\t\v', '\a\b\f\n\r\t\v', SUCCEED, 'found', '\a\b\f\n\r\t\v'),
87 (r'[\a][\b][\f][\n][\r][\t][\v]', '\a\b\f\n\r\t\v', SUCCEED, 'found', '\a\b\f\n\r\t\v'),
91 (r'\xff', '\377', SUCCEED, 'found', chr(255)),
101 SUCCEED, 'found', "SRC=eval.c g.c blah blah blah \\\\"),
104 ('a.b', 'acb', SUCCEED, 'found', 'acb'),
108 ('a.b', 'a\rb', SUCCEED, 'found', 'a\rb'),
109 ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'),
110 ('(?s)a.*b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'),
111 ('(?s)a.{4,5}b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'),
112 ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'),
115 ('', '', SUCCEED, 'found', ''), # Empty pattern
116 ('abc', 'abc', SUCCEED, 'found', 'abc'),
120 ('abc', 'xabcy', SUCCEED, 'found', 'abc'),
121 ('abc', 'ababc', SUCCEED, 'found', 'abc'),
122 ('ab*c', 'abc', SUCCEED, 'found', 'abc'),
123 ('ab*bc', 'abc', SUCCEED, 'found', 'abc'),
124 ('ab*bc', 'abbc', SUCCEED, 'found', 'abbc'),
125 ('ab*bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
126 ('ab+bc', 'abbc', SUCCEED, 'found', 'abbc'),
129 ('ab+bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
130 ('ab?bc', 'abbc', SUCCEED, 'found', 'abbc'),
131 ('ab?bc', 'abc', SUCCEED, 'found', 'abc'),
133 ('ab?c', 'abc', SUCCEED, 'found', 'abc'),
134 ('^abc$', 'abc', SUCCEED, 'found', 'abc'),
136 ('^abc', 'abcc', SUCCEED, 'found', 'abc'),
138 ('abc$', 'aabc', SUCCEED, 'found', 'abc'),
139 ('^', 'abc', SUCCEED, 'found+"-"', '-'),
140 ('$', 'abc', SUCCEED, 'found+"-"', '-'),
141 ('a.c', 'abc', SUCCEED, 'found', 'abc'),
142 ('a.c', 'axc', SUCCEED, 'found', 'axc'),
143 ('a.*c', 'axyzc', SUCCEED, 'found', 'axyzc'),
146 ('a[bc]d', 'abd', SUCCEED, 'found', 'abd'),
148 ('a[b-d]e', 'ace', SUCCEED, 'found', 'ace'),
149 ('a[b-d]', 'aac', SUCCEED, 'found', 'ac'),
150 ('a[-b]', 'a-', SUCCEED, 'found', 'a-'),
151 ('a[\\-b]', 'a-', SUCCEED, 'found', 'a-'),
159 ('a]', 'a]', SUCCEED, 'found', 'a]'),
160 ('a[]]b', 'a]b', SUCCEED, 'found', 'a]b'),
161 ('a[\\]]b', 'a]b', SUCCEED, 'found', 'a]b'),
162 ('a[^bc]d', 'aed', SUCCEED, 'found', 'aed'),
164 ('a[^-b]c', 'adc', SUCCEED, 'found', 'adc'),
167 ('a[^]b]c', 'adc', SUCCEED, 'found', 'adc'),
168 ('\\ba\\b', 'a-', SUCCEED, '"-"', '-'),
169 ('\\ba\\b', '-a', SUCCEED, '"-"', '-'),
170 ('\\ba\\b', '-a-', SUCCEED, '"-"', '-'),
175 ('x\\B', 'xyz', SUCCEED, '"-"', '-'),
176 ('\\Bz', 'xyz', SUCCEED, '"-"', '-'),
184 ('\\By\\b', 'xy', SUCCEED, '"-"', '-'),
185 ('\\by\\B', 'yz', SUCCEED, '"-"', '-'),
186 ('\\By\\B', 'xyz', SUCCEED, '"-"', '-'),
187 ('ab|cd', 'abc', SUCCEED, 'found', 'ab'),
188 ('ab|cd', 'abcd', SUCCEED, 'found', 'ab'),
189 ('()ef', 'def', SUCCEED, 'found+"-"+g1', 'ef-'),
191 ('a\\(b', 'a(b', SUCCEED, 'found+"-"+g1', 'a(b-Error'),
192 ('a\\(*b', 'ab', SUCCEED, 'found', 'ab'),
193 ('a\\(*b', 'a((b', SUCCEED, 'found', 'a((b'),
194 ('a\\\\b', 'a\\b', SUCCEED, 'found', 'a\\b'),
195 ('((a))', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'a-a-a'),
196 ('(a)b(c)', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'abc-a-c'),
197 ('a+b+c', 'aabbabc', SUCCEED, 'found', 'abc'),
198 ('(a+|b)*', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
199 ('(a+|b)+', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
200 ('(a+|b)?', 'ab', SUCCEED, 'found+"-"+g1', 'a-a'),
202 ('[^ab]*', 'cde', SUCCEED, 'found', 'cde'),
204 ('a*', '', SUCCEED, 'found', ''),
205 ('a|b|c|d|e', 'e', SUCCEED, 'found', 'e'),
206 ('(a|b|c|d|e)f', 'ef', SUCCEED, 'found+"-"+g1', 'ef-e'),
207 ('abcd*efg', 'abcdefg', SUCCEED, 'found', 'abcdefg'),
208 ('ab*', 'xabyabbbz', SUCCEED, 'found', 'ab'),
209 ('ab*', 'xayabbbz', SUCCEED, 'found', 'a'),
210 ('(ab|cd)e', 'abcde', SUCCEED, 'found+"-"+g1', 'cde-cd'),
211 ('[abhgefdc]ij', 'hij', SUCCEED, 'found', 'hij'),
213 ('(abc|)ef', 'abcdef', SUCCEED, 'found+"-"+g1', 'ef-'),
214 ('(a|b)c*d', 'abcd', SUCCEED, 'found+"-"+g1', 'bcd-b'),
215 ('(ab|ab*)bc', 'abc', SUCCEED, 'found+"-"+g1', 'abc-a'),
216 ('a([bc]*)c*', 'abc', SUCCEED, 'found+"-"+g1', 'abc-bc'),
217 ('a([bc]*)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'),
218 ('a([bc]+)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'),
219 ('a([bc]*)(c+d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-b-cd'),
220 ('a[bcd]*dcdcde', 'adcdcde', SUCCEED, 'found', 'adcdcde'),
222 ('(ab|a)b*c', 'abc', SUCCEED, 'found+"-"+g1', 'abc-ab'),
223 ('((a)(b)c)(d)', 'abcd', SUCCEED, 'g1+"-"+g2+"-"+g3+"-"+g4', 'abc-a-b-d'),
224 ('[a-zA-Z_][a-zA-Z0-9_]*', 'alpha', SUCCEED, 'found', 'alpha'),
225 ('^a(bc+|b[eh])g|.h$', 'abh', SUCCEED, 'found+"-"+g1', 'bh-None'),
226 ('(bc+d$|ef*g.|h?i(j|k))', 'effgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'),
227 ('(bc+d$|ef*g.|h?i(j|k))', 'ij', SUCCEED, 'found+"-"+g1+"-"+g2', 'ij-ij-j'),
230 ('(bc+d$|ef*g.|h?i(j|k))', 'reffgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'),
231 ('(((((((((a)))))))))', 'a', SUCCEED, 'found', 'a'),
233 ('multiple words', 'multiple words, yeah', SUCCEED, 'found', 'multiple words'),
234 ('(.*)c(.*)', 'abcde', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcde-ab-de'),
235 ('\\((.*), (.*)\\)', '(a, b)', SUCCEED, 'g2+"-"+g1', 'b-a'),
237 ('a[-]?c', 'ac', SUCCEED, 'found', 'ac'),
238 ('(abc)\\1', 'abcabc', SUCCEED, 'g1', 'abc'),
239 ('([a-c]*)\\1', 'abcabc', SUCCEED, 'g1', 'abc'),
240 ('^(.+)?B', 'AB', SUCCEED, 'g1', 'A'),
241 ('(a+).\\1$', 'aaaaa', SUCCEED, 'found+"-"+g1', 'aaaaa-aa'),
243 ('(abc)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'),
244 ('([a-c]+)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'),
245 ('(a)\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'),
246 ('(a+)\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'),
247 ('(a+)+\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'),
248 ('(a).+\\1', 'aba', SUCCEED, 'found+"-"+g1', 'aba-a'),
249 ('(a)ba*\\1', 'aba', SUCCEED, 'found+"-"+g1', 'aba-a'),
250 ('(aa|a)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'),
251 ('(a|aa)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'),
252 ('(a+)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'),
253 ('([abc]*)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'),
254 ('(a)(b)c|ab', 'ab', SUCCEED, 'found+"-"+g1+"-"+g2', 'ab-None-None'),
255 ('(a)+x', 'aaax', SUCCEED, 'found+"-"+g1', 'aaax-a'),
256 ('([ac])+x', 'aacx', SUCCEED, 'found+"-"+g1', 'aacx-c'),
257 …('([^/]*/)*sub1/', 'd:msgs/tdir/sub1/trial/away.cpp', SUCCEED, 'found+"-"+g1', 'd:msgs/tdir/sub1/-…
258 …('([^.]*)\\.([^:]*):[T ]+(.*)', 'track1.title:TBlah blah blah', SUCCEED, 'found+"-"+g1+"-"+g2+"-"+…
259 ('([^N]*N)+', 'abNNxyzN', SUCCEED, 'found+"-"+g1', 'abNNxyzN-xyzN'),
260 ('([^N]*N)+', 'abNNxyz', SUCCEED, 'found+"-"+g1', 'abNN-N'),
261 ('([abc]*)x', 'abcx', SUCCEED, 'found+"-"+g1', 'abcx-abc'),
263 ('([xyz]*)x', 'abcx', SUCCEED, 'found+"-"+g1', 'x-'),
264 ('(a)+b|aac', 'aac', SUCCEED, 'found+"-"+g1', 'aac-None'),
269 ('(?P<id>aaa)a', 'aaaa', SUCCEED, 'found+"-"+id', 'aaaa-aaa'),
270 ('(?P<id>aa)(?P=id)', 'aaaa', SUCCEED, 'found+"-"+id', 'aaaa-aa'),
276 ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'),
277 ('\\141', 'a', SUCCEED, 'found', 'a'),
278 …('(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\\119', 'abcdefghijklk9', SUCCEED, 'found+"-"+g11', 'abcdefg…
282 ('abc', 'abc', SUCCEED, 'found', 'abc'),
286 ('abc', 'xabcy', SUCCEED, 'found', 'abc'),
287 ('abc', 'ababc', SUCCEED, 'found', 'abc'),
288 ('ab*c', 'abc', SUCCEED, 'found', 'abc'),
289 ('ab*bc', 'abc', SUCCEED, 'found', 'abc'),
290 ('ab*bc', 'abbc', SUCCEED, 'found', 'abbc'),
291 ('ab*bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
292 ('ab{0,}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
293 ('ab+bc', 'abbc', SUCCEED, 'found', 'abbc'),
297 ('ab+bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
298 ('ab{1,}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
299 ('ab{1,3}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
300 ('ab{3,4}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'),
302 ('ab?bc', 'abbc', SUCCEED, 'found', 'abbc'),
303 ('ab?bc', 'abc', SUCCEED, 'found', 'abc'),
304 ('ab{0,1}bc', 'abc', SUCCEED, 'found', 'abc'),
306 ('ab?c', 'abc', SUCCEED, 'found', 'abc'),
307 ('ab{0,1}c', 'abc', SUCCEED, 'found', 'abc'),
308 ('^abc$', 'abc', SUCCEED, 'found', 'abc'),
310 ('^abc', 'abcc', SUCCEED, 'found', 'abc'),
312 ('abc$', 'aabc', SUCCEED, 'found', 'abc'),
313 ('^', 'abc', SUCCEED, 'found', ''),
314 ('$', 'abc', SUCCEED, 'found', ''),
315 ('a.c', 'abc', SUCCEED, 'found', 'abc'),
316 ('a.c', 'axc', SUCCEED, 'found', 'axc'),
317 ('a.*c', 'axyzc', SUCCEED, 'found', 'axyzc'),
320 ('a[bc]d', 'abd', SUCCEED, 'found', 'abd'),
322 ('a[b-d]e', 'ace', SUCCEED, 'found', 'ace'),
323 ('a[b-d]', 'aac', SUCCEED, 'found', 'ac'),
324 ('a[-b]', 'a-', SUCCEED, 'found', 'a-'),
325 ('a[b-]', 'a-', SUCCEED, 'found', 'a-'),
329 ('a]', 'a]', SUCCEED, 'found', 'a]'),
330 ('a[]]b', 'a]b', SUCCEED, 'found', 'a]b'),
331 ('a[^bc]d', 'aed', SUCCEED, 'found', 'aed'),
333 ('a[^-b]c', 'adc', SUCCEED, 'found', 'adc'),
336 ('a[^]b]c', 'adc', SUCCEED, 'found', 'adc'),
337 ('ab|cd', 'abc', SUCCEED, 'found', 'ab'),
338 ('ab|cd', 'abcd', SUCCEED, 'found', 'ab'),
339 ('()ef', 'def', SUCCEED, 'found+"-"+g1', 'ef-'),
344 ('a\\(b', 'a(b', SUCCEED, 'found+"-"+g1', 'a(b-Error'),
345 ('a\\(*b', 'ab', SUCCEED, 'found', 'ab'),
346 ('a\\(*b', 'a((b', SUCCEED, 'found', 'a((b'),
347 ('a\\\\b', 'a\\b', SUCCEED, 'found', 'a\\b'),
350 ('((a))', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'a-a-a'),
351 ('(a)b(c)', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'abc-a-c'),
352 ('a+b+c', 'aabbabc', SUCCEED, 'found', 'abc'),
353 ('a{1,}b{1,}c', 'aabbabc', SUCCEED, 'found', 'abc'),
355 ('a.+?c', 'abcabc', SUCCEED, 'found', 'abc'),
356 ('(a+|b)*', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
357 ('(a+|b){0,}', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
358 ('(a+|b)+', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
359 ('(a+|b){1,}', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'),
360 ('(a+|b)?', 'ab', SUCCEED, 'found+"-"+g1', 'a-a'),
361 ('(a+|b){0,1}', 'ab', SUCCEED, 'found+"-"+g1', 'a-a'),
363 ('[^ab]*', 'cde', SUCCEED, 'found', 'cde'),
365 ('a*', '', SUCCEED, 'found', ''),
366 ('([abc])*d', 'abbbcd', SUCCEED, 'found+"-"+g1', 'abbbcd-c'),
367 ('([abc])*bcd', 'abcd', SUCCEED, 'found+"-"+g1', 'abcd-a'),
368 ('a|b|c|d|e', 'e', SUCCEED, 'found', 'e'),
369 ('(a|b|c|d|e)f', 'ef', SUCCEED, 'found+"-"+g1', 'ef-e'),
370 ('abcd*efg', 'abcdefg', SUCCEED, 'found', 'abcdefg'),
371 ('ab*', 'xabyabbbz', SUCCEED, 'found', 'ab'),
372 ('ab*', 'xayabbbz', SUCCEED, 'found', 'a'),
373 ('(ab|cd)e', 'abcde', SUCCEED, 'found+"-"+g1', 'cde-cd'),
374 ('[abhgefdc]ij', 'hij', SUCCEED, 'found', 'hij'),
376 ('(abc|)ef', 'abcdef', SUCCEED, 'found+"-"+g1', 'ef-'),
377 ('(a|b)c*d', 'abcd', SUCCEED, 'found+"-"+g1', 'bcd-b'),
378 ('(ab|ab*)bc', 'abc', SUCCEED, 'found+"-"+g1', 'abc-a'),
379 ('a([bc]*)c*', 'abc', SUCCEED, 'found+"-"+g1', 'abc-bc'),
380 ('a([bc]*)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'),
381 ('a([bc]+)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'),
382 ('a([bc]*)(c+d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-b-cd'),
383 ('a[bcd]*dcdcde', 'adcdcde', SUCCEED, 'found', 'adcdcde'),
385 ('(ab|a)b*c', 'abc', SUCCEED, 'found+"-"+g1', 'abc-ab'),
386 ('((a)(b)c)(d)', 'abcd', SUCCEED, 'g1+"-"+g2+"-"+g3+"-"+g4', 'abc-a-b-d'),
387 ('[a-zA-Z_][a-zA-Z0-9_]*', 'alpha', SUCCEED, 'found', 'alpha'),
388 ('^a(bc+|b[eh])g|.h$', 'abh', SUCCEED, 'found+"-"+g1', 'bh-None'),
389 ('(bc+d$|ef*g.|h?i(j|k))', 'effgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'),
390 ('(bc+d$|ef*g.|h?i(j|k))', 'ij', SUCCEED, 'found+"-"+g1+"-"+g2', 'ij-ij-j'),
393 ('(bc+d$|ef*g.|h?i(j|k))', 'reffgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'),
394 ('((((((((((a))))))))))', 'a', SUCCEED, 'g10', 'a'),
395 ('((((((((((a))))))))))\\10', 'aa', SUCCEED, 'found', 'aa'),
401 ('(((((((((a)))))))))', 'a', SUCCEED, 'found', 'a'),
403 ('multiple words', 'multiple words, yeah', SUCCEED, 'found', 'multiple words'),
404 ('(.*)c(.*)', 'abcde', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcde-ab-de'),
405 ('\\((.*), (.*)\\)', '(a, b)', SUCCEED, 'g2+"-"+g1', 'b-a'),
407 ('a[-]?c', 'ac', SUCCEED, 'found', 'ac'),
408 ('(abc)\\1', 'abcabc', SUCCEED, 'g1', 'abc'),
409 ('([a-c]*)\\1', 'abcabc', SUCCEED, 'g1', 'abc'),
410 ('(?i)abc', 'ABC', SUCCEED, 'found', 'ABC'),
414 ('(?i)abc', 'XABCY', SUCCEED, 'found', 'ABC'),
415 ('(?i)abc', 'ABABC', SUCCEED, 'found', 'ABC'),
416 ('(?i)ab*c', 'ABC', SUCCEED, 'found', 'ABC'),
417 ('(?i)ab*bc', 'ABC', SUCCEED, 'found', 'ABC'),
418 ('(?i)ab*bc', 'ABBC', SUCCEED, 'found', 'ABBC'),
419 ('(?i)ab*?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
420 ('(?i)ab{0,}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
421 ('(?i)ab+?bc', 'ABBC', SUCCEED, 'found', 'ABBC'),
425 ('(?i)ab+bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
426 ('(?i)ab{1,}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
427 ('(?i)ab{1,3}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
428 ('(?i)ab{3,4}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'),
430 ('(?i)ab??bc', 'ABBC', SUCCEED, 'found', 'ABBC'),
431 ('(?i)ab??bc', 'ABC', SUCCEED, 'found', 'ABC'),
432 ('(?i)ab{0,1}?bc', 'ABC', SUCCEED, 'found', 'ABC'),
434 ('(?i)ab??c', 'ABC', SUCCEED, 'found', 'ABC'),
435 ('(?i)ab{0,1}?c', 'ABC', SUCCEED, 'found', 'ABC'),
436 ('(?i)^abc$', 'ABC', SUCCEED, 'found', 'ABC'),
438 ('(?i)^abc', 'ABCC', SUCCEED, 'found', 'ABC'),
440 ('(?i)abc$', 'AABC', SUCCEED, 'found', 'ABC'),
441 ('(?i)^', 'ABC', SUCCEED, 'found', ''),
442 ('(?i)$', 'ABC', SUCCEED, 'found', ''),
443 ('(?i)a.c', 'ABC', SUCCEED, 'found', 'ABC'),
444 ('(?i)a.c', 'AXC', SUCCEED, 'found', 'AXC'),
445 ('(?i)a.*?c', 'AXYZC', SUCCEED, 'found', 'AXYZC'),
448 ('(?i)a[bc]d', 'ABD', SUCCEED, 'found', 'ABD'),
450 ('(?i)a[b-d]e', 'ACE', SUCCEED, 'found', 'ACE'),
451 ('(?i)a[b-d]', 'AAC', SUCCEED, 'found', 'AC'),
452 ('(?i)a[-b]', 'A-', SUCCEED, 'found', 'A-'),
453 ('(?i)a[b-]', 'A-', SUCCEED, 'found', 'A-'),
457 ('(?i)a]', 'A]', SUCCEED, 'found', 'A]'),
458 ('(?i)a[]]b', 'A]B', SUCCEED, 'found', 'A]B'),
459 ('(?i)a[^bc]d', 'AED', SUCCEED, 'found', 'AED'),
461 ('(?i)a[^-b]c', 'ADC', SUCCEED, 'found', 'ADC'),
464 ('(?i)a[^]b]c', 'ADC', SUCCEED, 'found', 'ADC'),
465 ('(?i)ab|cd', 'ABC', SUCCEED, 'found', 'AB'),
466 ('(?i)ab|cd', 'ABCD', SUCCEED, 'found', 'AB'),
467 ('(?i)()ef', 'DEF', SUCCEED, 'found+"-"+g1', 'EF-'),
472 ('(?i)a\\(b', 'A(B', SUCCEED, 'found+"-"+g1', 'A(B-Error'),
473 ('(?i)a\\(*b', 'AB', SUCCEED, 'found', 'AB'),
474 ('(?i)a\\(*b', 'A((B', SUCCEED, 'found', 'A((B'),
475 ('(?i)a\\\\b', 'A\\B', SUCCEED, 'found', 'A\\B'),
478 ('(?i)((a))', 'ABC', SUCCEED, 'found+"-"+g1+"-"+g2', 'A-A-A'),
479 ('(?i)(a)b(c)', 'ABC', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABC-A-C'),
480 ('(?i)a+b+c', 'AABBABC', SUCCEED, 'found', 'ABC'),
481 ('(?i)a{1,}b{1,}c', 'AABBABC', SUCCEED, 'found', 'ABC'),
483 ('(?i)a.+?c', 'ABCABC', SUCCEED, 'found', 'ABC'),
484 ('(?i)a.*?c', 'ABCABC', SUCCEED, 'found', 'ABC'),
485 ('(?i)a.{0,5}?c', 'ABCABC', SUCCEED, 'found', 'ABC'),
486 ('(?i)(a+|b)*', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'),
487 ('(?i)(a+|b){0,}', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'),
488 ('(?i)(a+|b)+', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'),
489 ('(?i)(a+|b){1,}', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'),
490 ('(?i)(a+|b)?', 'AB', SUCCEED, 'found+"-"+g1', 'A-A'),
491 ('(?i)(a+|b){0,1}', 'AB', SUCCEED, 'found+"-"+g1', 'A-A'),
492 ('(?i)(a+|b){0,1}?', 'AB', SUCCEED, 'found+"-"+g1', '-None'),
494 ('(?i)[^ab]*', 'CDE', SUCCEED, 'found', 'CDE'),
496 ('(?i)a*', '', SUCCEED, 'found', ''),
497 ('(?i)([abc])*d', 'ABBBCD', SUCCEED, 'found+"-"+g1', 'ABBBCD-C'),
498 ('(?i)([abc])*bcd', 'ABCD', SUCCEED, 'found+"-"+g1', 'ABCD-A'),
499 ('(?i)a|b|c|d|e', 'E', SUCCEED, 'found', 'E'),
500 ('(?i)(a|b|c|d|e)f', 'EF', SUCCEED, 'found+"-"+g1', 'EF-E'),
501 ('(?i)abcd*efg', 'ABCDEFG', SUCCEED, 'found', 'ABCDEFG'),
502 ('(?i)ab*', 'XABYABBBZ', SUCCEED, 'found', 'AB'),
503 ('(?i)ab*', 'XAYABBBZ', SUCCEED, 'found', 'A'),
504 ('(?i)(ab|cd)e', 'ABCDE', SUCCEED, 'found+"-"+g1', 'CDE-CD'),
505 ('(?i)[abhgefdc]ij', 'HIJ', SUCCEED, 'found', 'HIJ'),
507 ('(?i)(abc|)ef', 'ABCDEF', SUCCEED, 'found+"-"+g1', 'EF-'),
508 ('(?i)(a|b)c*d', 'ABCD', SUCCEED, 'found+"-"+g1', 'BCD-B'),
509 ('(?i)(ab|ab*)bc', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-A'),
510 ('(?i)a([bc]*)c*', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-BC'),
511 ('(?i)a([bc]*)(c*d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-BC-D'),
512 ('(?i)a([bc]+)(c*d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-BC-D'),
513 ('(?i)a([bc]*)(c+d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-B-CD'),
514 ('(?i)a[bcd]*dcdcde', 'ADCDCDE', SUCCEED, 'found', 'ADCDCDE'),
516 ('(?i)(ab|a)b*c', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-AB'),
517 ('(?i)((a)(b)c)(d)', 'ABCD', SUCCEED, 'g1+"-"+g2+"-"+g3+"-"+g4', 'ABC-A-B-D'),
518 ('(?i)[a-zA-Z_][a-zA-Z0-9_]*', 'ALPHA', SUCCEED, 'found', 'ALPHA'),
519 ('(?i)^a(bc+|b[eh])g|.h$', 'ABH', SUCCEED, 'found+"-"+g1', 'BH-None'),
520 ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'EFFGZ', SUCCEED, 'found+"-"+g1+"-"+g2', 'EFFGZ-EFFGZ-None'),
521 ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'IJ', SUCCEED, 'found+"-"+g1+"-"+g2', 'IJ-IJ-J'),
524 ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'REFFGZ', SUCCEED, 'found+"-"+g1+"-"+g2', 'EFFGZ-EFFGZ-None'),
525 ('(?i)((((((((((a))))))))))', 'A', SUCCEED, 'g10', 'A'),
526 ('(?i)((((((((((a))))))))))\\10', 'AA', SUCCEED, 'found', 'AA'),
529 ('(?i)(((((((((a)))))))))', 'A', SUCCEED, 'found', 'A'),
530 ('(?i)(?:(?:(?:(?:(?:(?:(?:(?:(?:(a))))))))))', 'A', SUCCEED, 'g1', 'A'),
531 ('(?i)(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))', 'C', SUCCEED, 'g1', 'C'),
533 ('(?i)multiple words', 'MULTIPLE WORDS, YEAH', SUCCEED, 'found', 'MULTIPLE WORDS'),
534 ('(?i)(.*)c(.*)', 'ABCDE', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCDE-AB-DE'),
535 ('(?i)\\((.*), (.*)\\)', '(A, B)', SUCCEED, 'g2+"-"+g1', 'B-A'),
539 ('(?i)a[-]?c', 'AC', SUCCEED, 'found', 'AC'),
540 ('(?i)(abc)\\1', 'ABCABC', SUCCEED, 'g1', 'ABC'),
541 ('(?i)([a-c]*)\\1', 'ABCABC', SUCCEED, 'g1', 'ABC'),
542 ('a(?!b).', 'abad', SUCCEED, 'found', 'ad'),
543 ('a(?=d).', 'abad', SUCCEED, 'found', 'ad'),
544 ('a(?=c|d).', 'abad', SUCCEED, 'found', 'ad'),
545 ('a(?:b|c|d)(.)', 'ace', SUCCEED, 'g1', 'e'),
546 ('a(?:b|c|d)*(.)', 'ace', SUCCEED, 'g1', 'e'),
547 ('a(?:b|c|d)+?(.)', 'ace', SUCCEED, 'g1', 'e'),
548 ('a(?:b|(c|e){1,2}?|d)+?(.)', 'ace', SUCCEED, 'g1 + g2', 'ce'),
549 ('^(.+)?B', 'AB', SUCCEED, 'g1', 'A'),
552 ('(?<!-):(.*?)(?<!-):', 'a:bc-:de:f', SUCCEED, 'g1', 'bc-:de' ),
554 ('(?<!\\\\):(.*?)(?<!\\\\):', 'a:bc\\:de:f', SUCCEED, 'g1', 'bc\\:de' ),
556 ("(?<!\\?)'(.*?)(?<!\\?)'", "a'bc?'de'f", SUCCEED, 'g1', "bc?'de" ),
561 ('w(?# comment 1)xy(?# comment 2)z', 'wxyz', SUCCEED, 'found', 'wxyz'),
566 ('(?i)w', 'W', SUCCEED, 'found', 'W'),
574 z""", 'wxyz', SUCCEED, 'found', 'wxyz'),
583 xyz""", SUCCEED, 'found', 'abc'),
587 123""", SUCCEED, 'found', 'abc'),
592 ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'),
596 ('\\w+', '--ab_cd0123--', SUCCEED, 'found', 'ab_cd0123'),
597 ('[\\w]+', '--ab_cd0123--', SUCCEED, 'found', 'ab_cd0123'),
598 ('\\D+', '1234abc5678', SUCCEED, 'found', 'abc'),
599 ('[\\D]+', '1234abc5678', SUCCEED, 'found', 'abc'),
600 ('[\\da-fA-F]+', '123abc', SUCCEED, 'found', '123abc'),
603 (r'([\s]*)([\S]*)([\s]*)', ' testing!1972', SUCCEED, 'g3+g2+g1', 'testing!1972 '),
604 (r'(\s*)(\S*)(\s*)', ' testing!1972', SUCCEED, 'g3+g2+g1', 'testing!1972 '),
606 (r'\xff', '\377', SUCCEED, 'found', chr(255)),
610 (r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', '\t\n\v\r\f\a'),
611 ('\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', '\t\n\v\r\f\a'),
612 …(r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', chr(9)+chr(10)+chr(11)+chr(13)+chr(12)+chr(7)),
613 (r'[\t][\n][\v][\r][\f][\b]', '\t\n\v\r\f\b', SUCCEED, 'found', '\t\n\v\r\f\b'),
619 (r'(([a-z]+):)?([a-z]+)$', 'smil', SUCCEED, 'g1+"-"+g2+"-"+g3', 'None-None-smil'),
623 (r'.*d', 'abc\nabd', SUCCEED, 'found', 'abd'),
626 (r'[\41]', '!', SUCCEED, 'found', '!'),
628 (r'(x?)?', 'x', SUCCEED, 'found', 'x'),
630 (r'(?x) foo ', 'foo', SUCCEED, 'found', 'foo'),
632 (r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'),
634 (r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'),
636 (r'.*?\S *:', 'xx:', SUCCEED, 'found', 'xx:'),
637 (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'),
638 (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'),
640 (r'(?ms).*?x\s*\Z(.*)','xx\nx\n', SUCCEED, 'g1', ''),
642 (r'(?i)M+', 'MMM', SUCCEED, 'found', 'MMM'),
643 (r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'),
644 (r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'),
645 (r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'),
649 (r'"(?:\\"|[^"])*?"', r'"\""', SUCCEED, 'found', r'"\""'),
657 (r'^((a)c)?(ab)$', 'ab', SUCCEED, 'g1+"-"+g2+"-"+g3', 'None-None-ab'),
659 ('^([ab]*?)(?=(b)?)c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'),
660 ('^([ab]*?)(?!(b))c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'),
661 ('^([ab]*?)(?<!(a))c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'),
667 (r'\b.\b', 'a', SUCCEED, 'found', 'a'),
668 (r'(?u)\b.\b', u, SUCCEED, 'found', u),
669 (r'(?u)\w', u, SUCCEED, 'found', u),