diff -U3 /tmp/cirrus-ci-build/src/test/modules/test_regex/expected/test_regex.out /tmp/cirrus-ci-build/build/testrun/test_regex/regress/results/test_regex.out --- /tmp/cirrus-ci-build/src/test/modules/test_regex/expected/test_regex.out 2024-03-27 22:35:14.261733000 +0000 +++ /tmp/cirrus-ci-build/build/testrun/test_regex/regress/results/test_regex.out 2024-03-27 22:53:47.834667000 +0000 @@ -13,10 +13,12 @@ -- list [catch {regexp (*) ign} msg] $msg -- } {1 {couldn't compile regular expression pattern: quantifier operand invalid}} select * from test_regex('(*)', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- doing 1 "basic sanity checks" -- expectMatch 1.1 & abc abc abc select * from test_regex('abc', 'abc', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -24,6 +26,7 @@ (2 rows) select * from test_regex('abc', 'abc', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -32,12 +35,14 @@ -- expectNomatch 1.2 & abc def select * from test_regex('abc', 'def', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('abc', 'def', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -45,6 +50,7 @@ -- expectMatch 1.3 & abc xyabxabce abc select * from test_regex('abc', 'xyabxabce', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -52,6 +58,7 @@ (2 rows) select * from test_regex('abc', 'xyabxabce', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -61,22 +68,28 @@ -- doing 2 "invalid option combinations" -- expectError 2.1 qe a INVARG select * from test_regex('a', '', 'qe'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid argument to regex function -- expectError 2.2 qa a INVARG select * from test_regex('a', '', 'qa'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid argument to regex function -- expectError 2.3 qx a INVARG select * from test_regex('a', '', 'qx'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid argument to regex function -- expectError 2.4 qn a INVARG select * from test_regex('a', '', 'qn'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid argument to regex function -- expectError 2.5 ba a INVARG select * from test_regex('a', '', 'ba'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid argument to regex function -- doing 3 "basic syntax" -- expectIndices 3.1 &NS "" a {0 -1} select * from test_regex('', 'a', '0NS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UUNSPEC,REG_UEMPTYMATCH} @@ -84,6 +97,7 @@ (2 rows) select * from test_regex('', 'a', '0NSb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UUNSPEC,REG_UEMPTYMATCH} @@ -92,6 +106,7 @@ -- expectMatch 3.2 NS a| a a select * from test_regex('a|', 'a', 'NS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UUNSPEC,REG_UEMPTYMATCH} @@ -100,6 +115,7 @@ -- expectMatch 3.3 - a|b a a select * from test_regex('a|b', 'a', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -108,6 +124,7 @@ -- expectMatch 3.4 - a|b b b select * from test_regex('a|b', 'b', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -116,6 +133,7 @@ -- expectMatch 3.5 NS a||b b b select * from test_regex('a||b', 'b', 'NS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UUNSPEC,REG_UEMPTYMATCH} @@ -124,6 +142,7 @@ -- expectMatch 3.6 & ab ab ab select * from test_regex('ab', 'ab', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -131,6 +150,7 @@ (2 rows) select * from test_regex('ab', 'ab', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -140,6 +160,7 @@ -- doing 4 "parentheses" -- expectMatch 4.1 - (a)e ae ae a select * from test_regex('(a)e', 'ae', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {1} @@ -148,6 +169,7 @@ -- expectMatch 4.2 oPR (.)\1e abeaae aae {} select * from test_regex('(.)\1e', 'abeaae', 'oPR'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------------------------- {1,REG_UBACKREF,REG_UNONPOSIX} @@ -156,6 +178,7 @@ -- expectMatch 4.3 b {\(a\)b} ab ab a select * from test_regex('\(a\)b', 'ab', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {1} @@ -164,6 +187,7 @@ -- expectMatch 4.4 - a((b)c) abc abc bc b select * from test_regex('a((b)c)', 'abc', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {2} @@ -172,6 +196,7 @@ -- expectMatch 4.5 - a(b)(c) abc abc b c select * from test_regex('a(b)(c)', 'abc', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {2} @@ -180,14 +205,17 @@ -- expectError 4.6 - a(b EPAREN select * from test_regex('a(b', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: parentheses () not balanced -- expectError 4.7 b {a\(b} EPAREN select * from test_regex('a\(b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: parentheses () not balanced -- # sigh, we blew it on the specs here... someday this will be fixed in POSIX, -- # but meanwhile, it's fixed in AREs -- expectMatch 4.8 eU a)b a)b a)b select * from test_regex('a)b', 'a)b', 'eU'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UPBOTCH} @@ -196,12 +224,15 @@ -- expectError 4.9 - a)b EPAREN select * from test_regex('a)b', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: parentheses () not balanced -- expectError 4.10 b {a\)b} EPAREN select * from test_regex('a\)b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: parentheses () not balanced -- expectMatch 4.11 P a(?:b)c abc abc select * from test_regex('a(?:b)c', 'abc', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -210,9 +241,11 @@ -- expectError 4.12 e a(?:b)c BADRPT select * from test_regex('a(?:b)c', '', 'e'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectIndices 4.13 S a()b ab {0 1} {1 0} select * from test_regex('a()b', 'ab', '0S'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {1,REG_UUNSPEC} @@ -221,6 +254,7 @@ -- expectMatch 4.14 SP a(?:)b ab ab select * from test_regex('a(?:)b', 'ab', 'SP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_UUNSPEC} @@ -229,6 +263,7 @@ -- expectIndices 4.15 S a(|b)c ac {0 1} {1 0} select * from test_regex('a(|b)c', 'ac', '0S'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {1,REG_UUNSPEC} @@ -237,6 +272,7 @@ -- expectMatch 4.16 S a(b|)c abc abc b select * from test_regex('a(b|)c', 'abc', 'S'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {1,REG_UUNSPEC} @@ -247,6 +283,7 @@ -- # general case of brackets done later -- expectMatch 5.1 & a.b axb axb select * from test_regex('a.b', 'axb', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -254,6 +291,7 @@ (2 rows) select * from test_regex('a.b', 'axb', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -262,12 +300,14 @@ -- expectNomatch 5.2 &n "a.b" "a\nb" select * from test_regex('a.b', E'a\nb', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('a.b', E'a\nb', 'nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -275,6 +315,7 @@ -- expectMatch 5.3 & {a[bc]d} abd abd select * from test_regex('a[bc]d', 'abd', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -282,6 +323,7 @@ (2 rows) select * from test_regex('a[bc]d', 'abd', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -290,6 +332,7 @@ -- expectMatch 5.4 & {a[bc]d} acd acd select * from test_regex('a[bc]d', 'acd', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -297,6 +340,7 @@ (2 rows) select * from test_regex('a[bc]d', 'acd', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -305,12 +349,14 @@ -- expectNomatch 5.5 & {a[bc]d} aed select * from test_regex('a[bc]d', 'aed', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('a[bc]d', 'aed', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -318,12 +364,14 @@ -- expectNomatch 5.6 & {a[^bc]d} abd select * from test_regex('a[^bc]d', 'abd', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('a[^bc]d', 'abd', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -331,6 +379,7 @@ -- expectMatch 5.7 & {a[^bc]d} aed aed select * from test_regex('a[^bc]d', 'aed', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -338,6 +387,7 @@ (2 rows) select * from test_regex('a[^bc]d', 'aed', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -346,12 +396,14 @@ -- expectNomatch 5.8 &p "a\[^bc]d" "a\nd" select * from test_regex('a[^bc]d', E'a\nd', 'p'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('a[^bc]d', E'a\nd', 'pb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -361,9 +413,11 @@ -- # plus odds and ends -- expectError 6.1 - * BADRPT select * from test_regex('*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectMatch 6.2 b * * * select * from test_regex('*', '*', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -372,6 +426,7 @@ -- expectMatch 6.3 b {\(*\)} * * * select * from test_regex('\(*\)', '*', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {1} @@ -380,9 +435,11 @@ -- expectError 6.4 - (*) BADRPT select * from test_regex('(*)', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectMatch 6.5 b ^* * * select * from test_regex('^*', '*', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -391,15 +448,18 @@ -- expectError 6.6 - ^* BADRPT select * from test_regex('^*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectNomatch 6.7 & ^b ^b select * from test_regex('^b', '^b', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('^b', '^b', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -407,6 +467,7 @@ -- expectMatch 6.8 b x^ x^ x^ select * from test_regex('x^', 'x^', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -415,6 +476,7 @@ -- expectNomatch 6.9 I x^ x select * from test_regex('x^', 'x', 'I'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UIMPOSSIBLE} @@ -422,6 +484,7 @@ -- expectMatch 6.10 n "\n^" "x\nb" "\n" select * from test_regex(E'\n^', E'x\nb', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -431,6 +494,7 @@ -- expectNomatch 6.11 bS {\(^b\)} ^b select * from test_regex('\(^b\)', '^b', 'bS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {1,REG_UUNSPEC} @@ -438,6 +502,7 @@ -- expectMatch 6.12 - (^b) b b b select * from test_regex('(^b)', 'b', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {1} @@ -446,6 +511,7 @@ -- expectMatch 6.13 & {x$} x x select * from test_regex('x$', 'x', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -453,6 +519,7 @@ (2 rows) select * from test_regex('x$', 'x', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -461,6 +528,7 @@ -- expectMatch 6.14 bS {\(x$\)} x x x select * from test_regex('\(x$\)', 'x', 'bS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {1,REG_UUNSPEC} @@ -469,6 +537,7 @@ -- expectMatch 6.15 - {(x$)} x x x select * from test_regex('(x$)', 'x', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {1} @@ -477,6 +546,7 @@ -- expectMatch 6.16 b {x$y} "x\$y" "x\$y" select * from test_regex('x$y', 'x$y', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -485,6 +555,7 @@ -- expectNomatch 6.17 I {x$y} xy select * from test_regex('x$y', 'xy', 'I'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UIMPOSSIBLE} @@ -492,6 +563,7 @@ -- expectMatch 6.18 n "x\$\n" "x\n" "x\n" select * from test_regex(E'x$\n', E'x\n', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -501,17 +573,21 @@ -- expectError 6.19 - + BADRPT select * from test_regex('+', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 6.20 - ? BADRPT select * from test_regex('?', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- These two are not yet incorporated in Tcl, cf -- https://core.tcl-lang.org/tcl/tktview?name=5ea71fdcd3291c38 -- expectError 6.21 - {x(\w)(?=(\1))} ESUBREG select * from test_regex('x(\w)(?=(\1))', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid backreference number -- expectMatch 6.22 HP {x(?=((foo)))} xfoo x select * from test_regex('x(?=((foo)))', 'xfoo', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {0,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -521,6 +597,7 @@ -- doing 7 "simple quantifiers" -- expectMatch 7.1 &N a* aa aa select * from test_regex('a*', 'aa', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -528,6 +605,7 @@ (2 rows) select * from test_regex('a*', 'aa', 'Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -536,6 +614,7 @@ -- expectIndices 7.2 &N a* b {0 -1} select * from test_regex('a*', 'b', '0N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -543,6 +622,7 @@ (2 rows) select * from test_regex('a*', 'b', '0Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -551,6 +631,7 @@ -- expectMatch 7.3 - a+ aa aa select * from test_regex('a+', 'aa', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -559,6 +640,7 @@ -- expectMatch 7.4 - a?b ab ab select * from test_regex('a?b', 'ab', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -567,6 +649,7 @@ -- expectMatch 7.5 - a?b b b select * from test_regex('a?b', 'b', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -575,9 +658,11 @@ -- expectError 7.6 - ** BADRPT select * from test_regex('**', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectMatch 7.7 bN ** *** *** select * from test_regex('**', '***', 'bN'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -586,36 +671,48 @@ -- expectError 7.8 & a** BADRPT select * from test_regex('a**', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid select * from test_regex('a**', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.9 & a**b BADRPT select * from test_regex('a**b', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid select * from test_regex('a**b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.10 & *** BADRPT select * from test_regex('***', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid select * from test_regex('***', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.11 - a++ BADRPT select * from test_regex('a++', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.12 - a?+ BADRPT select * from test_regex('a?+', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.13 - a?* BADRPT select * from test_regex('a?*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.14 - a+* BADRPT select * from test_regex('a+*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 7.15 - a*+ BADRPT select * from test_regex('a*+', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- tests for ancient brenext() bugs; not currently in Tcl select * from test_regex('.*b', 'aaabbb', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -623,6 +720,7 @@ (2 rows) select * from test_regex('.\{1,10\}', 'abcdef', 'bQ'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -632,6 +730,7 @@ -- doing 8 "braces" -- expectMatch 8.1 NQ "a{0,1}" "" "" select * from test_regex('a{0,1}', '', 'NQ'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UBOUNDS,REG_UEMPTYMATCH} @@ -640,6 +739,7 @@ -- expectMatch 8.2 NQ "a{0,1}" ac a select * from test_regex('a{0,1}', 'ac', 'NQ'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {0,REG_UBOUNDS,REG_UEMPTYMATCH} @@ -648,24 +748,31 @@ -- expectError 8.3 - "a{1,0}" BADBR select * from test_regex('a{1,0}', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectError 8.4 - "a{1,2,3}" BADBR select * from test_regex('a{1,2,3}', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectError 8.5 - "a{257}" BADBR select * from test_regex('a{257}', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectError 8.6 - "a{1000}" BADBR select * from test_regex('a{1000}', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectError 8.7 - "a{1" EBRACE select * from test_regex('a{1', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: braces {} not balanced -- expectError 8.8 - "a{1n}" BADBR select * from test_regex('a{1n}', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectMatch 8.9 BS "a{b" "a\{b" "a\{b" select * from test_regex('a{b', 'a{b', 'BS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------- {0,REG_UBRACES,REG_UUNSPEC} @@ -674,6 +781,7 @@ -- expectMatch 8.10 BS "a{" "a\{" "a\{" select * from test_regex('a{', 'a{', 'BS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------- {0,REG_UBRACES,REG_UUNSPEC} @@ -682,6 +790,7 @@ -- expectMatch 8.11 bQ "a\\{0,1\\}b" cb b select * from test_regex('a\{0,1\}b', 'cb', 'bQ'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -690,12 +799,15 @@ -- expectError 8.12 b "a\\{0,1" EBRACE select * from test_regex('a\{0,1', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: braces {} not balanced -- expectError 8.13 - "a{0,1\\" BADBR select * from test_regex('a{0,1\', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid repetition count(s) -- expectMatch 8.14 Q "a{0}b" ab b select * from test_regex('a{0}b', 'ab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -704,6 +816,7 @@ -- expectMatch 8.15 Q "a{0,0}b" ab b select * from test_regex('a{0,0}b', 'ab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -712,6 +825,7 @@ -- expectMatch 8.16 Q "a{0,1}b" ab ab select * from test_regex('a{0,1}b', 'ab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -720,6 +834,7 @@ -- expectMatch 8.17 Q "a{0,2}b" b b select * from test_regex('a{0,2}b', 'b', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -728,6 +843,7 @@ -- expectMatch 8.18 Q "a{0,2}b" aab aab select * from test_regex('a{0,2}b', 'aab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -736,6 +852,7 @@ -- expectMatch 8.19 Q "a{0,}b" aab aab select * from test_regex('a{0,}b', 'aab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -744,6 +861,7 @@ -- expectMatch 8.20 Q "a{1,1}b" aab ab select * from test_regex('a{1,1}b', 'aab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -752,6 +870,7 @@ -- expectMatch 8.21 Q "a{1,3}b" aaaab aaab select * from test_regex('a{1,3}b', 'aaaab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -760,6 +879,7 @@ -- expectNomatch 8.22 Q "a{1,3}b" b select * from test_regex('a{1,3}b', 'b', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -767,6 +887,7 @@ -- expectMatch 8.23 Q "a{1,}b" aab aab select * from test_regex('a{1,}b', 'aab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -775,6 +896,7 @@ -- expectNomatch 8.24 Q "a{2,3}b" ab select * from test_regex('a{2,3}b', 'ab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -782,6 +904,7 @@ -- expectMatch 8.25 Q "a{2,3}b" aaaab aaab select * from test_regex('a{2,3}b', 'aaaab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -790,6 +913,7 @@ -- expectNomatch 8.26 Q "a{2,}b" ab select * from test_regex('a{2,}b', 'ab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -797,6 +921,7 @@ -- expectMatch 8.27 Q "a{2,}b" aaaab aaaab select * from test_regex('a{2,}b', 'aaaab', 'Q'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UBOUNDS} @@ -806,6 +931,7 @@ -- doing 9 "brackets" -- expectMatch 9.1 & {a[bc]} ac ac select * from test_regex('a[bc]', 'ac', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -813,6 +939,7 @@ (2 rows) select * from test_regex('a[bc]', 'ac', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -821,6 +948,7 @@ -- expectMatch 9.2 & {a[-]} a- a- select * from test_regex('a[-]', 'a-', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -828,6 +956,7 @@ (2 rows) select * from test_regex('a[-]', 'a-', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -836,6 +965,7 @@ -- expectMatch 9.3 & {a[[.-.]]} a- a- select * from test_regex('a[[.-.]]', 'a-', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -843,6 +973,7 @@ (2 rows) select * from test_regex('a[[.-.]]', 'a-', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -851,6 +982,7 @@ -- expectMatch 9.4 &L {a[[.zero.]]} a0 a0 select * from test_regex('a[[.zero.]]', 'a0', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -858,6 +990,7 @@ (2 rows) select * from test_regex('a[[.zero.]]', 'a0', 'Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -866,6 +999,7 @@ -- expectMatch 9.5 &LM {a[[.zero.]-9]} a2 a2 select * from test_regex('a[[.zero.]-9]', 'a2', 'LM'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------- {0,REG_UUNPORT,REG_ULOCALE} @@ -873,6 +1007,7 @@ (2 rows) select * from test_regex('a[[.zero.]-9]', 'a2', 'LMb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------- {0,REG_UUNPORT,REG_ULOCALE} @@ -881,6 +1016,7 @@ -- expectMatch 9.6 &M {a[0-[.9.]]} a2 a2 select * from test_regex('a[0-[.9.]]', 'a2', 'M'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -888,6 +1024,7 @@ (2 rows) select * from test_regex('a[0-[.9.]]', 'a2', 'Mb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -896,6 +1033,7 @@ -- expectMatch 9.7 &+L {a[[=x=]]} ax ax select * from test_regex('a[[=x=]]', 'ax', '+L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -903,6 +1041,7 @@ (2 rows) select * from test_regex('a[[=x=]]', 'ax', '+Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -911,6 +1050,7 @@ -- expectMatch 9.8 &+L {a[[=x=]]} ay ay select * from test_regex('a[[=x=]]', 'ay', '+L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -918,6 +1058,7 @@ (2 rows) select * from test_regex('a[[=x=]]', 'ay', '+Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -926,12 +1067,14 @@ -- expectNomatch 9.9 &+L {a[[=x=]]} az select * from test_regex('a[[=x=]]', 'az', '+L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} (1 row) select * from test_regex('a[[=x=]]', 'az', '+Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -939,6 +1082,7 @@ -- expectMatch 9.9b &iL {a[[=Y=]]} ay ay select * from test_regex('a[[=Y=]]', 'ay', 'iL'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -946,6 +1090,7 @@ (2 rows) select * from test_regex('a[[=Y=]]', 'ay', 'iLb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -954,12 +1099,14 @@ -- expectNomatch 9.9c &L {a[[=Y=]]} ay select * from test_regex('a[[=Y=]]', 'ay', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} (1 row) select * from test_regex('a[[=Y=]]', 'ay', 'Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -967,11 +1114,14 @@ -- expectError 9.10 & {a[0-[=x=]]} ERANGE select * from test_regex('a[0-[=x=]]', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('a[0-[=x=]]', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range -- expectMatch 9.11 &L {a[[:digit:]]} a0 a0 select * from test_regex('a[[:digit:]]', 'a0', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -979,6 +1129,7 @@ (2 rows) select * from test_regex('a[[:digit:]]', 'a0', 'Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -987,17 +1138,21 @@ -- expectError 9.12 & {a[[:woopsie:]]} ECTYPE select * from test_regex('a[[:woopsie:]]', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character class select * from test_regex('a[[:woopsie:]]', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character class -- expectNomatch 9.13 &L {a[[:digit:]]} ab select * from test_regex('a[[:digit:]]', 'ab', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} (1 row) select * from test_regex('a[[:digit:]]', 'ab', 'Lb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -1005,11 +1160,14 @@ -- expectError 9.14 & {a[0-[:digit:]]} ERANGE select * from test_regex('a[0-[:digit:]]', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('a[0-[:digit:]]', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range -- expectMatch 9.15 &LP {[[:<:]]a} a a select * from test_regex('[[:<:]]a', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1017,6 +1175,7 @@ (2 rows) select * from test_regex('[[:<:]]a', 'a', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1025,6 +1184,7 @@ -- expectMatch 9.16 &LP {a[[:>:]]} a a select * from test_regex('a[[:>:]]', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1032,6 +1192,7 @@ (2 rows) select * from test_regex('a[[:>:]]', 'a', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1040,56 +1201,77 @@ -- expectError 9.17 & {a[[..]]b} ECOLLATE select * from test_regex('a[[..]]b', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid collating element select * from test_regex('a[[..]]b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid collating element -- expectError 9.18 & {a[[==]]b} ECOLLATE select * from test_regex('a[[==]]b', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid collating element select * from test_regex('a[[==]]b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid collating element -- expectError 9.19 & {a[[::]]b} ECTYPE select * from test_regex('a[[::]]b', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character class select * from test_regex('a[[::]]b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character class -- expectError 9.20 & {a[[.a} EBRACK select * from test_regex('a[[.a', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[[.a', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.21 & {a[[=a} EBRACK select * from test_regex('a[[=a', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[[=a', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.22 & {a[[:a} EBRACK select * from test_regex('a[[:a', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[[:a', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.23 & {a[} EBRACK select * from test_regex('a[', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.24 & {a[b} EBRACK select * from test_regex('a[b', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[b', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.25 & {a[b-} EBRACK select * from test_regex('a[b-', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[b-', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectError 9.26 & {a[b-c} EBRACK select * from test_regex('a[b-c', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced select * from test_regex('a[b-c', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: brackets [] not balanced -- expectMatch 9.27 &M {a[b-c]} ab ab select * from test_regex('a[b-c]', 'ab', 'M'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1097,6 +1279,7 @@ (2 rows) select * from test_regex('a[b-c]', 'ab', 'Mb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1105,6 +1288,7 @@ -- expectMatch 9.28 & {a[b-b]} ab ab select * from test_regex('a[b-b]', 'ab', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1112,6 +1296,7 @@ (2 rows) select * from test_regex('a[b-b]', 'ab', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1120,6 +1305,7 @@ -- expectMatch 9.29 &M {a[1-2]} a2 a2 select * from test_regex('a[1-2]', 'a2', 'M'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1127,6 +1313,7 @@ (2 rows) select * from test_regex('a[1-2]', 'a2', 'Mb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1135,16 +1322,21 @@ -- expectError 9.30 & {a[c-b]} ERANGE select * from test_regex('a[c-b]', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('a[c-b]', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range -- expectError 9.31 & {a[a-b-c]} ERANGE select * from test_regex('a[a-b-c]', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('a[a-b-c]', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range -- expectMatch 9.32 &M {a[--?]b} a?b a?b select * from test_regex('a[--?]b', 'a?b', 'M'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1152,6 +1344,7 @@ (2 rows) select * from test_regex('a[--?]b', 'a?b', 'Mb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_UUNPORT} @@ -1160,6 +1353,7 @@ -- expectMatch 9.33 & {a[---]b} a-b a-b select * from test_regex('a[---]b', 'a-b', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1167,6 +1361,7 @@ (2 rows) select * from test_regex('a[---]b', 'a-b', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1175,6 +1370,7 @@ -- expectMatch 9.34 & {a[]b]c} a]c a]c select * from test_regex('a[]b]c', 'a]c', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1182,6 +1378,7 @@ (2 rows) select * from test_regex('a[]b]c', 'a]c', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1190,6 +1387,7 @@ -- expectMatch 9.35 EP {a[\]]b} a]b a]b select * from test_regex('a[\]]b', 'a]b', 'EP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------- {0,REG_UBBS,REG_UNONPOSIX} @@ -1198,6 +1396,7 @@ -- expectNomatch 9.36 bE {a[\]]b} a]b select * from test_regex('a[\]]b', 'a]b', 'bE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {0,REG_UBBS} @@ -1205,6 +1404,7 @@ -- expectMatch 9.37 bE {a[\]]b} "a\\]b" "a\\]b" select * from test_regex('a[\]]b', 'a\]b', 'bE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {0,REG_UBBS} @@ -1213,6 +1413,7 @@ -- expectMatch 9.38 eE {a[\]]b} "a\\]b" "a\\]b" select * from test_regex('a[\]]b', 'a\]b', 'eE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {0,REG_UBBS} @@ -1221,6 +1422,7 @@ -- expectMatch 9.39 EP {a[\\]b} "a\\b" "a\\b" select * from test_regex('a[\\]b', 'a\b', 'EP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------- {0,REG_UBBS,REG_UNONPOSIX} @@ -1229,6 +1431,7 @@ -- expectMatch 9.40 eE {a[\\]b} "a\\b" "a\\b" select * from test_regex('a[\\]b', 'a\b', 'eE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {0,REG_UBBS} @@ -1237,6 +1440,7 @@ -- expectMatch 9.41 bE {a[\\]b} "a\\b" "a\\b" select * from test_regex('a[\\]b', 'a\b', 'bE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {0,REG_UBBS} @@ -1245,9 +1449,11 @@ -- expectError 9.42 - {a[\Z]b} EESCAPE select * from test_regex('a[\Z]b', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- expectMatch 9.43 & {a[[b]c} "a\[c" "a\[c" select * from test_regex('a[[b]c', 'a[c', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1255,6 +1461,7 @@ (2 rows) select * from test_regex('a[[b]c', 'a[c', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1267,6 +1474,7 @@ -- doing 10 "anchors and newlines" -- expectMatch 10.1 & ^a a a select * from test_regex('^a', 'a', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1274,6 +1482,7 @@ (2 rows) select * from test_regex('^a', 'a', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1282,12 +1491,14 @@ -- expectNomatch 10.2 &^ ^a a select * from test_regex('^a', 'a', '^'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('^a', 'a', '^b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1295,6 +1506,7 @@ -- expectIndices 10.3 &N ^ a {0 -1} select * from test_regex('^', 'a', '0N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1302,6 +1514,7 @@ (2 rows) select * from test_regex('^', 'a', '0Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1310,6 +1523,7 @@ -- expectIndices 10.4 & {a$} aba {2 2} select * from test_regex('a$', 'aba', '0'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1317,6 +1531,7 @@ (2 rows) select * from test_regex('a$', 'aba', '0b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1325,12 +1540,14 @@ -- expectNomatch 10.5 {&$} {a$} a select * from test_regex('a$', 'a', '$'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} (1 row) select * from test_regex('a$', 'a', '$b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1338,6 +1555,7 @@ -- expectIndices 10.6 &N {$} ab {2 1} select * from test_regex('$', 'ab', '0N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1345,6 +1563,7 @@ (2 rows) select * from test_regex('$', 'ab', '0Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1353,6 +1572,7 @@ -- expectMatch 10.7 &n ^a a a select * from test_regex('^a', 'a', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1360,6 +1580,7 @@ (2 rows) select * from test_regex('^a', 'a', 'nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1368,6 +1589,7 @@ -- expectMatch 10.8 &n "^a" "b\na" "a" select * from test_regex('^a', E'b\na', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1375,6 +1597,7 @@ (2 rows) select * from test_regex('^a', E'b\na', 'nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1383,6 +1606,7 @@ -- expectIndices 10.9 &w "^a" "a\na" {0 0} select * from test_regex('^a', E'a\na', '0w'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1390,6 +1614,7 @@ (2 rows) select * from test_regex('^a', E'a\na', '0wb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1398,6 +1623,7 @@ -- expectIndices 10.10 &n^ "^a" "a\na" {2 2} select * from test_regex('^a', E'a\na', '0n^'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1405,6 +1631,7 @@ (2 rows) select * from test_regex('^a', E'a\na', '0n^b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1413,6 +1640,7 @@ -- expectMatch 10.11 &n {a$} a a select * from test_regex('a$', 'a', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1420,6 +1648,7 @@ (2 rows) select * from test_regex('a$', 'a', 'nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1428,6 +1657,7 @@ -- expectMatch 10.12 &n "a\$" "a\nb" "a" select * from test_regex('a$', E'a\nb', 'n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1435,6 +1665,7 @@ (2 rows) select * from test_regex('a$', E'a\nb', 'nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1443,6 +1674,7 @@ -- expectIndices 10.13 &n "a\$" "a\na" {0 0} select * from test_regex('a$', E'a\na', '0n'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1450,6 +1682,7 @@ (2 rows) select * from test_regex('a$', E'a\na', '0nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1458,6 +1691,7 @@ -- expectIndices 10.14 N ^^ a {0 -1} select * from test_regex('^^', 'a', '0N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1466,6 +1700,7 @@ -- expectMatch 10.15 b ^^ ^ ^ select * from test_regex('^^', '^', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1474,6 +1709,7 @@ -- expectIndices 10.16 N {$$} a {1 0} select * from test_regex('$$', 'a', '0N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1482,6 +1718,7 @@ -- expectMatch 10.17 b {$$} "\$" "\$" select * from test_regex('$$', '$', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1490,6 +1727,7 @@ -- expectMatch 10.18 &N {^$} "" "" select * from test_regex('^$', '', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1497,6 +1735,7 @@ (2 rows) select * from test_regex('^$', '', 'Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1505,12 +1744,14 @@ -- expectNomatch 10.19 &N {^$} a select * from test_regex('^$', 'a', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} (1 row) select * from test_regex('^$', 'a', 'Nb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1518,6 +1759,7 @@ -- expectIndices 10.20 &nN "^\$" a\n\nb {2 1} select * from test_regex('^$', E'a\n\nb', '0nN'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1525,6 +1767,7 @@ (2 rows) select * from test_regex('^$', E'a\n\nb', '0nNb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1533,6 +1776,7 @@ -- expectMatch 10.21 N {$^} "" "" select * from test_regex('$^', '', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -1541,6 +1785,7 @@ -- expectMatch 10.22 b {$^} "\$^" "\$^" select * from test_regex('$^', '$^', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------ {0} @@ -1549,6 +1794,7 @@ -- expectMatch 10.23 P {\Aa} a a select * from test_regex('\Aa', 'a', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1557,6 +1803,7 @@ -- expectMatch 10.24 ^P {\Aa} a a select * from test_regex('\Aa', 'a', '^P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1565,6 +1812,7 @@ -- expectNomatch 10.25 ^nP {\Aa} "b\na" select * from test_regex('\Aa', E'b\na', '^nP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1572,6 +1820,7 @@ -- expectMatch 10.26 P {a\Z} a a select * from test_regex('a\Z', 'a', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1580,6 +1829,7 @@ -- expectMatch 10.27 \$P {a\Z} a a select * from test_regex('a\Z', 'a', '$P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1588,6 +1838,7 @@ -- expectNomatch 10.28 \$nP {a\Z} "a\nb" select * from test_regex('a\Z', E'a\nb', '$nP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -1595,19 +1846,24 @@ -- expectError 10.29 - ^* BADRPT select * from test_regex('^*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 10.30 - {$*} BADRPT select * from test_regex('$*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 10.31 - {\A*} BADRPT select * from test_regex('\A*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 10.32 - {\Z*} BADRPT select * from test_regex('\Z*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- doing 11 "boundary constraints" -- expectMatch 11.1 &LP {[[:<:]]a} a a select * from test_regex('[[:<:]]a', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1615,6 +1871,7 @@ (2 rows) select * from test_regex('[[:<:]]a', 'a', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1623,6 +1880,7 @@ -- expectMatch 11.2 &LP {[[:<:]]a} -a a select * from test_regex('[[:<:]]a', '-a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1630,6 +1888,7 @@ (2 rows) select * from test_regex('[[:<:]]a', '-a', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1638,12 +1897,14 @@ -- expectNomatch 11.3 &LP {[[:<:]]a} ba select * from test_regex('[[:<:]]a', 'ba', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} (1 row) select * from test_regex('[[:<:]]a', 'ba', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1651,6 +1912,7 @@ -- expectMatch 11.4 &LP {a[[:>:]]} a a select * from test_regex('a[[:>:]]', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1658,6 +1920,7 @@ (2 rows) select * from test_regex('a[[:>:]]', 'a', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1666,6 +1929,7 @@ -- expectMatch 11.5 &LP {a[[:>:]]} a- a select * from test_regex('a[[:>:]]', 'a-', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1673,6 +1937,7 @@ (2 rows) select * from test_regex('a[[:>:]]', 'a-', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1681,12 +1946,14 @@ -- expectNomatch 11.6 &LP {a[[:>:]]} ab select * from test_regex('a[[:>:]]', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} (1 row) select * from test_regex('a[[:>:]]', 'ab', 'LPb'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1694,6 +1961,7 @@ -- expectMatch 11.7 bLP {\} a a select * from test_regex('a\>', 'a', 'bLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1717,6 +1987,7 @@ -- expectNomatch 11.10 bLP {a\>} ab select * from test_regex('a\>', 'ab', 'bLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1724,6 +1995,7 @@ -- expectMatch 11.11 LP {\ya} a a select * from test_regex('\ya', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1732,6 +2004,7 @@ -- expectNomatch 11.12 LP {\ya} ba select * from test_regex('\ya', 'ba', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1739,6 +2012,7 @@ -- expectMatch 11.13 LP {a\y} a a select * from test_regex('a\y', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1747,6 +2021,7 @@ -- expectNomatch 11.14 LP {a\y} ab select * from test_regex('a\y', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1754,6 +2029,7 @@ -- expectMatch 11.15 LP {a\Y} ab a select * from test_regex('a\Y', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1762,6 +2038,7 @@ -- expectNomatch 11.16 LP {a\Y} a- select * from test_regex('a\Y', 'a-', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1769,6 +2046,7 @@ -- expectNomatch 11.17 LP {a\Y} a select * from test_regex('a\Y', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1776,6 +2054,7 @@ -- expectNomatch 11.18 LP {-\Y} -a select * from test_regex('-\Y', '-a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1783,6 +2062,7 @@ -- expectMatch 11.19 LP {-\Y} -% - select * from test_regex('-\Y', '-%', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1791,6 +2071,7 @@ -- expectNomatch 11.20 LP {\Y-} a- select * from test_regex('\Y-', 'a-', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1798,24 +2079,31 @@ -- expectError 11.21 - {[[:<:]]*} BADRPT select * from test_regex('[[:<:]]*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 11.22 - {[[:>:]]*} BADRPT select * from test_regex('[[:>:]]*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 11.23 b {\<*} BADRPT select * from test_regex('\<*', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 11.24 b {\>*} BADRPT select * from test_regex('\>*', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 11.25 - {\y*} BADRPT select * from test_regex('\y*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectError 11.26 - {\Y*} BADRPT select * from test_regex('\Y*', '', '-'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: quantifier operand invalid -- expectMatch 11.27 LP {\ma} a a select * from test_regex('\ma', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1824,6 +2112,7 @@ -- expectNomatch 11.28 LP {\ma} ba select * from test_regex('\ma', 'ba', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1831,6 +2120,7 @@ -- expectMatch 11.29 LP {a\M} a a select * from test_regex('a\M', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1839,6 +2129,7 @@ -- expectNomatch 11.30 LP {a\M} ab select * from test_regex('a\M', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1846,6 +2137,7 @@ -- expectNomatch 11.31 ILP {\Ma} a select * from test_regex('\Ma', 'a', 'ILP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE,REG_UIMPOSSIBLE} @@ -1853,6 +2145,7 @@ -- expectNomatch 11.32 ILP {a\m} a select * from test_regex('a\m', 'a', 'ILP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE,REG_UIMPOSSIBLE} @@ -1861,6 +2154,7 @@ -- doing 12 "character classes" -- expectMatch 12.1 LP {a\db} a0b a0b select * from test_regex('a\db', 'a0b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1869,6 +2163,7 @@ -- expectNomatch 12.2 LP {a\db} axb select * from test_regex('a\db', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1876,6 +2171,7 @@ -- expectNomatch 12.3 LP {a\Db} a0b select * from test_regex('a\Db', 'a0b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1883,6 +2179,7 @@ -- expectMatch 12.4 LP {a\Db} axb axb select * from test_regex('a\Db', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1891,6 +2188,7 @@ -- expectMatch 12.5 LP "a\\sb" "a b" "a b" select * from test_regex('a\sb', 'a b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1899,6 +2197,7 @@ -- expectMatch 12.6 LP "a\\sb" "a\tb" "a\tb" select * from test_regex('a\sb', E'a\tb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1907,6 +2206,7 @@ -- expectMatch 12.7 LP "a\\sb" "a\nb" "a\nb" select * from test_regex('a\sb', E'a\nb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1916,6 +2216,7 @@ -- expectNomatch 12.8 LP {a\sb} axb select * from test_regex('a\sb', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1923,6 +2224,7 @@ -- expectMatch 12.9 LP {a\Sb} axb axb select * from test_regex('a\Sb', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1931,6 +2233,7 @@ -- expectNomatch 12.10 LP "a\\Sb" "a b" select * from test_regex('a\Sb', 'a b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1938,6 +2241,7 @@ -- expectMatch 12.11 LP {a\wb} axb axb select * from test_regex('a\wb', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1946,6 +2250,7 @@ -- expectNomatch 12.12 LP {a\wb} a-b select * from test_regex('a\wb', 'a-b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1953,6 +2258,7 @@ -- expectNomatch 12.13 LP {a\Wb} axb select * from test_regex('a\Wb', 'axb', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1960,6 +2266,7 @@ -- expectMatch 12.14 LP {a\Wb} a-b a-b select * from test_regex('a\Wb', 'a-b', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1968,6 +2275,7 @@ -- expectMatch 12.15 LP {\y\w+z\y} adze-guz guz select * from test_regex('\y\w+z\y', 'adze-guz', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -1976,6 +2284,7 @@ -- expectMatch 12.16 LPE {a[\d]b} a1b a1b select * from test_regex('a[\d]b', 'a1b', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -1984,6 +2293,7 @@ -- expectMatch 12.17 LPE "a\[\\s]b" "a b" "a b" select * from test_regex('a[\s]b', 'a b', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -1992,6 +2302,7 @@ -- expectMatch 12.18 LPE {a[\w]b} axb axb select * from test_regex('a[\w]b', 'axb', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2000,15 +2311,20 @@ -- these should be invalid select * from test_regex('[\w-~]*', 'ab01_~-`**', 'LNPSE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('[~-\w]*', 'ab01_~-`**', 'LNPSE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('[[:alnum:]-~]*', 'ab01~-`**', 'LNS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range select * from test_regex('[~-[:alnum:]]*', 'ab01~-`**', 'LNS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid character range -- test complemented char classes within brackets select * from test_regex('[\D]', '0123456789abc*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2016,6 +2332,7 @@ (2 rows) select * from test_regex('[^\D]', 'abc0123456789*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2023,6 +2340,7 @@ (2 rows) select * from test_regex('[1\D7]', '0123456789abc*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2030,6 +2348,7 @@ (2 rows) select * from test_regex('[7\D1]', '0123456789abc*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2037,6 +2356,7 @@ (2 rows) select * from test_regex('[^0\D1]', 'abc0123456789*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2044,6 +2364,7 @@ (2 rows) select * from test_regex('[^1\D0]', 'abc0123456789*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2051,6 +2372,7 @@ (2 rows) select * from test_regex('\W', '0123456789abc_*', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2058,6 +2380,7 @@ (2 rows) select * from test_regex('[\W]', '0123456789abc_*', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2065,6 +2388,7 @@ (2 rows) select * from test_regex('[\s\S]*', '012 3456789abc_*', 'LNPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------------------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE,REG_UEMPTYMATCH} @@ -2073,6 +2397,7 @@ -- check char classes' handling of newlines select * from test_regex('\s+', E'abc \n def', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2081,6 +2406,7 @@ (2 rows) select * from test_regex('\s+', E'abc \n def', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2089,6 +2415,7 @@ (2 rows) select * from test_regex('[\s]+', E'abc \n def', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2097,6 +2424,7 @@ (2 rows) select * from test_regex('[\s]+', E'abc \n def', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2105,6 +2433,7 @@ (2 rows) select * from test_regex('\S+', E'abc\ndef', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2112,6 +2441,7 @@ (2 rows) select * from test_regex('\S+', E'abc\ndef', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2119,6 +2449,7 @@ (2 rows) select * from test_regex('[\S]+', E'abc\ndef', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2126,6 +2457,7 @@ (2 rows) select * from test_regex('[\S]+', E'abc\ndef', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2133,6 +2465,7 @@ (2 rows) select * from test_regex('\d+', E'012\n345', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2140,6 +2473,7 @@ (2 rows) select * from test_regex('\d+', E'012\n345', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2147,6 +2481,7 @@ (2 rows) select * from test_regex('[\d]+', E'012\n345', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2154,6 +2489,7 @@ (2 rows) select * from test_regex('[\d]+', E'012\n345', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2161,6 +2497,7 @@ (2 rows) select * from test_regex('\D+', E'abc\ndef345', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2169,6 +2506,7 @@ (2 rows) select * from test_regex('\D+', E'abc\ndef345', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2177,6 +2515,7 @@ (2 rows) select * from test_regex('[\D]+', E'abc\ndef345', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2185,6 +2524,7 @@ (2 rows) select * from test_regex('[\D]+', E'abc\ndef345', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2193,6 +2533,7 @@ (2 rows) select * from test_regex('\w+', E'abc_012\ndef', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2200,6 +2541,7 @@ (2 rows) select * from test_regex('\w+', E'abc_012\ndef', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2207,6 +2549,7 @@ (2 rows) select * from test_regex('[\w]+', E'abc_012\ndef', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2214,6 +2557,7 @@ (2 rows) select * from test_regex('[\w]+', E'abc_012\ndef', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2221,6 +2565,7 @@ (2 rows) select * from test_regex('\W+', E'***\n@@@___', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2229,6 +2574,7 @@ (2 rows) select * from test_regex('\W+', E'***\n@@@___', 'nLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -2237,6 +2583,7 @@ (2 rows) select * from test_regex('[\W]+', E'***\n@@@___', 'LPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2245,6 +2592,7 @@ (2 rows) select * from test_regex('[\W]+', E'***\n@@@___', 'nLPE'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_ULOCALE} @@ -2255,11 +2603,14 @@ -- doing 13 "escapes" -- expectError 13.1 & "a\\" EESCAPE select * from test_regex('a\', '', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence select * from test_regex('a\', '', 'b'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- expectMatch 13.2 - {a\]+)>} a -- } 1 select * from test_regex('\A\s*[^<]*\s*<([^>]+)>', 'a', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE} @@ -4599,6 +5231,7 @@ -- regexp {\A\s*([^b]*)b} ab -- } 1 select * from test_regex('\A\s*([^b]*)b', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE} @@ -4609,6 +5242,7 @@ -- regexp {\A\s*[^b]*(b)} ab -- } 1 select * from test_regex('\A\s*[^b]*(b)', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE} @@ -4619,6 +5253,7 @@ -- regexp {\A(\s*)[^b]*(b)} ab -- } 1 select * from test_regex('\A(\s*)[^b]*(b)', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {2,REG_UNONPOSIX,REG_ULOCALE} @@ -4629,6 +5264,7 @@ -- regexp {\A\s*[^b]*b} ab -- } 1 select * from test_regex('\A\s*[^b]*b', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -4639,6 +5275,7 @@ -- regexp -inline {\A\s*[^b]*b} ab -- } ab select * from test_regex('\A\s*[^b]*b', 'ab', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -4649,6 +5286,7 @@ -- regexp -indices -inline {\A\s*[^b]*b} ab -- } {{0 1}} select * from test_regex('\A\s*[^b]*b', 'ab', '0LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -4661,6 +5299,7 @@ -- unset tmp -- } -result 1 select * from test_regex('(^|\n)+\.*b', E'\n.b', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {1,REG_UNONPOSIX} @@ -4676,6 +5315,7 @@ -- unset tmp -- } -result 1 select * from test_regex('(^|[\n\r]+)\.*\?<.*?(\n|\r)+', E'TQ\r\n.?<5000267>Test already stopped\r\n', 'EP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {2,REG_UBBS,REG_UNONPOSIX} @@ -4690,6 +5330,7 @@ -- regexp {\3161573148} {\3161573148} -- } 0 select * from test_regex('\3161573148', '\3161573148', 'MP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_UUNPORT} @@ -4699,6 +5340,7 @@ -- regexp {($|^)*} {x} -- } 1 select * from test_regex('($|^)*', 'x', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {1,REG_UEMPTYMATCH} @@ -4859,6 +5501,7 @@ ([[:blank:]]+) # Pad (.*) # ConditionalFields $$, '', 'xLMPQ'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------------------------------------------------- {68,REG_UBOUNDS,REG_UNONPOSIX,REG_UUNPORT,REG_ULOCALE} @@ -4868,6 +5511,7 @@ -- lindex [regexp -about "^MRK:client1: =1339 14HKelly Talisman 10011000 (\[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]*) \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 8 0 8 0 0 0 77 77 1 1 2 0 11 { 1 3 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 13HC6 My Creator 2 3 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 31HC7 Slightly offensive name, huh 3 8 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 23HE-mail:kelly@hotbox.com 4 9 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 17Hcompface must die 5 10 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 0 3HAir 6 12 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 14HPGP public key 7 13 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 16Hkelly@hotbox.com 8 30 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 0 12H2 text/plain 9 30 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 0 13H2 x-kom/basic 10 33 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 1H0 11 14 8 \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* \[0-9\]* 00000000 1 1H3 }\r?"] 0 -- } 1 select * from test_regex(E'^MRK:client1: =1339 14HKelly Talisman 10011000 ([0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]*) [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 8 0 8 0 0 0 77 77 1 1 2 0 11 { 1 3 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 13HC6 My Creator 2 3 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 31HC7 Slightly offensive name, huh 3 8 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 23HE-mail:kelly@hotbox.com 4 9 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 17Hcompface must die 5 10 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 0 3HAir 6 12 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 14HPGP public key 7 13 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 16Hkelly@hotbox.com 8 30 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 0 12H2 text/plain 9 30 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 0 13H2 x-kom/basic 10 33 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 1H0 11 14 8 [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* [0-9]* 00000000 1 1H3 }\r?', '', 'BMS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------- {1,REG_UBRACES,REG_UUNSPEC,REG_UUNPORT} @@ -4877,6 +5521,7 @@ -- regexp {(^)+^} x -- } 1 select * from test_regex('(^)+^', 'x', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {1,REG_UEMPTYMATCH} @@ -4887,6 +5532,7 @@ -- regexp {($^)+} x -- } 0 select * from test_regex('($^)+', 'x', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {1,REG_UEMPTYMATCH} @@ -4896,6 +5542,7 @@ -- regexp {(^$)*} x -- } 1 select * from test_regex('(^$)*', 'x', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {1,REG_UEMPTYMATCH} @@ -4906,6 +5553,7 @@ -- regexp {(^(?!aa))+} {aa bb cc} -- } 0 select * from test_regex('(^(?!aa))+', 'aa bb cc', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {1,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -4915,6 +5563,7 @@ -- regexp {(^(?!aa)(?!bb)(?!cc))+} {aa x} -- } 0 select * from test_regex('(^(?!aa)(?!bb)(?!cc))+', 'aa x', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {1,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -4924,6 +5573,7 @@ -- regexp {(^(?!aa)(?!bb)(?!cc))+} {bb x} -- } 0 select * from test_regex('(^(?!aa)(?!bb)(?!cc))+', 'bb x', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {1,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -4933,6 +5583,7 @@ -- regexp {(^(?!aa)(?!bb)(?!cc))+} {cc x} -- } 0 select * from test_regex('(^(?!aa)(?!bb)(?!cc))+', 'cc x', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {1,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -4942,6 +5593,7 @@ -- regexp {(^(?!aa)(?!bb)(?!cc))+} {dd x} -- } 1 select * from test_regex('(^(?!aa)(?!bb)(?!cc))+', 'dd x', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {1,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -4952,6 +5604,7 @@ -- regexp {abcd(\m)+xyz} x -- } 0 select * from test_regex('abcd(\m)+xyz', 'x', 'ILP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE,REG_UIMPOSSIBLE} @@ -4961,6 +5614,7 @@ -- regexp {abcd(\m)+xyz} a -- } 0 select * from test_regex('abcd(\m)+xyz', 'a', 'ILP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE,REG_UIMPOSSIBLE} @@ -4970,6 +5624,7 @@ -- regexp {^abcd*(((((^(a c(e?d)a+|)+|)+|)+|)+|a)+|)} x -- } 0 select * from test_regex('^abcd*(((((^(a c(e?d)a+|)+|)+|)+|)+|a)+|)', 'x', 'S'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {7,REG_UUNSPEC} @@ -4979,6 +5634,7 @@ -- regexp {a^(^)bcd*xy(((((($a+|)+|)+|)+$|)+|)+|)^$} x -- } 0 select * from test_regex('a^(^)bcd*xy(((((($a+|)+|)+|)+$|)+|)+|)^$', 'x', 'IS'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------------------- {7,REG_UUNSPEC,REG_UIMPOSSIBLE} @@ -4988,6 +5644,7 @@ -- regexp {xyz(\Y\Y)+} x -- } 0 select * from test_regex('xyz(\Y\Y)+', 'x', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE} @@ -4997,6 +5654,7 @@ -- regexp {x|(?:\M)+} x -- } 1 select * from test_regex('x|(?:\M)+', 'x', 'LNP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE,REG_UEMPTYMATCH} @@ -5010,6 +5668,7 @@ -- The runtime cost of this seems out of proportion to the value, -- so for Postgres purposes reduce the repeat to 200x select * from test_regex(repeat('x*y*z*', 200), 'x', 'N'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex --------------------- {0,REG_UEMPTYMATCH} @@ -5020,6 +5679,7 @@ -- regexp {(\Y)+} foo -- } 1 select * from test_regex('(\Y)+', 'foo', 'LNP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE,REG_UEMPTYMATCH} @@ -5029,6 +5689,7 @@ -- and now, tests not from either Spencer or the Tcl project -- These cases exercise additional code paths in pushfwd()/push()/combine() select * from test_regex('a\Y(?=45)', 'a45', 'HLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {0,REG_ULOOKAROUND,REG_UNONPOSIX,REG_ULOCALE} @@ -5036,6 +5697,7 @@ (2 rows) select * from test_regex('a(?=.)c', 'ac', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {0,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -5043,6 +5705,7 @@ (2 rows) select * from test_regex('a(?=.).*(?=3)3*', 'azz33', 'HP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------- {0,REG_ULOOKAROUND,REG_UNONPOSIX} @@ -5050,6 +5713,7 @@ (2 rows) select * from test_regex('a(?=\w)\w*(?=.).*', 'az3%', 'HLP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------------------------------------- {0,REG_ULOOKAROUND,REG_UNONPOSIX,REG_ULOCALE} @@ -5060,6 +5724,7 @@ -- you may need to make them longer if you change BULK_ARC_OP_USE_SORT() select * from test_regex('ABCDEFGHIJKLMNOPQRSTUVWXYZ(?:\w|a|b|c|d|e|f|0|1|2|3|4|5|6|Q)', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ3', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------- {0,REG_UNONPOSIX,REG_ULOCALE} @@ -5068,6 +5733,7 @@ select * from test_regex('ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789(\Y\Y)+', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789Z', 'LP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------------------------------- {1,REG_UNONPOSIX,REG_ULOCALE} @@ -5076,6 +5742,7 @@ select * from test_regex('((x|xabcdefghijklmnopqrstuvwxyz0123456789)x*|[^y]z)$', 'az', ''); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex -------------- {2} diff -U3 /tmp/cirrus-ci-build/src/test/modules/test_regex/expected/test_regex_utf8.out /tmp/cirrus-ci-build/build/testrun/test_regex/regress/results/test_regex_utf8.out --- /tmp/cirrus-ci-build/src/test/modules/test_regex/expected/test_regex_utf8.out 2024-03-27 22:35:14.261839000 +0000 +++ /tmp/cirrus-ci-build/build/testrun/test_regex/regress/results/test_regex_utf8.out 2024-03-27 22:53:47.901548000 +0000 @@ -13,6 +13,7 @@ -- expectMatch 9.44 EMP* {a[\u00fe-\u0507][\u00ff-\u0300]b} \ -- "a\u0102\u02ffb" "a\u0102\u02ffb" select * from test_regex('a[\u00fe-\u0507][\u00ff-\u0300]b', E'a\u0102\u02ffb', 'EMP*'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_UUNPORT} @@ -21,6 +22,7 @@ -- expectMatch 13.27 P "a\\U00001234x" "a\u1234x" "a\u1234x" select * from test_regex('a\U00001234x', E'a\u1234x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -29,6 +31,7 @@ -- expectMatch 13.28 P {a\U00001234x} "a\u1234x" "a\u1234x" select * from test_regex('a\U00001234x', E'a\u1234x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -38,13 +41,16 @@ -- expectMatch 13.29 P "a\\U0001234x" "a\u1234x" "a\u1234x" -- Tcl has relaxed their code to allow 1-8 hex digits, but Postgres hasn't select * from test_regex('a\U0001234x', E'a\u1234x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- expectMatch 13.30 P {a\U0001234x} "a\u1234x" "a\u1234x" -- Tcl has relaxed their code to allow 1-8 hex digits, but Postgres hasn't select * from test_regex('a\U0001234x', E'a\u1234x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- expectMatch 13.31 P "a\\U000012345x" "a\u12345x" "a\u12345x" select * from test_regex('a\U000012345x', E'a\u12345x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -53,6 +59,7 @@ -- expectMatch 13.32 P {a\U000012345x} "a\u12345x" "a\u12345x" select * from test_regex('a\U000012345x', E'a\u12345x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ------------------- {0,REG_UNONPOSIX} @@ -62,10 +69,12 @@ -- expectMatch 13.33 P "a\\U1000000x" "a\ufffd0x" "a\ufffd0x" -- Tcl allows this as a standalone character, but Postgres doesn't select * from test_regex('a\U1000000x', E'a\ufffd0x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- expectMatch 13.34 P {a\U1000000x} "a\ufffd0x" "a\ufffd0x" -- Tcl allows this as a standalone character, but Postgres doesn't select * from test_regex('a\U1000000x', E'a\ufffd0x', 'P'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree ERROR: invalid regular expression: invalid escape \ sequence -- Additional tests, not derived from Tcl -- Exercise logic around high character ranges a bit more @@ -77,6 +86,7 @@ [\u2600-\u2f00]* \u1236\u1236x', E'a\u1234\u1236\u1236x', 'xEMP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_UUNPORT} @@ -85,6 +95,7 @@ select * from test_regex('[[:alnum:]]*[[:upper:]]*[\u1000-\u2000]*\u1237', E'\u1500\u1237', 'ELMP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_UUNPORT,REG_ULOCALE} @@ -93,6 +104,7 @@ select * from test_regex('[[:alnum:]]*[[:upper:]]*[\u1000-\u2000]*\u1237', E'A\u1239', 'ELMP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_UUNPORT,REG_ULOCALE} @@ -100,6 +112,7 @@ select * from test_regex('[[:alnum:]]*[[:upper:]]*[\u1000-\u2000]*\u1237', E'\u1500\u1237', 'iELMP'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ---------------------------------------------------- {0,REG_UBBS,REG_UNONPOSIX,REG_UUNPORT,REG_ULOCALE} @@ -108,6 +121,7 @@ -- systematically test char classes select * from test_regex('[[:alnum:]]+', E'x*\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -115,6 +129,7 @@ (2 rows) select * from test_regex('[[:alpha:]]+', E'x*\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -122,6 +137,7 @@ (2 rows) select * from test_regex('[[:ascii:]]+', E'x\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -129,6 +145,7 @@ (2 rows) select * from test_regex('[[:blank:]]+', E'x \t\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -136,12 +153,14 @@ (2 rows) select * from test_regex('[[:cntrl:]]+', E'x\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} (1 row) select * from test_regex('[[:digit:]]+', E'x9\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -149,6 +168,7 @@ (2 rows) select * from test_regex('[[:graph:]]+', E'x\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -156,6 +176,7 @@ (2 rows) select * from test_regex('[[:lower:]]+', E'x\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -163,6 +184,7 @@ (2 rows) select * from test_regex('[[:print:]]+', E'x\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -170,6 +192,7 @@ (2 rows) select * from test_regex('[[:punct:]]+', E'x.\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -177,6 +200,7 @@ (2 rows) select * from test_regex('[[:space:]]+', E'x \t\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -184,6 +208,7 @@ (2 rows) select * from test_regex('[[:upper:]]+', E'xX\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -191,6 +216,7 @@ (2 rows) select * from test_regex('[[:xdigit:]]+', E'xa9\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE} @@ -198,6 +224,7 @@ (2 rows) select * from test_regex('[[:word:]]+', E'x_*\u1500\u1237', 'L'); +WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse tree test_regex ----------------- {0,REG_ULOCALE}