/[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 1284 by ph10, Fri Mar 15 11:54:58 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 12271  Partial match: \x0d\x0d Line 12339  Partial match: \x0d\x0d
12339      \r\r\r\P\P      \r\r\r\P\P
12340   0: \x0d\x0d   0: \x0d\x0d
12341    
12342  /-- 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
12343  to escape from the assertion. --/  COMMIT to escape from the assertion. --/
12344    
12345  /(?=a(*COMMIT)b|ac)ac|ac/  /(?=a(*COMMIT)b|ac)ac|ac/
12346      ac      ac
12347   0: ac   0: ac
12348    
12349    /(?=a(*COMMIT)b|(ac)) ac | (a)c/x
12350        ac
12351     0: ac
12352     1: <unset>
12353     2: a
12354    
12355    "AB(C(D))(E(F))?(?(?=\2)(?=\4))"
12356        ABCDGHI\O03
12357    Matched, but too many substrings
12358     0: ABCD
12359    
12360    /-- This one is here because Perl does not confine the *COMMIT to the
12361    assertion, and therefore fails the entire subroutine call. --/
12362    
12363    /((?=a(*COMMIT)b)ab|ac){0}(?:(?1)|a(c))/
12364        ac
12365     0: ac
12366    
12367    /-- These are all run as real matches in test 1; here we are just checking the
12368    settings of the anchored and startline bits. --/
12369    
12370    /(?>.*?a)(?<=ba)/I
12371    Capturing subpattern count = 0
12372    No options
12373    No first char
12374    Need char = 'a'
12375    Max lookbehind = 2
12376    
12377    /(?:.*?a)(?<=ba)/I
12378    Capturing subpattern count = 0
12379    No options
12380    First char at start or follows newline
12381    Need char = 'a'
12382    Max lookbehind = 2
12383    
12384    /.*?a(*PRUNE)b/I
12385    Capturing subpattern count = 0
12386    No options
12387    No first char
12388    Need char = 'b'
12389    
12390    /.*?a(*PRUNE)b/sI
12391    Capturing subpattern count = 0
12392    Options: dotall
12393    No first char
12394    Need char = 'b'
12395    
12396    /^a(*PRUNE)b/sI
12397    Capturing subpattern count = 0
12398    Options: anchored dotall
12399    No first char
12400    No need char
12401    
12402    /.*?a(*SKIP)b/I
12403    Capturing subpattern count = 0
12404    No options
12405    No first char
12406    Need char = 'b'
12407    
12408    /(?>.*?a)b/sI
12409    Capturing subpattern count = 0
12410    Options: dotall
12411    No first char
12412    Need char = 'b'
12413    
12414    /(?>.*?a)b/I
12415    Capturing subpattern count = 0
12416    No options
12417    No first char
12418    Need char = 'b'
12419    
12420    /(?>^a)b/sI
12421    Capturing subpattern count = 0
12422    Options: anchored dotall
12423    No first char
12424    No need char
12425    
12426    /(?>.*?)(?<=(abcd)|(wxyz))/I
12427    Capturing subpattern count = 2
12428    No options
12429    No first char
12430    No need char
12431    Max lookbehind = 4
12432    
12433    /(?>.*)(?<=(abcd)|(wxyz))/I
12434    Capturing subpattern count = 2
12435    No options
12436    No first char
12437    No need char
12438    Max lookbehind = 4
12439    
12440    "(?>.*)foo"I
12441    Capturing subpattern count = 0
12442    No options
12443    No first char
12444    Need char = 'o'
12445    
12446    "(?>.*?)foo"I
12447    Capturing subpattern count = 0
12448    No options
12449    No first char
12450    Need char = 'o'
12451    
12452    /(?>^abc)/mI
12453    Capturing subpattern count = 0
12454    Options: multiline
12455    First char at start or follows newline
12456    Need char = 'c'
12457    
12458    /(?>.*abc)/mI
12459    Capturing subpattern count = 0
12460    Options: multiline
12461    No first char
12462    Need char = 'c'
12463    
12464    /(?:.*abc)/mI
12465    Capturing subpattern count = 0
12466    Options: multiline
12467    First char at start or follows newline
12468    Need char = 'c'
12469    
12470    /-- Check PCRE_STUDY_EXTRA_NEEDED --/
12471    
12472    /.?/S-I
12473    Capturing subpattern count = 0
12474    No options
12475    No first char
12476    No need char
12477    Study returned NULL
12478    
12479    /.?/S!I
12480    Capturing subpattern count = 0
12481    No options
12482    No first char
12483    No need char
12484    Subject length lower bound = -1
12485    No set of starting bytes
12486    
12487    /(?:(a)+(?C1)bb|aa(?C2)b)/
12488        aab\C+
12489    Callout 1: last capture = 1
12490     0: <unset>
12491     1: a
12492    --->aab
12493        ^ ^     b
12494    Callout 1: last capture = 1
12495     0: <unset>
12496     1: a
12497    --->aab
12498        ^^      b
12499    Callout 2: last capture = -1
12500     0: <unset>
12501    --->aab
12502        ^ ^     b
12503     0: aab
12504    
12505    /(?:(a)++(?C1)bb|aa(?C2)b)/
12506        aab\C+
12507    Callout 1: last capture = 1
12508     0: <unset>
12509     1: a
12510    --->aab
12511        ^ ^     b
12512    Callout 2: last capture = -1
12513     0: <unset>
12514    --->aab
12515        ^ ^     b
12516     0: aab
12517    
12518    /(?:(?>(a))(?C1)bb|aa(?C2)b)/
12519        aab\C+
12520    Callout 1: last capture = 1
12521     0: <unset>
12522     1: a
12523    --->aab
12524        ^^      b
12525    Callout 2: last capture = -1
12526     0: <unset>
12527    --->aab
12528        ^ ^     b
12529     0: aab
12530    
12531    /(?:(?1)(?C1)x|ab(?C2))((a)){0}/
12532        aab\C+
12533    Callout 1: last capture = -1
12534     0: <unset>
12535    --->aab
12536        ^^      x
12537    Callout 1: last capture = -1
12538     0: <unset>
12539    --->aab
12540         ^^     x
12541    Callout 2: last capture = -1
12542     0: <unset>
12543    --->aab
12544         ^ ^    )
12545     0: ab
12546    
12547    /(?1)(?C1)((a)(?C2)){0}/
12548        aab\C+
12549    Callout 2: last capture = 2
12550     0: <unset>
12551     1: <unset>
12552     2: a
12553    --->aab
12554        ^^      )
12555    Callout 1: last capture = -1
12556     0: <unset>
12557    --->aab
12558        ^^      ((a)(?C2)){0}
12559     0: a
12560    
12561    /(?:(a)+(?C1)bb|aa(?C2)b)++/
12562        aab\C+
12563    Callout 1: last capture = 1
12564     0: <unset>
12565     1: a
12566    --->aab
12567        ^ ^     b
12568    Callout 1: last capture = 1
12569     0: <unset>
12570     1: a
12571    --->aab
12572        ^^      b
12573    Callout 2: last capture = -1
12574     0: <unset>
12575    --->aab
12576        ^ ^     b
12577     0: aab
12578        aab\C+\O2
12579    Callout 1: last capture = 1
12580     0: <unset>
12581    --->aab
12582        ^ ^     b
12583    Callout 1: last capture = 1
12584     0: <unset>
12585    --->aab
12586        ^^      b
12587    Callout 2: last capture = -1
12588     0: <unset>
12589    --->aab
12590        ^ ^     b
12591     0: aab
12592    
12593    /(ab)x|ab/
12594        ab\O3
12595     0: ab
12596        ab\O2
12597     0: ab
12598    
12599    /(ab)/
12600        ab\O3
12601    Matched, but too many substrings
12602     0: ab
12603        ab\O2
12604    Matched, but too many substrings
12605     0: ab
12606    
12607    /(?<=123)(*MARK:xx)abc/K
12608        xxxx123a\P\P
12609    Partial match at offset 7, mark=xx: 123a
12610        xxxx123a\P
12611    Partial match at offset 7, mark=xx: 123a
12612    
12613    /123\Kabc/
12614        xxxx123a\P\P
12615    Partial match: 123a
12616        xxxx123a\P
12617    Partial match: 123a
12618    
12619    /^(?(?=a)aa|bb)/C
12620        bb
12621    --->bb
12622     +0 ^      ^
12623     +1 ^      (?(?=a)aa|bb)
12624     +3 ^      (?=a)
12625     +6 ^      a
12626    +11 ^      b
12627    +12 ^^     b
12628    +13 ^ ^    )
12629    +14 ^ ^
12630     0: bb
12631    
12632    /(?C1)^(?C2)(?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))(?C11)/
12633        bb
12634    --->bb
12635      1 ^      ^
12636      2 ^      (?(?C99)(?=(?C3)a(?C4))(?C5)a(?C6)a(?C7)|(?C8)b(?C9)b(?C10))
12637     99 ^      (?=(?C3)a(?C4))
12638      3 ^      a
12639      8 ^      b
12640      9 ^^     b
12641     10 ^ ^    )
12642     11 ^ ^
12643     0: bb
12644    
12645    /-- Perl seems to have a bug with this one --/
12646    
12647    /aaaaa(*COMMIT)(*PRUNE)b|a+c/
12648        aaaaaac
12649     0: aaaac
12650    
12651  /-- End of testinput2 --/  /-- End of testinput2 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5