|
598 | 598 |
|
599 | 599 | (r'\xff', '\377', SUCCEED, 'found', chr(255)), |
600 | 600 | # new \x semantics |
601 | | - (r'\x00ff', '\377', FAIL, 'found', chr(255)), |
| 601 | + (r'\x00ff', '\377', FAIL), |
602 | 602 | # (r'\x00ff', '\377', SUCCEED, 'found', chr(255)), |
603 | 603 | (r'\t\n\v\r\f\a\g', '\t\n\v\r\f\ag', SUCCEED, 'found', '\t\n\v\r\f\ag'), |
604 | 604 | ('\t\n\v\r\f\a\g', '\t\n\v\r\f\ag', SUCCEED, 'found', '\t\n\v\r\f\ag'), |
|
610 | 610 |
|
611 | 611 | # xmllib problem |
612 | 612 | (r'(([a-z]+):)?([a-z]+)$', 'smil', SUCCEED, 'g1+"-"+g2+"-"+g3', 'None-None-smil'), |
613 | | - # bug 111869 (PRE/PCRE fails on this one, SRE doesn't) |
| 613 | + # bug 110866: reference to undefined group |
| 614 | + (r'((.)\1+)', '', SYNTAX_ERROR), |
| 615 | + # bug 111869: search (PRE/PCRE fails on this one, SRE doesn't) |
614 | 616 | (r'.*d', 'abc\nabd', SUCCEED, 'found', 'abd'), |
615 | 617 | # bug 112468: various expected syntax errors |
616 | | - ('(', '', SYNTAX_ERROR), |
617 | | - ('[\\41]', '!', SUCCEED, 'found', '!'), |
| 618 | + (r'(', '', SYNTAX_ERROR), |
| 619 | + (r'[\41]', '!', SUCCEED, 'found', '!'), |
618 | 620 | # bug 114033: nothing to repeat |
619 | 621 | (r'(x?)?', 'x', SUCCEED, 'found', 'x'), |
620 | 622 | # bug 115040: rescan if flags are modified inside pattern |
|
623 | 625 | (r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'), |
624 | 626 | # bug 116251: character class bug |
625 | 627 | (r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'), |
626 | | - |
| 628 | + # bug 123769+127259: non-greedy backtracking bug |
| 629 | + (r'.*?\S *:', 'xx:', SUCCEED, 'found', 'xx:'), |
| 630 | + (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'), |
| 631 | + (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'), |
| 632 | + # bug 127259: \Z shouldn't depend on multiline mode |
| 633 | + (r'(?ms).*?x\s*\Z(.*)','xx\nx\n', SUCCEED, 'g1', ''), |
| 634 | + # bug 128899: uppercase literals under the ignorecase flag |
| 635 | + (r'(?i)M+', 'MMM', SUCCEED, 'found', 'MMM'), |
| 636 | + (r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'), |
| 637 | + (r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'), |
| 638 | + (r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'), |
627 | 639 | ] |
0 commit comments