--- code/trunk/testdata/testinput2 2007/02/24 21:41:21 87 +++ code/trunk/testdata/testinput2 2007/02/24 21:41:34 91 @@ -733,7 +733,7 @@ Ab AB -/[\200-\410]/ +/[\200-\110]/ /^(?(0)f|b)oo/ @@ -1490,4 +1490,157 @@ /\x{0000ff}/ +/^((?Pa1)|(?Pa2)b)/ + +/^((?Pa1)|(?Pa2)b)/J + a1b\CA + a2b\CA + ** Failers + a1b\CZ\CA + +/^(?Pa)(?Pb)/J + ab\CA + +/^(?Pa)(?Pb)|cd/J + ab\CA + cd\CA + +/^(?Pa)(?Pb)|cd(?Pef)(?Pgh)/J + cdefgh\CA + +/^((?Pa1)|(?Pa2)b)/J + a1b\GA + a2b\GA + ** Failers + a1b\GZ\GA + +/^(?Pa)(?Pb)/J + ab\GA + +/^(?Pa)(?Pb)|cd/J + ab\GA + cd\GA + +/^(?Pa)(?Pb)|cd(?Pef)(?Pgh)/J + cdefgh\GA + +/(?J)^((?Pa1)|(?Pa2)b)/ + a1b\CA + a2b\CA + +/^(?Pa) (?J:(?Pb)(?Pc)) (?Pd)/ + +/ In this next test, J is not set at the outer level; consequently it isn't +set in the pattern's options; consequently pcre_get_named_substring() produces +a random value. /x + +/^(?Pa) (?J:(?Pb)(?Pc)) (?Pd)/ + a bc d\CA\CB\CC + +/^(?Pa)?(?(A)a|b)/ + aabc + bc + ** Failers + abc + +/(?:(?(ZZ)a|b)(?PX))+/ + bXaX + +/(?:(?(2y)a|b)(X))+/ + +/(?:(?(ZA)a|b)(?PX))+/ + +/(?:(?(ZZ)a|b)(?(ZZ)a|b)(?PX))+/ + bbXaaX + +/(?:(?(ZZ)a|\(b\))\\(?PX))+/ + (b)\\Xa\\X + +/(?PX|Y))+/ + bXXaYYaY + bXYaXXaX + +/()()()()()()()()()(?:(?(A)(?P=A)a|b)(?PX|Y))+/ + bXXaYYaY + +/\777/ + +/\s*,\s*/S + \x0b,\x0b + \x0c,\x0d + +/^abc/m + xyz\nabc + xyz\nabc\ + xyz\r\nabc\ + xyz\rabc\ + xyz\r\nabc\ + ** Failers + xyz\nabc\ + xyz\r\nabc\ + xyz\nabc\ + xyz\rabc\ + xyz\rabc\ + +/abc\$/m + xyzabc + xyzabc\n + xyzabc\npqr + xyzabc\r\ + xyzabc\rpqr\ + xyzabc\r\n\ + xyzabc\r\npqr\ + ** Failers + xyzabc\r + xyzabc\rpqr + xyzabc\r\n + xyzabc\r\npqr + +/^abc/m + xyz\rabcdef + xyz\nabcdef\ + ** Failers + xyz\nabcdef + +/^abc/m + xyz\nabcdef + xyz\rabcdef\ + ** Failers + xyz\rabcdef + +/^abc/m + xyz\r\nabcdef + xyz\rabcdef\ + ** Failers + xyz\rabcdef + +/^abc/m + +/abc/ + xyz\rabc\ + abc + +/.*/ + abc\ndef + abc\rdef + abc\r\ndef + \abc\ndef + \abc\rdef + \abc\r\ndef + \abc\ndef + \abc\rdef + \abc\r\ndef + +/\w+(.)(.)?def/s + abc\ndef + abc\rdef + abc\r\ndef + ++((?:\s|//.*\\n|/[*](?:\\n|.)*?[*]/)*)+ + /* this is a C style comment */\M + +/(?P25[0-5]|2[0-4]\d|[01]?\d?\d)(?:\.(?P>B)){3}/ + / End of testinput2 /