/[pcre]/code/trunk/testdata/testoutput2
ViewVC logotype

Diff of /code/trunk/testdata/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 462 by ph10, Sat Oct 17 19:55:02 2009 UTC revision 500 by ph10, Sat Mar 6 19:00:29 2010 UTC
# Line 857  No match Line 857  No match
857      a      a
858  No match  No match
859    
860  /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/I  /This one is here because Perl behaves differently; see also the following/I
861  Capturing subpattern count = 0  Capturing subpattern count = 0
862  No options  No options
863  First char = 'T'  First char = 'T'
# Line 869  Max back reference = 1 Line 869  Max back reference = 1
869  Options: anchored  Options: anchored
870  No first char  No first char
871  No need char  No need char
872        aaaa
873    No match
874      aaaaaa      aaaaaa
875   0: aaaaaa  No match
876   1: aa  
877    /Perl does not fail these two for the final subjects. Neither did PCRE until/
878    /release 8.01. The problem is in backtracking into a subpattern that contains/
879    No match
880    /a recursive reference to itself. PCRE has now made these into atomic patterns./
881    No match
882    
883    /^(xa|=?\1a){2}$/
884        xa=xaa
885     0: xa=xaa
886     1: =xaa
887        ** Failers
888    No match
889        xa=xaaa
890    No match
891    
892    /^(xa|=?\1a)+$/
893        xa=xaa
894     0: xa=xaa
895     1: =xaa
896        ** Failers
897    No match
898        xa=xaaa
899    No match
900    
901  /These are syntax tests from Perl 5.005/I  /These are syntax tests from Perl 5.005/I
902  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 10407  Partial match: abca Line 10432  Partial match: abca
10432      xxxxabcde\P\P      xxxxabcde\P\P
10433  Partial match: abcde  Partial match: abcde
10434    
10435    /-- This is not in the Perl 5.10 test because Perl seems currently to be broken
10436        and not behaving as specified in that it *does* bumpalong after hitting
10437        (*COMMIT). --/
10438    
10439    /(?1)(A(*COMMIT)|B)D/
10440        ABD
10441     0: ABD
10442     1: B
10443        XABD
10444     0: ABD
10445     1: B
10446        BAD
10447     0: BAD
10448     1: A
10449        ABXABD
10450     0: ABD
10451     1: B
10452        ** Failers
10453    No match
10454        ABX
10455    No match
10456        BAXBAD
10457    No match
10458    
10459    /(\3)(\1)(a)/<JS>
10460        cat
10461     0: a
10462     1:
10463     2:
10464     3: a
10465    
10466    /(\3)(\1)(a)/SI<JS>
10467    Capturing subpattern count = 3
10468    Max back reference = 3
10469    Options:
10470    No first char
10471    Need char = 'a'
10472    Subject length lower bound = 1
10473    No set of starting bytes
10474        cat
10475     0: a
10476     1:
10477     2:
10478     3: a
10479    
10480    /(\3)(\1)(a)/SI
10481    Capturing subpattern count = 3
10482    Max back reference = 3
10483    No options
10484    No first char
10485    Need char = 'a'
10486    Subject length lower bound = 3
10487    No set of starting bytes
10488        cat
10489    No match
10490    
10491    /i(?(DEFINE)(?<s>a))/SI
10492    Capturing subpattern count = 1
10493    Named capturing subpatterns:
10494      s   1
10495    No options
10496    First char = 'i'
10497    No need char
10498    Subject length lower bound = 1
10499    No set of starting bytes
10500        i
10501     0: i
10502    
10503    /()i(?(1)a)/SI
10504    Capturing subpattern count = 1
10505    No options
10506    No first char
10507    Need char = 'i'
10508    Subject length lower bound = 1
10509    Starting byte set: i
10510        ia
10511     0: ia
10512     1:
10513    
10514    /(?i)a(?-i)b|c/BZ
10515    ------------------------------------------------------------------
10516            Bra
10517         NC a
10518         00 Opt
10519            b
10520            Alt
10521         00 Opt
10522            c
10523            Ket
10524            End
10525    ------------------------------------------------------------------
10526        XabX
10527     0: ab
10528        XAbX
10529     0: Ab
10530        CcC
10531     0: c
10532        ** Failers
10533    No match
10534        XABX
10535    No match
10536    
10537    /(?i)a(?s)b|c/BZ
10538    ------------------------------------------------------------------
10539            Bra
10540         NC a
10541         05 Opt
10542         NC b
10543            Alt
10544         05 Opt
10545         NC c
10546            Ket
10547            End
10548    ------------------------------------------------------------------
10549    
10550    /(?i)a(?s-i)b|c/BZ
10551    ------------------------------------------------------------------
10552            Bra
10553         NC a
10554         04 Opt
10555            b
10556            Alt
10557         04 Opt
10558            c
10559            Ket
10560            End
10561    ------------------------------------------------------------------
10562    
10563    /^(ab(c\1)d|x){2}$/BZ
10564    ------------------------------------------------------------------
10565            Bra
10566            ^
10567            Once
10568            CBra 1
10569            ab
10570            CBra 2
10571            c
10572            \1
10573            Ket
10574            d
10575            Alt
10576            x
10577            Ket
10578            Ket
10579            Once
10580            CBra 1
10581            ab
10582            CBra 2
10583            c
10584            \1
10585            Ket
10586            d
10587            Alt
10588            x
10589            Ket
10590            Ket
10591            $
10592            Ket
10593            End
10594    ------------------------------------------------------------------
10595        xabcxd
10596     0: xabcxd
10597     1: abcxd
10598     2: cx
10599    
10600    /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
10601    ------------------------------------------------------------------
10602            Bra
10603            ^
10604            Once
10605            Brazero
10606            Once
10607            Recurse
10608            KetRmax
10609            Ket
10610            Cond
10611            Cond def
10612            CBra 1
10613            Any
10614            Ket
10615            Ket
10616            $
10617            Ket
10618            End
10619    ------------------------------------------------------------------
10620    
10621    /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
10622    ------------------------------------------------------------------
10623            Bra
10624            ^
10625            Brazero
10626            Once
10627            Recurse
10628            KetRmax
10629            Cond
10630            Cond def
10631            CBra 1
10632            Any
10633            Ket
10634            Ket
10635            $
10636            Ket
10637            End
10638    ------------------------------------------------------------------
10639    
10640    / -- The first four of these are not in the Perl 5.10 test because Perl
10641         documents that the use of \K in assertions is "not well defined". The
10642         last is here because Perl gives the match as "b" rather than "ab". I
10643         believe this to be a Perl bug. --/
10644    
10645    /(?=a\Kb)ab/
10646        ab
10647     0: b
10648    
10649    /(?!a\Kb)ac/
10650        ac
10651     0: ac
10652    
10653    /^abc(?<=b\Kc)d/
10654        abcd
10655     0: cd
10656    
10657    /^abc(?<!b\Kq)d/
10658        abcd
10659     0: abcd
10660    
10661    /(?>a\Kb)z|(ab)/
10662        ab
10663     0: ab
10664     1: ab
10665    
10666    /----------------------/
10667    
10668  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.462  
changed lines
  Added in v.500

  ViewVC Help
Powered by ViewVC 1.1.5