/[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 1286 by ph10, Fri Mar 15 14:58:48 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 9276  No need char Line 9277  No need char
9277   +7 ^ ^     b   +7 ^ ^     b
9278   +7 ^^      b   +7 ^^      b
9279   +7 ^       b   +7 ^       b
9280    +11 ^       ^
9281  +12 ^       )  +12 ^       )
9282  +13 ^  +13 ^
9283   0:   0:
# Line 9406  No match Line 9408  No match
9408   +3 ^ ^      (?(?=[a])[^"])   +3 ^ ^      (?(?=[a])[^"])
9409   +5 ^ ^      (?=[a])   +5 ^ ^      (?=[a])
9410   +8 ^ ^      [a]   +8 ^ ^      [a]
9411    +17 ^ ^      |
9412  +21 ^ ^      "  +21 ^ ^      "
9413  +18 ^ ^      b  +18 ^ ^      b
9414  +19 ^  ^     )  +19 ^  ^     )
9415   +3 ^  ^     (?(?=[a])[^"])   +3 ^  ^     (?(?=[a])[^"])
9416   +5 ^  ^     (?=[a])   +5 ^  ^     (?=[a])
9417   +8 ^  ^     [a]   +8 ^  ^     [a]
9418    +17 ^  ^     |
9419  +21 ^  ^     "  +21 ^  ^     "
9420  +22 ^   ^    $  +22 ^   ^    $
9421  +23 ^   ^  +23 ^   ^
# Line 9719  Partial match: abc12 Line 9723  Partial match: abc12
9723      xyzabc123pqr      xyzabc123pqr
9724   0: 123   0: 123
9725      xyzabc12\P      xyzabc12\P
9726  Partial match: abc12  Partial match at offset 6: abc12
9727      xyzabc12\P\P      xyzabc12\P\P
9728  Partial match: abc12  Partial match at offset 6: abc12
9729    
9730  /\babc\b/  /\babc\b/
9731      +++abc+++      +++abc+++
9732   0: abc   0: abc
9733      +++ab\P      +++ab\P
9734  Partial match: +ab  Partial match at offset 3: +ab
9735      +++ab\P\P      +++ab\P\P
9736  Partial match: +ab  Partial match at offset 3: +ab
9737    
9738  /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ  /(?&word)(?&element)(?(DEFINE)(?<element><[^m][^>]>[^<])(?<word>\w*+))/BZ
9739  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 10110  No set of starting bytes Line 10114  No set of starting bytes
10114  "(?>.*/)foo"SI  "(?>.*/)foo"SI
10115  Capturing subpattern count = 0  Capturing subpattern count = 0
10116  No options  No options
10117  First char at start or follows newline  No first char
10118  Need char = 'o'  Need char = 'o'
10119  Subject length lower bound = 4  Subject length lower bound = 4
10120  No set of starting bytes  No set of starting bytes
# Line 10755  No match Line 10759  No match
10759  /\s*\R/BZ  /\s*\R/BZ
10760  ------------------------------------------------------------------  ------------------------------------------------------------------
10761          Bra          Bra
10762          \s*+          \s*
10763            \R
10764            Ket
10765            End
10766    ------------------------------------------------------------------
10767        \x20\x0a
10768     0:  \x0a
10769        \x20\x0d
10770     0:  \x0d
10771        \x20\x0d\x0a
10772     0:  \x0d\x0a
10773    
10774    /\S*\R/BZ
10775    ------------------------------------------------------------------
10776            Bra
10777            \S*+
10778            \R
10779            Ket
10780            End
10781    ------------------------------------------------------------------
10782        a\x0a
10783     0: a\x0a
10784    
10785    /X\h*\R/BZ
10786    ------------------------------------------------------------------
10787            Bra
10788            X
10789            \h*+
10790            \R
10791            Ket
10792            End
10793    ------------------------------------------------------------------
10794        X\x20\x0a
10795     0: X \x0a
10796    
10797    /X\H*\R/BZ
10798    ------------------------------------------------------------------
10799            Bra
10800            X
10801            \H*
10802          \R          \R
10803          Ket          Ket
10804          End          End
10805  ------------------------------------------------------------------  ------------------------------------------------------------------
10806        X\x0d\x0a
10807     0: X\x0d\x0a
10808    
10809    /X\H+\R/BZ
10810    ------------------------------------------------------------------
10811            Bra
10812            X
10813            \H+
10814            \R
10815            Ket
10816            End
10817    ------------------------------------------------------------------
10818        X\x0d\x0a
10819     0: X\x0d\x0a
10820    
10821    /X\H++\R/BZ
10822    ------------------------------------------------------------------
10823            Bra
10824            X
10825            \H++
10826            \R
10827            Ket
10828            End
10829    ------------------------------------------------------------------
10830        X\x0d\x0a
10831    No match
10832    
10833  /-- Perl treats this one differently, not failing the second string. I believe  /-- Perl treats this one differently, not failing the second string. I believe
10834      that is a bug in Perl. --/      that is a bug in Perl. --/
# Line 10775  No match Line 10844  No match
10844    
10845  /(?<=abc)def/  /(?<=abc)def/
10846      abc\P\P      abc\P\P
10847  Partial match: abc  Partial match at offset 3: abc
10848    
10849  /abc$/  /abc$/
10850      abc      abc
# Line 11254  No match Line 11323  No match
11323    
11324  /(a)b|ac/++SS  /(a)b|ac/++SS
11325      ac\O3      ac\O3
 Matched, but too many substrings  
