📄 testoutput2
字号:
PCRE version 3.9 02-Jan-2002/(a)b|/Capturing subpattern count = 1No optionsNo first charNo need char/abc/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'c' abc 0: abc defabc 0: abc \Aabc 0: abc *** FailersNo match \AdefabcNo match ABCNo match/^abc/Capturing subpattern count = 0Options: anchoredNo first charNeed char = 'c' abc 0: abc \Aabc 0: abc *** FailersNo match defabcNo match \AdefabcNo match/a+bc/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'c'/a*bc/Capturing subpattern count = 0No optionsNo first charNeed char = 'c'/a{3}bc/Capturing subpattern count = 0No optionsFirst char = 'a'Need char = 'c'/(abc|a+z)/Capturing subpattern count = 1No optionsFirst char = 'a'No need char/^abc$/Capturing subpattern count = 0Options: anchoredNo first charNeed char = 'c' abc 0: abc *** FailersNo match def\nabcNo match/ab\gdef/XFailed: unrecognized character follows \ at offset 3/(?X)ab\gdef/XFailed: unrecognized character follows \ at offset 7/x{5,4}/Failed: numbers out of order in {} quantifier at offset 5/z{65536}/Failed: number too big in {} quantifier at offset 7/[abcd/Failed: missing terminating ] for character class at offset 5/[\B]/Failed: invalid escape sequence in character class at offset 2/[z-a]/Failed: range out of order in character class at offset 3/^*/Failed: nothing to repeat at offset 1/(abc/Failed: missing ) at offset 4/(?# abc/Failed: missing ) after comment at offset 7/(?z)abc/Failed: unrecognized character after (? at offset 2/.*b/Capturing subpattern count = 0No optionsFirst char at start or follows \nNeed char = 'b'/.*?b/Capturing subpattern count = 0No optionsFirst char at start or follows \nNeed char = 'b'/cat|dog|elephant/Capturing subpattern count = 0No optionsNo first charNo need char this sentence eventually mentions a cat 0: cat this sentences rambles on and on for a while and then reaches elephant 0: elephant/cat|dog|elephant/SCapturing subpattern count = 0No optionsNo first charNo need charStarting character set: c d e this sentence eventually mentions a cat 0: cat this sentences rambles on and on for a while and then reaches elephant 0: elephant/cat|dog|elephant/iSCapturing subpattern count = 0Options: caselessNo first charNo need charStarting character set: C D E c d e this sentence eventually mentions a CAT cat 0: CAT this sentences rambles on and on for a while to elephant ElePhant 0: elephant/a|[bcd]/SCapturing subpattern count = 0No optionsNo first charNo need charStarting character set: a b c d /(a|[^\dZ])/SCapturing subpattern count = 1No optionsNo first charNo need charStarting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19 \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \x80 \x81 \x82 \x83 \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e \x8f \x90 \x91 \x92 \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d \x9e \x9f \xa0 \xa1 \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac \xad \xae \xaf \xb0 \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb \xbc \xbd \xbe \xbf \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd \xfe \xff /(a|b)*[\s]/SCapturing subpattern count = 1No optionsNo first charNo need charStarting character set: \x09 \x0a \x0b \x0c \x0d \x20 a b /(ab\2)/Failed: back reference to non-existent subpattern at offset 6/{4,5}abc/Failed: nothing to repeat at offset 4/(a)(b)(c)\2/Capturing subpattern count = 3Max back reference = 2No optionsFirst char = 'a'Need char = 'c' abcb 0: abcb 1: a 2: b 3: c \O0abcbMatched, but too many substrings \O3abcbMatched, but too many substrings 0: abcb \O6abcbMatched, but too many substrings 0: abcb 1: a \O9abcbMatched, but too many substrings 0: abcb 1: a 2: b \O12abcb 0: abcb 1: a 2: b 3: c/(a)bc|(a)(b)\2/Capturing subpattern count = 3Max back reference = 2No optionsFirst char = 'a'No need char abc 0: abc 1: a \O0abcMatched, but too many substrings \O3abcMatched, but too many substrings 0: abc \O6abc 0: abc 1: a aba 0: aba 1: <unset> 2: a 3: b \O0abaMatched, but too many substrings \O3abaMatched, but too many substrings 0: aba \O6abaMatched, but too many substrings 0: aba 1: <unset> \O9abaMatched, but too many substrings 0: aba 1: <unset> 2: a \O12aba 0: aba 1: <unset> 2: a 3: b/abc$/ECapturing subpattern count = 0Options: dollar_endonlyFirst char = 'a'Need char = 'c' abc 0: abc *** FailersNo match abc\nNo match abc\ndefNo match/(a)(b)(c)(d)(e)\6/Failed: back reference to non-existent subpattern at offset 17/the quick brown fox/Capturing subpattern count = 0No optionsFirst char = 't'Need char = 'x' the quick brown fox 0: the quick brown fox this is a line with the quick brown fox 0: the quick brown fox/the quick brown fox/ACapturing subpattern count = 0Options: anchoredNo first charNeed char = 'x' the quick brown fox 0: the quick brown fox *** FailersNo match this is a line with the quick brown foxNo match/ab(?z)cd/Failed: unrecognized character after (? at offset 4/^abc|def/Capturing subpattern count = 0No optionsNo first charNo need char abcdef 0: abc abcdef\B 0: def/.*((abc)$|(def))/Capturing subpattern count = 3No optionsFirst char at start or follows \nNo need char defabc 0: defabc 1: abc 2: abc \Zdefabc 0: def 1: def 2: <unset> 3: def/abc/P abc 0: abc *** FailersNo match: POSIX code 17: match failed /^abc|def/P abcdef 0: abc abcdef\B 0: def/.*((abc)$|(def))/P defabc 0: defabc 1: abc 2: abc \Zdefabc 0: def 1: def 3: def /the quick brown fox/P the quick brown fox 0: the quick brown fox *** Failers No match: POSIX code 17: match failed The Quick Brown Fox No match: POSIX code 17: match failed/the quick brown fox/Pi the quick brown fox 0: the quick brown fox The Quick Brown Fox 0: The Quick Brown Fox/abc.def/P *** FailersNo match: POSIX code 17: match failed abc\ndefNo match: POSIX code 17: match failed /abc$/P abc 0: abc abc\n 0: abc/(abc)\2/PFailed: POSIX code 15: bad back reference at offset 7 /(abc\1)/P abcNo match: POSIX code 17: match failed/)/Failed: unmatched parentheses at offset 0/a[]b/Failed: missing terminating ] for character class at offset 4/[^aeiou ]{3,}/Capturing subpattern count = 0No optionsNo first charNo need char co-processors, and for 0: -pr /<.*>/Capturing subpattern count = 0No optionsFirst char = '<'Need char = '>' abc<def>ghi<klm>nop 0: <def>ghi<klm>/<.*?>/Capturing subpattern count = 0No optionsFirst char = '<'Need char = '>' abc<def>ghi<klm>nop 0: <def>/<.*>/UCapturing subpattern count = 0Options: ungreedyFirst char = '<'Need char = '>' abc<def>ghi<klm>nop 0: <def> /<.*>(?U)/Capturing subpattern count = 0Options: ungreedyFirst char = '<'Need char = '>' abc<def>ghi<klm>nop 0: <def>/<.*?>/UCapturing subpattern count = 0Options: ungreedyFirst char = '<'Need char = '>' abc<def>ghi<klm>nop 0: <def>ghi<klm> /={3,}/UCapturing subpattern count = 0Options: ungreedyFirst char = '='Need char = '=' abc========def 0: === /(?U)={3,}?/Capturing subpattern count = 0Options: ungreedyFirst char = '='Need char = '=' abc========def 0: ======== /(?<!bar|cattle)foo/Capturing subpattern count = 0No optionsFirst char = 'f'Need char = 'o' foo 0: foo catfoo 0: foo *** FailersNo match the barfooNo match and cattlefoo No match/(?<=a+)b/Failed: lookbehind assertion is not fixed length at offset 6/(?<=aaa|b{0,3})b/Failed: lookbehind assertion is not fixed length at offset 14/(?<!(foo)a\1)bar/Failed: lookbehind assertion is not fixed length at offset 12/(?i)abc/Capturing subpattern count = 0Options: caselessFirst char = 'a'Need char = 'c'/(a|(?m)a)/Capturing subpattern count = 1No optionsFirst char = 'a'No need char/(?i)^1234/Capturing subpattern count = 0Options: anchored caselessNo first charNeed char = '4'/(^b|(?i)^d)/Capturing subpattern count = 1Options: anchoredCase state changesNo first charNo need char/(?s).*/Capturing subpattern count = 0Options: anchored dotallNo first charNo need char/[abcd]/SCapturing subpattern count = 0No optionsNo first charNo need charStarting character set: a b c d /(?i)[abcd]/SCapturing subpattern count = 0Options: caselessNo first charNo need charStarting character set: A B C D a b c d /(?m)[xy]|(b|c)/SCapturing subpattern count = 1Options: multilineNo first charNo need charStarting character set: b c x y /(^a|^b)/mCapturing subpattern count = 1Options: multilineFirst char at start or follows \nNo need char/(?i)(^a|^b)/mCapturing subpattern count = 1Options: caseless multilineFirst char at start or follows \nNo need char/(a)(?(1)a|b|c)/Failed: conditional group contains more than two branches at offset 13/(?(?=a)a|b|c)/Failed: conditional group contains more than two branches at offset 12/(?(1a)/Failed: malformed number after (?( at offset 4/(?(?i))/Failed: assertion expected after (?( at offset 3/(?(abc))/Failed: assertion expected after (?( at offset 3/(?(?<ab))/Failed: unrecognized character after (?< at offset 2/((?s)blah)\s+\1/Capturing subpattern count = 1Max back reference = 1No optionsFirst char = 'b'Need char = 'h'/((?i)blah)\s+\1/Capturing subpattern count = 1Max back reference = 1No optionsCase state changesNo first charNeed char = 'h'/((?i)b)/DS------------------------------------------------------------------ 0 16 Bra 0 3 8 Bra 1 6 01 Opt 8 1 b 11 8 Ket 14 00 Opt 16 16 Ket 19 End------------------------------------------------------------------Capturing subpattern count = 1No optionsCase state changesNo first charNeed char = 'b'Starting character set: B b /(a*b|(?i:c*(?-i)d))/SCapturing subpattern count = 1No optionsCase state changesNo first charNo need charStarting character set: C a b c d /a$/Capturing subpattern count = 0No optionsFirst char = 'a'No need char a 0: a a\n 0: a *** Failers No match \ZaNo match \Za\n No match/a$/mCapturing subpattern count = 0Options: multilineFirst char = 'a'No need char a 0: a a\n 0: a \Za\n 0: a *** Failers No match \ZaNo match /\Aabc/mCapturing subpattern count = 0Options: anchored multilineNo first charNeed char = 'c'/^abc/m Capturing subpattern count = 0Options: multilineFirst char at start or follows \nNeed char = 'c'/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/Capturing subpattern count = 5Options: anchoredNo first charNeed char = 'a' aaaaabbbbbcccccdef 0: aaaaabbbbbcccccdef 1: aaaaabbbbbcccccdef 2: aaaaa 3: b 4: bbbbccccc 5: def/(?<=foo)[ab]/SCapturing subpattern count = 0No optionsNo first charNo need charStarting character set: a b /(?<!foo)(alpha|omega)/SCapturing subpattern count = 1No optionsNo first charNeed char = 'a'Starting character set: a o /(?!alphabet)[ab]/SCapturing subpattern count = 0No optionsNo first charNo need charStarting character set: a b /(?<=foo\n)^bar/mCapturing subpattern count = 0Options: multilineFirst char at start or follows \nNeed char = 'r'/(?>^abc)/mCapturing subpattern count = 0Options: multilineFirst char at start or follows \nNeed char = 'c' abc 0: abc def\nabc 0: abc *** FailersNo match defabc No match/(?<=ab(c+)d)ef/Failed: lookbehind assertion is not fixed length at offset 11/(?<=ab(?<=c+)d)ef/Failed: lookbehind assertion is not fixed length at offset 12/(?<=ab(c|de)f)g/Failed: lookbehind assertion is not fixed length at offset 13/The next three are in testinput2 because they have variable length branches/Capturing subpattern count = 0No optionsFirst char = 'T'Need char = 's'/(?<=bullock|donkey)-cart/Capturing subpattern count = 0No optionsFirst char = '-'Need char = 't' the bullock-cart 0: -cart a donkey-cart race 0: -cart *** FailersNo match cartNo match horse-and-cart No match /(?<=ab(?i)x|y|z)/Capturing subpattern count = 0No optionsCase state changesNo first charNo need char/(?>.*)(?<=(abcd)|(xyz))/Capturing subpattern count = 2No optionsFirst char at start or follows \nNo need char alphabetabcd 0: alphabetabcd 1: abcd endingxyz 0: endingxyz 1: <unset> 2: xyz/(?<=ab(?i)x(?-i)y|(?i)z|b)ZZ/Capturing subpattern count = 0No optionsCase state changesFirst char = 'Z'Need char = 'Z' abxyZZ 0: ZZ abXyZZ 0: ZZ ZZZ 0: ZZ zZZ 0: ZZ bZZ 0: ZZ BZZ 0: ZZ *** FailersNo match ZZ No match abXYZZ No match zzzNo match bzz No match/(?<!(foo)a)bar/Capturing subpattern count = 1No optionsFirst char = 'b'Need char = 'r' bar 0: bar foobbar
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -