/[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 937 by ph10, Sun Feb 26 15:58:56 2012 UTC revision 1253 by ph10, Fri Feb 22 11:38:35 2013 UTC
# Line 634  Capturing subpattern count = 0 Line 634  Capturing subpattern count = 0
634  Options: anchored multiline  Options: anchored multiline
635  No first char  No first char
636  No need char  No need char
637    Max lookbehind = 1
638    
639  /^abc/Im  /^abc/Im
640  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 768  Max lookbehind = 3 Line 769  Max lookbehind = 3
769  /(?>.*)(?<=(abcd)|(xyz))/I  /(?>.*)(?<=(abcd)|(xyz))/I
770  Capturing subpattern count = 2  Capturing subpattern count = 2
771  No options  No options
772  First char at start or follows newline  No first char
773  No need char  No need char
774  Max lookbehind = 4  Max lookbehind = 4
775      alphabetabcd      alphabetabcd
# Line 9719  Partial match: abc12 Line 9720  Partial match: abc12
9720      xyzabc123pqr      xyzabc123pqr
9721   0: 123   0: 123
9722      xyzabc12\P      xyzabc12\P
9723  Partial match: abc12  Partial match at offset 6: abc12
9724      xyzabc12\P\P      xyzabc12\P\P
9725  Partial match: abc12  Partial match at offset 6: abc12
9726    
9727  /\babc\b/  /\babc\b/
9728      +++abc+++      +++abc+++
9729   0: abc   0: abc
9730      +++ab\P      +++ab\P
9731  Partial match: +ab  Partial match at offset 3: +ab
9732      +++ab\P\P      +++ab\P\P
9733  Partial match: +ab  Partial match at offset 3: +ab
9734    
9735  /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ  /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
9736  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 10110  No set of starting bytes Line 10111  No set of starting bytes
10111  "(?>.*/)foo"SI  "(?>.*/)foo"SI
10112  Capturing subpattern count = 0  Capturing subpattern count = 0
10113  No options  No options
10114  First char at start or follows newline  No first char
10115  Need char = 'o'  Need char = 'o'
10116  Subject length lower bound = 4  Subject length lower bound = 4
10117  No set of starting bytes  No set of starting bytes
# Line 10755  No match Line 10756  No match
10756  /\s*\R/BZ  /\s*\R/BZ
10757  ------------------------------------------------------------------  ------------------------------------------------------------------
10758          Bra          Bra
10759          \s*+          \s*
10760            \R
10761            Ket
10762            End
10763    ------------------------------------------------------------------
10764        \x20\x0a
10765     0:  \x0a
10766        \x20\x0d
10767     0:  \x0d
10768        \x20\x0d\x0a
10769     0:  \x0d\x0a
10770    
10771    /\S*\R/BZ
10772    ------------------------------------------------------------------
10773            Bra
10774            \S*+
10775            \R
10776            Ket
10777            End
10778    ------------------------------------------------------------------
10779        a\x0a
10780     0: a\x0a
10781    
10782    /X\h*\R/BZ
10783    ------------------------------------------------------------------
10784            Bra
10785            X
10786            \h*+
10787            \R
10788            Ket
10789            End
10790    ------------------------------------------------------------------
10791        X\x20\x0a
10792     0: X \x0a
10793    
10794    /X\H*\R/BZ
10795    ------------------------------------------------------------------
10796            Bra
10797            X
10798            \H*
10799            \R
10800            Ket
10801            End
10802    ------------------------------------------------------------------
10803        X\x0d\x0a
10804     0: X\x0d\x0a
10805    
10806    /X\H+\R/BZ
10807    ------------------------------------------------------------------
10808            Bra
10809            X
10810            \H+
10811          \R          \R
10812          Ket          Ket
10813          End          End
10814  ------------------------------------------------------------------  ------------------------------------------------------------------
10815        X\x0d\x0a
10816     0: X\x0d\x0a
10817    
10818    /X\H++\R/BZ
10819    ------------------------------------------------------------------
10820            Bra
10821            X
10822            \H++
10823            \R
10824            Ket
10825            End
10826    ------------------------------------------------------------------
10827        X\x0d\x0a
10828    No match
10829    
10830  /-- Perl treats this one differently, not failing the second string. I believe  /-- Perl treats this one differently, not failing the second string. I believe
10831      that is a bug in Perl. --/      that is a bug in Perl. --/
# Line 10775  No match Line 10841  No match
10841    
10842  /(?<=abc)def/  /(?<=abc)def/
10843      abc\P\P      abc\P\P
10844  Partial match: abc  Partial match at offset 3: abc
10845    
10846  /abc$/  /abc$/
10847      abc      abc
# Line 11254  No match Line 11320  No match
11320    
11321  /(a)b|ac/++SS  /(a)b|ac/++SS
11322      ac\O3      ac\O3
 Matched, but too many substrings  
11323   0: ac   0: ac
11324   0+   0+
11325    
# Line 12271  Partial match: \x0d\x0d Line 12336  Partial match: \x0d\x0d
12336      \r\r\r\P\P      \r\r\r\P\P
12337   0: \x0d\x0d   0: \x0d\x0d
12338    
12339  /-- This one is here because Perl does not match: it seems to allow the COMMIT  /-- These two are here because Perl does not match: it seems to allow the
12340  to escape from the assertion. --/  COMMIT to escape from the assertion. --/
12341    
12342  /(?=a(*COMMIT)b|ac)ac|ac/  /(?=a(*COMMIT)b|ac)ac|ac/
12343      ac      ac
12344   0: ac   0: ac
12345    
12346    /(?=a(*COMMIT)b|(ac)) ac | (a)c/x
12347        ac
12348     0: ac
12349     1: <unset>
12350     2: a
12351    
12352    "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
12353        ABCDGHI\O03
12354    Matched, but too many substrings
12355     0: ABCD
12356    
12357    /-- This one is here because Perl does not confine the *COMMIT to the
12358    assertion, and therefore fails the entire subroutine call. --/
12359    
12360    /((?=a(*COMMIT)b)ab|ac){0}(?:(?1)|a(c))/
12361        ac
12362     0: ac
12363    
12364    /-- These are all run as real matches in test 1; here we are just checking the
12365    settings of the anchored and startline bits. --/
12366    
12367    /(?>.*?a)(?<=ba)/I
12368    Capturing subpattern count = 0
12369    No options
12370    No first char
12371    Need char = 'a'
12372    Max lookbehind = 2
12373    
12374    /(?:.*?a)(?<=ba)/I
12375    Capturing subpattern count = 0
12376    No options
12377    First char at start or follows newline
12378    Need char = 'a'
12379    Max lookbehind = 2
12380    
12381    /.*?a(*PRUNE)b/I
12382    Capturing subpattern count = 0
12383    No options
12384    No first char
12385    Need char = 'b'
12386    
12387    /.*?a(*PRUNE)b/sI
12388    Capturing subpattern count = 0
12389    Options: dotall
12390    No first char
12391    Need char = 'b'
12392    
12393    /^a(*PRUNE)b/sI
12394    Capturing subpattern count = 0
12395    Options: anchored dotall
12396    No first char
12397    No need char
12398    
12399    /.*?a(*SKIP)b/I
12400    Capturing subpattern count = 0
12401    No options
12402    No first char
12403    Need char = 'b'
12404    
12405    /(?>.*?a)b/sI
12406    Capturing subpattern count = 0
12407    Options: dotall
12408    No first char
12409    Need char = 'b'
12410    
12411    /(?>.*?a)b/I
12412    Capturing subpattern count = 0
12413    No options
12414    No first char
12415    Need char = 'b'
12416    
12417    /(?>^a)b/sI
12418    Capturing subpattern count = 0
12419    Options: anchored dotall
12420    No first char
12421    No need char
12422    
12423    /(?>.*?)(?<=(abcd)|(wxyz))/I
12424    Capturing subpattern count = 2
12425    No options
12426    No first char
12427    No need char
12428    Max lookbehind = 4
12429    
12430    /(?>.*)(?<=(abcd)|(wxyz))/I
12431    Capturing subpattern count = 2
12432    No options
12433    No first char
12434    No need char
12435    Max lookbehind = 4
12436    
12437    "(?>.*)foo"I
12438    Capturing subpattern count = 0
12439    No options
12440    No first char
12441    Need char = 'o'
12442    
12443    "(?>.*?)foo"I
12444    Capturing subpattern count = 0
12445    No options
12446    No first char
12447    Need char = 'o'
12448    
12449    /(?>^abc)/mI
12450    Capturing subpattern count = 0
12451    Options: multiline
12452    First char at start or follows newline
12453    Need char = 'c'
12454    
12455    /(?>.*abc)/mI
12456    Capturing subpattern count = 0
12457    Options: multiline
12458    No first char
12459    Need char = 'c'
12460    
12461    /(?:.*abc)/mI
12462    Capturing subpattern count = 0
12463    Options: multiline
12464    First char at start or follows newline
12465    Need char = 'c'
12466    
12467    /-- Check PCRE_STUDY_EXTRA_NEEDED --/
12468    
12469    /.?/S-I
12470    Capturing subpattern count = 0
12471    No options
12472    No first char
12473    No need char
12474    Study returned NULL
12475    
12476    /.?/S!I
12477    Capturing subpattern count = 0
12478    No options
12479    No first char
12480    No need char
12481    Subject length lower bound = -1
12482    No set of starting bytes
12483    
12484    /(?:(a)+(?C1)bb|aa(?C2)b)/
12485        aab\C+
12486    Callout 1: last capture = 1
12487     0: <unset>
12488     1: a
12489    --->aab
12490        ^ ^     b
12491    Callout 1: last capture = 1
12492     0: <unset>
12493     1: a
12494    --->aab
12495        ^^      b
12496    Callout 2: last capture = -1
12497     0: <unset>
12498    --->aab
12499        ^ ^     b
12500     0: aab
12501    
12502    /(?:(a)++(?C1)bb|aa(?C2)b)/
12503        aab\C+
12504    Callout 1: last capture = 1
12505     0: <unset>
12506     1: a
12507    --->aab
12508        ^ ^     b
12509    Callout 2: last capture = -1
12510     0: <unset>
12511    --->aab
12512        ^ ^     b
12513     0: aab
12514    
12515    /(?:(?>(a))(?C1)bb|aa(?C2)b)/
12516        aab\C+
12517    Callout 1: last capture = 1
12518     0: <unset>
12519     1: a
12520    --->aab
12521        ^^      b
12522    Callout 2: last capture = -1
12523     0: <unset>
12524    --->aab
12525        ^ ^     b
12526     0: aab
12527    
12528    /(?:(?1)(?C1)x|ab(?C2))((a)){0}/
12529        aab\C+
12530    Callout 1: last capture = -1
12531     0: <unset>
12532    --->aab
12533        ^^      x
12534    Callout 1: last capture = -1
12535     0: <unset>
12536    --->aab
12537         ^^     x
12538    Callout 2: last capture = -1
12539     0: <unset>
12540    --->aab
12541         ^ ^    )
12542     0: ab
12543    
12544    /(?1)(?C1)((a)(?C2)){0}/
12545        aab\C+
12546    Callout 2: last capture = 2
12547     0: <unset>
12548     1: <unset>
12549     2: a
12550    --->aab
12551        ^^      )
12552    Callout 1: last capture = -1
12553     0: <unset>
12554    --->aab
12555        ^^      ((a)(?C2)){0}
12556     0: a
12557    
12558    /(?:(a)+(?C1)bb|aa(?C2)b)++/
12559        aab\C+
12560    Callout 1: last capture = 1
12561     0: <unset>
12562     1: a
12563    --->aab
12564        ^ ^     b
12565    Callout 1: last capture = 1
12566     0: <unset>
12567     1: a
12568    --->aab
12569        ^^      b
12570    Callout 2: last capture = -1
12571     0: <unset>
12572    --->aab
12573        ^ ^     b
12574     0: aab
12575        aab\C+\O2
12576    Callout 1: last capture = 1
12577     0: <unset>
12578    --->aab
12579        ^ ^     b
12580    Callout 1: last capture = 1
12581     0: <unset>
12582    --->aab
12583        ^^      b
12584    Callout 2: last capture = -1
12585     0: <unset>
12586    --->aab
12587        ^ ^     b
12588     0: aab
12589    
12590    /(ab)x|ab/
12591        ab\O3
12592     0: ab
12593        ab\O2
12594     0: ab
12595    
12596    /(ab)/
12597        ab\O3
12598    Matched, but too many substrings
12599     0: ab
12600        ab\O2
12601    Matched, but too many substrings
12602     0: ab
12603    
12604    /(?<=123)(*MARK:xx)abc/K
12605        xxxx123a\P\P
12606    Partial match at offset 7, mark=xx: 123a
12607        xxxx123a\P
12608    Partial match at offset 7, mark=xx: 123a
12609    
12610    /123\Kabc/
12611        xxxx123a\P\P
12612    Partial match: 123a
12613        xxxx123a\P
12614    Partial match: 123a
12615    
12616  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.937  
changed lines
  Added in v.1253

  ViewVC Help
Powered by ViewVC 1.1.5