Issue 682432: lookbehind tests - Python tracker (original) (raw)
there were none in re_test.py (just in case upload does not work)
*** re_tests.py Fri Feb 7 17:46:50 2003 --- new_test/re_tests.py Fri Feb 7 17:49:03 2003
*** 548,553 **** --- 548,560 ---- ('a(?:b|(c|e){1,2}?|d)+?(.)', 'ace', SUCCEED, 'g1 + g2', 'ce'), ('^(.+)?B', 'AB', SUCCEED, 'g1', 'A'),
# lookbehind: split by : but not if it is escaped by -.
('(?<!-):(.*?)(?<!-):', 'a:bc-:de:f', SUCCEED, 'g1', 'bc-:de' ),
# escaping with \ as we know it
('(?<!\\\):(.*?)(?<!\\\):', 'a:bc\\:de:f', SUCCEED, 'g1', 'bc\\:de' ),
# terminating with ' and escaping with ? as in edifact
("(?<!\\?)'(.*?)(?<!\\?)'", "a'bc?'de'f", SUCCEED, 'g1', "bc?'de" ),
# Comments using the (?#...) syntax ('w(?# comment', 'w', SYNTAX_ERROR),