11326   0: ac   0: ac
11327   0+   0+
11328    
# Line 11630  Max lookbehind = 1 Line 11698  Max lookbehind = 1
11698  Subject length lower bound = 8  Subject length lower bound = 8
11699  Starting byte set: < o t u  Starting byte set: < o t u
11700    
11701  /a(*SKIP)c|b(*ACCEPT)|/+SI  /a(*SKIP)c|b(*ACCEPT)|/+S!I
11702  Capturing subpattern count = 0  Capturing subpattern count = 0
11703  No options  No options
11704  No first char  No first char
11705  No need char  No need char
11706  Study returned NULL  Subject length lower bound = -1
11707    No set of starting bytes
11708      a      a
11709   0:   0:
11710   0+   0+
# Line 12271  Partial match: \x0d\x0d Line 12340  Partial match: \x0d\x0d
12340      \r\r\r\P\P      \r\r\r\P\P
12341   0: \x0d\x0d   0: \x0d\x0d
12342    
12343  /-- 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
12344  to escape from the assertion. --/  COMMIT to escape from the assertion. --/
12345    
12346  /(?=a(*COMMIT)b|ac)ac|ac/  /(?=a(*COMMIT)b|ac)ac|ac/
12347      ac      ac
12348   0: ac   0: ac
12349    
12350    /(?=a(*COMMIT)b|(ac)) ac | (a)c/x
12351        ac
12352     0: ac
12353     1: <unset>
12354     2: a
12355    
12356    "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
12357        ABCDGHI\O03
12358    Matched, but too many substrings
12359     0: ABCD
12360    
12361    /-- This one is here because Perl does not confine the *COMMIT to the
12362    assertion, and therefore fails the entire subroutine call. --/
12363    
12364    /((?=a(*COMMIT)b)ab|ac){0}(?:(?1)|a(c))/
12365        ac
12366     0: ac
12367    
12368    /-- These are all run as real matches in test 1; here we are just checking the
12369    settings of the anchored and startline bits. --/
12370    
12371    /(?>.*?a)(?<=ba)/I
12372    Capturing subpattern count = 0
12373    No options
12374    No first char
12375    Need char = 'a'
12376    Max lookbehind = 2
12377    
12378    /(?:.*?a)(?<=ba)/I
12379    Capturing subpattern count = 0
12380    No options
12381    First char at start or follows newline
12382    Need char = 'a'
12383    Max lookbehind = 2
12384    
12385    /.*?a(*PRUNE)b/I
12386    Capturing subpattern count = 0
12387    No options
12388    No first char
12389    Need char = 'b'
12390    
12391    /.*?a(*PRUNE)b/sI
12392    Capturing subpattern count = 0
12393    Options: dotall
12394    No first char
12395    Need char = 'b'
12396    
12397    /^a(*PRUNE)b/sI
12398    Capturing subpattern count = 0
12399    Options: anchored dotall
12400    No first char
12401    No need char
12402    
12403    /.*?a(*SKIP)b/I
12404    Capturing subpattern count = 0
12405    No options
12406    No first char
12407    Need char = 'b'
12408    
12409    /(?>.*?a)b/sI
12410    Capturing subpattern count = 0
12411    Options: dotall
12412    No first char
12413    Need char = 'b'
12414    
12415    /(?>.*?a)b/I
12416    Capturing subpattern count = 0
12417    No options
12418    No first char
12419    Need char = 'b'
12420    
12421    /(?>^a)b/sI
12422    Capturing subpattern count = 0
12423    Options: anchored dotall
12424    No first char
12425    No need char
12426    
12427    /(?>.*?)(?<=(abcd)|(wxyz))/I
12428    Capturing subpattern count = 2
12429    No options
12430    No first char
12431    No need char
12432    Max lookbehind = 4
12433    
12434    /(?>.*)(?<=(abcd)|(wxyz))/I
12435    Capturing subpattern count = 2
12436    No options
12437    No first char
12438    No need char
12439    Max lookbehind = 4
12440    
12441    "(?>.*)foo"I
12442    Capturing subpattern count = 0
12443    No options
12444    No first char
12445    Need char = 'o'
12446    
12447    "(?>.*?)foo"I
12448    Capturing subpattern count = 0
12449    No options
12450    No first char
12451    Need char = 'o'
12452    
12453    /(?>^abc)/mI
12454    Capturing subpattern count = 0
12455    Options: multiline
12456    First char at start or follows newline
12457    Need char = 'c'
12458    
12459    /(?>.*abc)/mI
12460    Capturing subpattern count = 0
12461    Options: multiline
12462    No first char
12463    Need char = 'c'
12464    
12465    /(?:.*abc)/mI
12466    Capturing subpattern count = 0
12467    Options: multiline
12468    First char at start or follows newline
12469    Need char = 'c'
12470    
12471    /-- Check PCRE_STUDY_EXTRA_NEEDED --/
12472    
12473    /.?/S-I
12474    Capturing subpattern count = 0
12475    No options
12476    No first char
12477    No need char
12478    Study returned NULL
12479    
12480    /.?/S!I
12481    Capturing subpattern count = 0
12482    No options
12483    No first char
12484    No need char
12485    Subject length lower bound = -1
12486    No set of starting bytes
12487    
12488    /(?:(a)+(?C1)bb|aa(?C2)b)/
12489        aab\C+
12490    Callout 1: last capture = 1
12491     0: <unset>
12492     1: a
12493    --->aab
12494        ^ ^     b
12495    Callout 1: last capture = 1
12496     0: <unset>
12497     1: a
12498    --->aab
12499        ^^      b
12500    Callout 2: last capture = -1
12501     0: <unset>
12502    --->aab
12503        ^ ^     b
12504     0: aab
12505    
12506    /(?:(a)++(?C1)bb|aa(?C2)b)/
12507        aab\C+
12508    Callout 1: last capture = 1
12509     0: <unset>
12510     1: a
12511    --->aab
12512        ^ ^     b
12513    Callout 2: last capture = -1
12514     0: <unset>
12515    --->aab
12516        ^ ^     b
12517     0: aab
12518    
12519    /(?:(?>(a))(?C1)bb|aa(?C2)b)/
12520        aab\C+
12521    Callout 1: last capture = 1
12522     0: <unset>
12523     1: a
12524    --->aab
12525        ^^      b
12526    Callout 2: last capture = -1
12527     0: <unset>
12528    --->aab
12529        ^ ^     b
12530     0: aab
12531    
12532    /(?:(?1)(?C1)x|ab(?C2))((a)){0}/
12533        aab\C+
12534    Callout 1: last capture = -1
12535     0: <unset>
12536    --->aab
12537        ^^      x
12538    Callout 1: last capture = -1
12539     0: <unset>
12540    --->aab
12541         ^^     x
12542    Callout 2: last capture = -1
12543     0: <unset>
12544    --->aab
12545         ^ ^    )
12546     0: ab
12547    
12548    /(?1)(?C1)((a)(?C2)){0}/
12549        aab\C+
12550    Callout 2: last capture = 2
12551     0: <unset>
12552     1: <unset>
12553     2: a
12554    --->aab
12555        ^^      )
12556    Callout 1: last capture = -1
12557     0: <unset>
12558    --->aab
12559        ^^      ((a)(?C2)){0}
12560     0: a
12561    
12562    /(?:(a)+(?C1)bb|aa(?C2)b)++/
12563        aab\C+
12564    Callout 1: last capture = 1
12565     0: <unset>
12566     1: a
12567    --->aab
12568        ^ ^     b
12569    Callout 1: last capture = 1
12570     0: <unset>
12571     1: a
12572    --->aab
12573        ^^      b
12574    Callout 2: last capture = -1
12575     0: <unset>
12576    --->aab
12577        ^ ^     b
12578     0: aab
12579        aab\C+\O2
12580    Callout 1: last capture = 1
12581     0: <unset>
12582    --->aab
12583        ^ ^     b
12584    Callout 1: last capture = 1
12585     0: <unset>
12586    --->aab
12587        ^^      b
12588    Callout 2: last capture = -1
12589     0: <unset>
12590    --->aab
12591        ^ ^     b
12592     0: aab
12593    
12594    /(ab)x|ab/
12595        ab\O3
12596     0: ab
12597        ab\O2
12598     0: ab
12599    
12600    /(ab)/
12601        ab\O3
12602    Matched, but too many substrings
12603     0: ab
12604        ab\O2
12605    Matched, but too many substrings
12606     0: ab
12607    
12608    /(?<=123)(*MARK:xx)abc/K
12609        xxxx123a\P\P
12610    Partial match at offset 7, mark=xx: 123a
12611        xxxx123a\P
12612    Partial match at offset 7, mark=xx: 123a
12613    
12614    /123\Kabc/
12615        xxxx123a\P\P
12616    Partial match: 123a
12617        xxxx123a\P
12618    Partial match: 123a
12619    
12620    /^(?(?=a)aa|bb)/C
12621        bb
12622    --->bb
12623     +0 ^      ^
12624     +1 ^      (?(?=a)aa|bb)
12625     +3 ^      (?=a)
12626     +6 ^      a
12627    +11 ^      b
12628    +12 ^^     b
12629    +13 ^ ^    )
12630    +14 ^ ^
12631     0: bb
12632    
12633    /(?C1)^(?C2)(?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))(?C11)/
12634        bb
12635    --->bb
12636      1 ^      ^
12637      2 ^      (?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))
12638     99 ^      (?=(?C3)a(?C4))
12639      3 ^      a
12640      8 ^      b
12641      9 ^^     b
12642     10 ^ ^    )
12643     11 ^ ^
12644     0: bb
12645    
12646    /-- Perl seems to have a bug with this one --/
12647    
12648    /aaaaa(*COMMIT)(*PRUNE)b|a+c/
12649        aaaaaac
12650     0: aaaac
12651    
12652  /-- End of testinput2 --/  /-- End of testinput2 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5