📄 testoutput2
字号:
0: bar *** FailersNo match fooabar No match/This one is here because Perl 5.005_02 doesn't fail it/Capturing subpattern count = 0No optionsFirst char = 'T'Need char = 't'/^(a)?(?(1)a|b)+$/Capturing subpattern count = 1Options: anchoredNo first charNo need char *** FailersNo match a No match/This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/Capturing subpattern count = 0No optionsFirst char = 'T'Need char = 'g'/^(a\1?){4}$/Capturing subpattern count = 1Max back reference = 1Options: anchoredNo first charNeed char = 'a' aaaaaa 0: aaaaaa 1: aa /These are syntax tests from Perl 5.005/Capturing subpattern count = 0No optionsFirst char = 'T'Need char = '5'/a[b-a]/Failed: range out of order in character class at offset 4/a[]b/Failed: missing terminating ] for character class at offset 4/a[/Failed: missing terminating ] for character class at offset 2/*a/Failed: nothing to repeat at offset 0/(*)b/Failed: nothing to repeat at offset 1/abc)/Failed: unmatched parentheses at offset 3/(abc/Failed: missing ) at offset 4/a**/Failed: nothing to repeat at offset 2/)(/Failed: unmatched parentheses at offset 0/\1/Failed: back reference to non-existent subpattern at offset 2/\2/Failed: back reference to non-existent subpattern at offset 2/(a)|\2/Failed: back reference to non-existent subpattern at offset 6/a[b-a]/iFailed: range out of order in character class at offset 4/a[]b/iFailed: missing terminating ] for character class at offset 4/a[/iFailed: missing terminating ] for character class at offset 2/*a/iFailed: nothing to repeat at offset 0/(*)b/iFailed: nothing to repeat at offset 1/abc)/iFailed: unmatched parentheses at offset 3/(abc/iFailed: missing ) at offset 4/a**/iFailed: nothing to repeat at offset 2/)(/iFailed: unmatched parentheses at offset 0/:(?:/Failed: missing ) at offset 4/(?<%)b/Failed: unrecognized character after (?< at offset 0/a(?{)b/Failed: unrecognized character after (? at offset 3/a(?{{})b/Failed: unrecognized character after (? at offset 3/a(?{}})b/Failed: unrecognized character after (? at offset 3/a(?{"{"})b/Failed: unrecognized character after (? at offset 3/a(?{"{"}})b/Failed: unrecognized character after (? at offset 3/(?(1?)a|b)/Failed: malformed number after (?( at offset 4/(?(1)a|b|c)/Failed: conditional group contains more than two branches at offset 10/[a[:xyz:/Failed: missing terminating ] for character class at offset 8/(?<=x+)y/Failed: lookbehind assertion is not fixed length at offset 6/a{37,17}/Failed: numbers out of order in {} quantifier at offset 7/abc/\Failed: \ at end of pattern at offset 4/abc/\PFailed: POSIX code 9: bad escape sequence at offset 4 /abc/\iFailed: \ at end of pattern at offset 4/(a)bc(d)/Capturing subpattern count = 2No optionsFirst char = 'a'Need char = 'd' abcd 0: abcd 1: a 2: d abcd\C2 0: abcd 1: a 2: d 2C d (1) abcd\C5 0: abcd 1: a 2: dcopy substring 5 failed -7 /(.{20})/Capturing subpattern count = 1No optionsNo first charNo need char abcdefghijklmnopqrstuvwxyz 0: abcdefghijklmnopqrst 1: abcdefghijklmnopqrst abcdefghijklmnopqrstuvwxyz\C1 0: abcdefghijklmnopqrst 1: abcdefghijklmnopqrstcopy substring 1 failed -6 abcdefghijklmnopqrstuvwxyz\G1 0: abcdefghijklmnopqrst 1: abcdefghijklmnopqrst 1G abcdefghijklmnopqrst (20) /(.{15})/Capturing subpattern count = 1No optionsNo first charNo need char abcdefghijklmnopqrstuvwxyz 0: abcdefghijklmno 1: abcdefghijklmno abcdefghijklmnopqrstuvwxyz\C1\G1 0: abcdefghijklmno 1: abcdefghijklmno 1C abcdefghijklmno (15) 1G abcdefghijklmno (15)/(.{16})/Capturing subpattern count = 1No optionsNo first charNo need char abcdefghijklmnopqrstuvwxyz 0: abcdefghijklmnop 1: abcdefghijklmnop abcdefghijklmnopqrstuvwxyz\C1\G1\L 0: abcdefghijklmnop 1: abcdefghijklmnopcopy substring 1 failed -6 1G abcdefghijklmnop (16) 0L abcdefghijklmnop 1L abcdefghijklmnop /^(a|(bc))de(f)/Capturing subpattern count = 3Options: anchoredNo first charNeed char = 'f' adef\G1\G2\G3\G4\L 0: adef 1: a 2: <unset> 3: f 1G a (1) 2G (0) 3G f (1)get substring 4 failed -7 0L adef 1L a 2L 3L f bcdef\G1\G2\G3\G4\L 0: bcdef 1: bc 2: bc 3: f 1G bc (2) 2G bc (2) 3G f (1)get substring 4 failed -7 0L bcdef 1L bc 2L bc 3L f adefghijk\C0 0: adef 1: a 2: <unset> 3: f 0C adef (4) /^abc\00def/Capturing subpattern count = 0Options: anchoredNo first charNeed char = 'f' abc\00def\L\C0 0: abc\x00def 0C abc (7) 0L abc /word ((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )((?:[a-zA-Z0-9]+ )?)?)?)?)?)?)?)?)?otherword/MMemory allocation (code space): 428Capturing subpattern count = 8No optionsFirst char = 'w'Need char = 'd'/.*X/D------------------------------------------------------------------ 0 8 Bra 0 3 Any* 5 1 X 8 8 Ket 11 End------------------------------------------------------------------Capturing subpattern count = 0No optionsFirst char at start or follows \nNeed char = 'X'/.*X/Ds------------------------------------------------------------------ 0 8 Bra 0 3 Any* 5 1 X 8 8 Ket 11 End------------------------------------------------------------------Capturing subpattern count = 0Options: anchored dotallNo first charNeed char = 'X'/(.*X|^B)/D------------------------------------------------------------------ 0 21 Bra 0 3 8 Bra 1 6 Any* 8 1 X 11 7 Alt 14 ^ 15 1 B 18 15 Ket 21 21 Ket 24 End------------------------------------------------------------------Capturing subpattern count = 1No optionsFirst char at start or follows \nNo need char/(.*X|^B)/Ds------------------------------------------------------------------ 0 21 Bra 0 3 8 Bra 1 6 Any* 8 1 X 11 7 Alt 14 ^ 15 1 B 18 15 Ket 21 21 Ket 24 End------------------------------------------------------------------Capturing subpattern count = 1Options: anchored dotallNo first charNo need char /(?s)(.*X|^B)/D------------------------------------------------------------------ 0 21 Bra 0 3 8 Bra 1 6 Any* 8 1 X 11 7 Alt 14 ^ 15 1 B 18 15 Ket 21 21 Ket 24 End------------------------------------------------------------------Capturing subpattern count = 1Options: anchored dotallNo first charNo need char/(?s:.*X|^B)/D------------------------------------------------------------------ 0 27 Bra 0 3 10 Bra 0 6 04 Opt 8 Any* 10 1 X 13 9 Alt 16 04 Opt 18 ^ 19 1 B 22 19 Ket 25 00 Opt 27 27 Ket 30 End------------------------------------------------------------------Capturing subpattern count = 0No optionsFirst char at start or follows \nNo need char/\Biss\B/+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi/\Biss\B/+P Mississippi 0: iss 0+ issippi/iss/G+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi 0: iss 0+ ippi/\Biss\B/G+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi/\Biss\B/g+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi 0: iss 0+ ippi *** FailersNo match Mississippi\ANo match/(?<=[Ms])iss/g+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi 0: iss 0+ ippi/(?<=[Ms])iss/G+Capturing subpattern count = 0No optionsFirst char = 'i'Need char = 's' Mississippi 0: iss 0+ issippi/^iss/g+Capturing subpattern count = 0Options: anchoredNo first charNeed char = 's' ississippi 0: iss 0+ issippi /.*iss/g+Capturing subpattern count = 0No optionsFirst char at start or follows \nNeed char = 's' abciss\nxyzisspqr 0: abciss 0+ \x0axyzisspqr 0: xyziss 0+ pqr/.i./+gCapturing subpattern count = 0No optionsNo first charNeed char = 'i' Mississippi 0: Mis 0+ sissippi 0: sis 0+ sippi 0: sip 0+ pi Mississippi\A 0: Mis 0+ sissippi 0: sis 0+ sippi 0: sip 0+ pi Missouri river 0: Mis 0+ souri river 0: ri 0+ river 0: riv 0+ er Missouri river\A 0: Mis 0+ souri river/^.is/+gCapturing subpattern count = 0Options: anchoredNo first charNeed char = 's' Mississippi 0: Mis 0+ sissippi/^ab\n/g+Capturing subpattern count = 0Options: anchoredNo first charNeed char = 10 ab\nab\ncd 0: ab\x0a 0+ ab\x0acd/^ab\n/mg+Capturing subpattern count = 0Options: multilineFirst char at start or follows \nNeed char = 10 ab\nab\ncd 0: ab\x0a 0+ ab\x0acd 0: ab\x0a 0+ cd/abc/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'c'/abc|bac/Capturing subpattern count = 0No optionsNo first charNeed char = 'c'/(abc|bac)/Capturing subpattern count = 1No optionsNo first charNeed char = 'c'/(abc|(c|dc))/Capturing subpattern count = 2No optionsNo first charNeed char = 'c'/(abc|(d|de)c)/Capturing subpattern count = 2No optionsNo first charNeed char = 'c'/a*/Capturing subpattern count = 0No optionsNo first charNo need char/a+/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/(baa|a+)/Capturing subpattern count = 1No optionsNo first charNeed char = 'a'/a{0,3}/Capturing subpattern count = 0No optionsNo first charNo need char/baa{3,}/Capturing subpattern count = 0No optionsFirst char = 'b'Need char = 'a'/"([^\\"]+|\\.)*"/Capturing subpattern count = 1No optionsFirst char = '"'Need char = '"'/(abc|ab[cd])/Capturing subpattern count = 1No optionsFirst char = 'a'No need char/(a|.)/Capturing subpattern count = 1No optionsNo first charNo need char/a|ba|\w/Capturing subpattern count = 0No optionsNo first charNo need char/abc(?=pqr)/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'r'/...(?<=abc)/Capturing subpattern count = 0No optionsNo first charNo need char/abc(?!pqr)/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'c'/ab./Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/ab[xyz]/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/abc*/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/ab.c*/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/a.c*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/.c*/Capturing subpattern count = 0No optionsNo first charNo need char/ac*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/(a.c*|b.c*)/Capturing subpattern count = 1No optionsNo first charNo need char/a.c*|aba/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/.+a/Capturing subpattern count = 0No optionsNo first charNeed char = 'a'/(?=abcda)a.*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/(?=a)a.*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/a(b)*/Capturing subpattern count = 1No optionsFirst char = 'a'No need char/a\d*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/ab\d*/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/a(\d)*/Capturing subpattern count = 1No optionsFirst char = 'a'No need char/abcde{0,0}/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'd'/ab\d+/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/a(?(1)b)/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/a(?(1)bag|big)/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'g'/a(?(1)bag|big)*/Capturing subpattern count = 0No optionsFirst char = 'a'No need char/a(?(1)bag|big)+/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'g'/a(?(1)b..|b..)/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'b'/ab\d{0}e/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'e'/a?b?/Capturing subpattern count = 0No optionsNo first charNo need char a 0: a b 0: b ab 0: ab \ 0: *** Failers 0: \N No match /|-/Capturing subpattern count = 0No optionsNo first charNo need char
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -