⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testoutput2

📁 一套很值得分析的短信SMS开发源代码。是我今年早些时候从taobao上买来的。但我现在也没看完(先说清楚
💻
📖 第 1 页 / 共 4 页
字号:
No first char
Need char = 'b'
Starting character set: B b 

/(a*b|(?i:c*(?-i)d))/S
Capturing subpattern count = 1
No options
Case state changes
No first char
No need char
Starting character set: C a b c d 

/a$/
Capturing subpattern count = 0
No options
First char = 'a'
No need char
    a
 0: a
    a\n
 0: a
    *** Failers 
No match
    \Za
No match
    \Za\n   
No match

/a$/m
Capturing subpattern count = 0
Options: multiline
First char = 'a'
No need char
    a
 0: a
    a\n
 0: a
    \Za\n   
 0: a
    *** Failers 
No match
    \Za
No match
    
/\Aabc/m
Capturing subpattern count = 0
Options: anchored multiline
No first char
Need char = 'c'

/^abc/m 
Capturing subpattern count = 0
Options: multiline
First char at start or follows \n
Need char = 'c'

/^((a+)(?U)([ab]+)(?-U)([bc]+)(\w*))/
Capturing subpattern count = 5
Options: anchored
No first char
Need char = 'a'
  aaaaabbbbbcccccdef
 0: aaaaabbbbbcccccdef
 1: aaaaabbbbbcccccdef
 2: aaaaa
 3: b
 4: bbbbccccc
 5: def

/(?<=foo)[ab]/S
Capturing subpattern count = 0
No options
No first char
No need char
Starting character set: a b 

/(?<!foo)(alpha|omega)/S
Capturing subpattern count = 1
No options
No first char
Need char = 'a'
Starting character set: a o 

/(?!alphabet)[ab]/S
Capturing subpattern count = 0
No options
No first char
No need char
Starting character set: a b 

/(?<=foo\n)^bar/m
Capturing subpattern count = 0
Options: multiline
First char at start or follows \n
Need char = 'r'

/(?>^abc)/m
Capturing subpattern count = 0
Options: multiline
First char at start or follows \n
Need char = 'c'
    abc
 0: abc
    def\nabc
 0: abc
    *** Failers
No 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 = 0
No options
First char = 'T'
Need char = 's'

/(?<=bullock|donkey)-cart/
Capturing subpattern count = 0
No options
First char = '-'
Need char = 't'
    the bullock-cart
 0: -cart
    a donkey-cart race
 0: -cart
    *** Failers
No match
    cart
No match
    horse-and-cart    
No match
      
/(?<=ab(?i)x|y|z)/
Capturing subpattern count = 0
No options
Case state changes
No first char
No need char

/(?>.*)(?<=(abcd)|(xyz))/
Capturing subpattern count = 2
No options
First char at start or follows \n
No 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 = 0
No options
Case state changes
First char = 'Z'
Need char = 'Z'
    abxyZZ
 0: ZZ
    abXyZZ
 0: ZZ
    ZZZ
 0: ZZ
    zZZ
 0: ZZ
    bZZ
 0: ZZ
    BZZ     
 0: ZZ
    *** Failers
No match
    ZZ 
No match
    abXYZZ 
No match
    zzz
No match
    bzz  
No match

/(?<!(foo)a)bar/
Capturing subpattern count = 1
No options
First char = 'b'
Need char = 'r'
    bar
 0: bar
    foobbar 
 0: bar
    *** Failers
No match
    fooabar  
No match

/This one is here because Perl 5.005_02 doesn't fail it/
Capturing subpattern count = 0
No options
First char = 'T'
Need char = 't'

/^(a)?(?(1)a|b)+$/
Capturing subpattern count = 1
Options: anchored
No first char
No need char
    *** Failers
No match
    a 
No match

/This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/
Capturing subpattern count = 0
No options
First char = 'T'
Need char = 'g'

/^(a\1?){4}$/
Capturing subpattern count = 1
Max back reference = 1
Options: anchored
No first char
Need char = 'a'
    aaaaaa
 0: aaaaaa
 1: aa
    
/These are syntax tests from Perl 5.005/
Capturing subpattern count = 0
No options
First 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]/i
Failed: range out of order in character class at offset 4

/a[]b/i
Failed: missing terminating ] for character class at offset 4

/a[/i
Failed: missing terminating ] for character class at offset 2

/*a/i
Failed: nothing to repeat at offset 0

/(*)b/i
Failed: nothing to repeat at offset 1

/abc)/i
Failed: unmatched parentheses at offset 3

/(abc/i
Failed: missing ) at offset 4

/a**/i
Failed: nothing to repeat at offset 2

/)(/i
Failed: 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/\P
Failed: POSIX code 9: bad escape sequence at offset 4     

/abc/\i
Failed: \ at end of pattern at offset 4

/(a)bc(d)/
Capturing subpattern count = 2
No options
First 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: d
copy substring 5 failed -7
     
/(.{20})/
Capturing subpattern count = 1
No options
No first char
No need char
    abcdefghijklmnopqrstuvwxyz
 0: abcdefghijklmnopqrst
 1: abcdefghijklmnopqrst
    abcdefghijklmnopqrstuvwxyz\C1
 0: abcdefghijklmnopqrst
 1: abcdefghijklmnopqrst
copy substring 1 failed -6
    abcdefghijklmnopqrstuvwxyz\G1
 0: abcdefghijklmnopqrst
 1: abcdefghijklmnopqrst
 1G abcdefghijklmnopqrst (20)
     
/(.{15})/
Capturing subpattern count = 1
No options
No first char
No need char
    abcdefghijklmnopqrstuvwxyz
 0: abcdefghijklmno
 1: abcdefghijklmno
    abcdefghijklmnopqrstuvwxyz\C1\G1
 0: abcdefghijklmno
 1: abcdefghijklmno
 1C abcdefghijklmno (15)
 1G abcdefghijklmno (15)

/(.{16})/
Capturing subpattern count = 1
No options
No first char
No need char
    abcdefghijklmnopqrstuvwxyz
 0: abcdefghijklmnop
 1: abcdefghijklmnop
    abcdefghijklmnopqrstuvwxyz\C1\G1\L
 0: abcdefghijklmnop
 1: abcdefghijklmnop
copy substring 1 failed -6
 1G abcdefghijklmnop (16)
 0L abcdefghijklmnop
 1L abcdefghijklmnop
    
/^(a|(bc))de(f)/
Capturing subpattern count = 3
Options: anchored
No first char
Need 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 = 0
Options: anchored
No first char
Need 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/M
Memory allocation (code space): 428
Capturing subpattern count = 8
No options
First char = 'w'
Need char = 'd'

/.*X/D
------------------------------------------------------------------
  0   8 Bra 0
  3     Any*
  5   1 X
  8   8 Ket
 11     End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
First char at start or follows \n
Need char = 'X'

/.*X/Ds
------------------------------------------------------------------
  0   8 Bra 0
  3     Any*
  5   1 X
  8   8 Ket
 11     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: anchored dotall
No first char
Need 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 = 1
No options
First char at start or follows \n
No 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 = 1
Options: anchored dotall
No first char
No 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 = 1
Options: anchored dotall
No first char
No 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 = 0
No options
First char at start or follows \n
No need char

/\Biss\B/+
Capturing subpattern count = 0
No options
First char = 'i'
Need char = 's'
    Mississippi
 0: iss
 0+ issippi

/\Biss\B/+P
    Mississippi
 0: iss
 0+ issippi

/iss/G+
Capturing subpattern count = 0
No options
First char = 'i'
Need char = 's'
    Mississippi
 0: iss

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -