--- code/trunk/testdata/testoutput2 2007/06/04 11:21:13 170 +++ code/trunk/testdata/testoutput2 2007/06/04 14:28:58 171 @@ -8067,16 +8067,16 @@ Failed: reference to non-existent subpattern at offset 4 /^(a)\g/ -Failed: \g is not followed by an (optionally braced) non-zero number at offset 4 +Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4 /^(a)\g{0}/ -Failed: \g is not followed by an (optionally braced) non-zero number at offset 4 +Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4 /^(a)\g{3/ -Failed: \g is not followed by an (optionally braced) non-zero number at offset 4 +Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4 /^(a)\g{4a}/ -Failed: \g is not followed by an (optionally braced) non-zero number at offset 4 +Failed: reference to non-existent subpattern at offset 9 /^a.b/ a\rb @@ -8334,4 +8334,27 @@ 0: barbaz 1: foobar +/(?tom|bon)-\k{A}/ + tom-tom + 0: tom-tom + 1: tom + bon-bon + 0: bon-bon + 1: bon + ** Failers +No match + tom-bon +No match + +/(?tom|bon)-\g{A}/ + tom-tom + 0: tom-tom + 1: tom + bon-bon + 0: bon-bon + 1: bon + +/\g{A/ +Failed: syntax error in subpattern name (missing terminator) at offset 4 + / End of testinput2 /