6193 |
B 3 |
B 3 |
6194 |
C 4 |
C 4 |
6195 |
Options: anchored |
Options: anchored |
6196 |
|
Duplicate name status changes |
6197 |
No first char |
No first char |
6198 |
No need char |
No need char |
6199 |
a bc d\CA\CB\CC |
a bc d\CA\CB\CC |
8067 |
Failed: reference to non-existent subpattern at offset 4 |
Failed: reference to non-existent subpattern at offset 4 |
8068 |
|
|
8069 |
/^(a)\g/ |
/^(a)\g/ |
8070 |
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 |
8071 |
|
|
8072 |
/^(a)\g{0}/ |
/^(a)\g{0}/ |
8073 |
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 |
8074 |
|
|
8075 |
/^(a)\g{3/ |
/^(a)\g{3/ |
8076 |
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 |
8077 |
|
|
8078 |
/^(a)\g{4a}/ |
/^(a)\g{4a}/ |
8079 |
Failed: \g is not followed by an (optionally braced) non-zero number at offset 4 |
Failed: reference to non-existent subpattern at offset 9 |
8080 |
|
|
8081 |
/^a.b/<lf> |
/^a.b/<lf> |
8082 |
a\rb |
a\rb |
8210 |
No match |
No match |
8211 |
|
|
8212 |
/x(?-0)y/ |
/x(?-0)y/ |
8213 |
Failed: (?+ or (?- must be followed by a non-zero number at offset 5 |
Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5 |
8214 |
|
|
8215 |
/x(?-1)y/ |
/x(?-1)y/ |
8216 |
Failed: reference to non-existent subpattern at offset 5 |
Failed: reference to non-existent subpattern at offset 5 |
8217 |
|
|
8218 |
/x(?+0)y/ |
/x(?+0)y/ |
8219 |
Failed: (?+ or (?- must be followed by a non-zero number at offset 5 |
Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5 |
8220 |
|
|
8221 |
/x(?+1)y/ |
/x(?+1)y/ |
8222 |
Failed: reference to non-existent subpattern at offset 5 |
Failed: reference to non-existent subpattern at offset 5 |
8223 |
|
|
8224 |
|
/^(abc)?(?(-1)X|Y)/B |
8225 |
|
------------------------------------------------------------------ |
8226 |
|
0 35 Bra 0 |
8227 |
|
3 ^ |
8228 |
|
4 Brazero |
8229 |
|
5 11 Bra 1 |
8230 |
|
10 abc |
8231 |
|
16 11 Ket |
8232 |
|
19 8 Cond |
8233 |
|
22 1 Cond ref |
8234 |
|
25 X |
8235 |
|
27 5 Alt |
8236 |
|
30 Y |
8237 |
|
32 13 Ket |
8238 |
|
35 35 Ket |
8239 |
|
38 End |
8240 |
|
------------------------------------------------------------------ |
8241 |
|
abcX |
8242 |
|
0: abcX |
8243 |
|
1: abc |
8244 |
|
Y |
8245 |
|
0: Y |
8246 |
|
** Failers |
8247 |
|
No match |
8248 |
|
abcY |
8249 |
|
No match |
8250 |
|
|
8251 |
|
/^((?(+1)X|Y)(abc))+/B |
8252 |
|
------------------------------------------------------------------ |
8253 |
|
0 42 Bra 0 |
8254 |
|
3 ^ |
8255 |
|
4 35 Bra 1 |
8256 |
|
9 8 Cond |
8257 |
|
12 2 Cond ref |
8258 |
|
15 X |
8259 |
|
17 5 Alt |
8260 |
|
20 Y |
8261 |
|
22 13 Ket |
8262 |
|
25 11 Bra 2 |
8263 |
|
30 abc |
8264 |
|
36 11 Ket |
8265 |
|
39 35 KetRmax |
8266 |
|
42 42 Ket |
8267 |
|
45 End |
8268 |
|
------------------------------------------------------------------ |
8269 |
|
YabcXabc |
8270 |
|
0: YabcXabc |
8271 |
|
1: Xabc |
8272 |
|
2: abc |
8273 |
|
YabcXabcXabc |
8274 |
|
0: YabcXabcXabc |
8275 |
|
1: Xabc |
8276 |
|
2: abc |
8277 |
|
** Failers |
8278 |
|
No match |
8279 |
|
XabcXabc |
8280 |
|
No match |
8281 |
|
|
8282 |
|
/(?(-1)a)/B |
8283 |
|
Failed: reference to non-existent subpattern at offset 6 |
8284 |
|
|
8285 |
|
/((?(-1)a))/B |
8286 |
|
------------------------------------------------------------------ |
8287 |
|
0 22 Bra 0 |
8288 |
|
3 16 Bra 1 |
8289 |
|
8 8 Cond |
8290 |
|
11 1 Cond ref |
8291 |
|
14 a |
8292 |
|
16 8 Ket |
8293 |
|
19 16 Ket |
8294 |
|
22 22 Ket |
8295 |
|
25 End |
8296 |
|
------------------------------------------------------------------ |
8297 |
|
|
8298 |
|
/((?(-2)a))/B |
8299 |
|
Failed: reference to non-existent subpattern at offset 7 |
8300 |
|
|
8301 |
|
/^(?(+1)X|Y)/B |
8302 |
|
------------------------------------------------------------------ |
8303 |
|
0 20 Bra 0 |
8304 |
|
3 ^ |
8305 |
|
4 8 Cond |
8306 |
|
7 1 Cond ref |
8307 |
|
10 X |
8308 |
|
12 5 Alt |
8309 |
|
15 Y |
8310 |
|
17 13 Ket |
8311 |
|
20 20 Ket |
8312 |
|
23 End |
8313 |
|
------------------------------------------------------------------ |
8314 |
|
Y |
8315 |
|
0: Y |
8316 |
|
|
8317 |
|
/(foo)\Kbar/ |
8318 |
|
foobar |
8319 |
|
0: bar |
8320 |
|
1: foo |
8321 |
|
|
8322 |
|
/(foo)(\Kbar|baz)/ |
8323 |
|
foobar |
8324 |
|
0: bar |
8325 |
|
1: foo |
8326 |
|
2: bar |
8327 |
|
foobaz |
8328 |
|
0: foobaz |
8329 |
|
1: foo |
8330 |
|
2: baz |
8331 |
|
|
8332 |
|
/(foo\Kbar)baz/ |
8333 |
|
foobarbaz |
8334 |
|
0: barbaz |
8335 |
|
1: foobar |
8336 |
|
|
8337 |
|
/(?<A>tom|bon)-\k{A}/ |
8338 |
|
tom-tom |
8339 |
|
0: tom-tom |
8340 |
|
1: tom |
8341 |
|
bon-bon |
8342 |
|
0: bon-bon |
8343 |
|
1: bon |
8344 |
|
** Failers |
8345 |
|
No match |
8346 |
|
tom-bon |
8347 |
|
No match |
8348 |
|
|
8349 |
|
/(?<A>tom|bon)-\g{A}/ |
8350 |
|
tom-tom |
8351 |
|
0: tom-tom |
8352 |
|
1: tom |
8353 |
|
bon-bon |
8354 |
|
0: bon-bon |
8355 |
|
1: bon |
8356 |
|
|
8357 |
|
/\g{A/ |
8358 |
|
Failed: syntax error in subpattern name (missing terminator) at offset 4 |
8359 |
|
|
8360 |
/ End of testinput2 / |
/ End of testinput2 / |