/[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 264 by ph10, Tue Nov 13 11:07:16 2007 UTC revision 334 by ph10, Fri Apr 11 15:48:14 2008 UTC
# Line 109  Failed: missing ) at offset 4 Line 109  Failed: missing ) at offset 4
109  Failed: missing ) after comment at offset 7  Failed: missing ) after comment at offset 7
110    
111  /(?z)abc/  /(?z)abc/
112  Failed: unrecognized character after (? at offset 2  Failed: unrecognized character after (? or (?- at offset 2
113    
114  /.*b/I  /.*b/I
115  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 310  No match Line 310  No match
310  No match  No match
311    
312  /ab(?z)cd/  /ab(?z)cd/
313  Failed: unrecognized character after (? at offset 4  Failed: unrecognized character after (? or (?- at offset 4
314    
315  /^abc|def/I  /^abc|def/I
316  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 946  Failed: missing ) at offset 4 Line 946  Failed: missing ) at offset 4
946  Failed: unrecognized character after (?< at offset 3  Failed: unrecognized character after (?< at offset 3
947    
948  /a(?{)b/  /a(?{)b/
949  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
950    
951  /a(?{{})b/  /a(?{{})b/
952  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
953    
954  /a(?{}})b/  /a(?{}})b/
955  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
956    
957  /a(?{"{"})b/  /a(?{"{"})b/
958  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
959    
960  /a(?{"{"}})b/  /a(?{"{"}})b/
961  Failed: unrecognized character after (? at offset 3  Failed: unrecognized character after (? or (?- at offset 3
962    
963  /(?(1?)a|b)/  /(?(1?)a|b)/
964  Failed: malformed number or name after (?( at offset 4  Failed: malformed number or name after (?( at offset 4
965    
 /(?(1)a|b|c)/  
 Failed: conditional group contains more than two branches at offset 10  
   
966  /[a[:xyz:/  /[a[:xyz:/
967  Failed: missing terminating ] for character class at offset 8  Failed: missing terminating ] for character class at offset 8
968    
# Line 1599  No options Line 1596  No options
1596  First char = 'a'  First char = 'a'
1597  Need char = 'b'  Need char = 'b'
1598    
1599  /a(?(1)b)/I  /a(?(1)b)(.)/I
1600  Capturing subpattern count = 0  Capturing subpattern count = 1
1601  No options  No options
1602  First char = 'a'  First char = 'a'
1603  No need char  No need char
1604    
1605  /a(?(1)bag|big)/I  /a(?(1)bag|big)(.)/I
1606  Capturing subpattern count = 0  Capturing subpattern count = 1
1607  No options  No options
1608  First char = 'a'  First char = 'a'
1609  Need char = 'g'  Need char = 'g'
1610    
1611  /a(?(1)bag|big)*/I  /a(?(1)bag|big)*(.)/I
1612  Capturing subpattern count = 0  Capturing subpattern count = 1
1613  No options  No options
1614  First char = 'a'  First char = 'a'
1615  No need char  No need char
1616    
1617  /a(?(1)bag|big)+/I  /a(?(1)bag|big)+(.)/I
1618  Capturing subpattern count = 0  Capturing subpattern count = 1
1619  No options  No options
1620  First char = 'a'  First char = 'a'
1621  Need char = 'g'  Need char = 'g'
1622    
1623  /a(?(1)b..|b..)/I  /a(?(1)b..|b..)(.)/I
1624  Capturing subpattern count = 0  Capturing subpattern count = 1
1625  No options  No options
1626  First char = 'a'  First char = 'a'
1627  Need char = 'b'  Need char = 'b'
# Line 1905  No need char Line 1902  No need char
1902  ------------------------------------------------------------------  ------------------------------------------------------------------
1903          Bra          Bra
1904          ^          ^
1905          [\x00-/:-@[-`{-\xff]          [\x00-/:-@[-`{-\xff] (neg)
1906          Ket          Ket
1907          End          End
1908  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1931  No need char Line 1928  No need char
1928  ------------------------------------------------------------------  ------------------------------------------------------------------
1929          Bra          Bra
1930          ^          ^
1931          [\x00-@[-`{-\xff]          [\x00-@[-`{-\xff] (neg)
1932          Ket          Ket
1933          End          End
1934  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1965  No need char Line 1962  No need char
1962  ------------------------------------------------------------------  ------------------------------------------------------------------
1963          Bra          Bra
1964          ^          ^
1965          [\x80-\xff]          [\x80-\xff] (neg)
1966          Ket          Ket
1967          End          End
1968  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 1991  No need char Line 1988  No need char
1988  ------------------------------------------------------------------  ------------------------------------------------------------------
1989          Bra          Bra
1990          ^          ^
1991          [\x00-\x08\x0a-\x1f!-\xff]          [\x00-\x08\x0a-\x1f!-\xff] (neg)
1992          Ket          Ket
1993          End          End
1994  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2142  No need char Line 2139  No need char
2139  ------------------------------------------------------------------  ------------------------------------------------------------------
2140          Bra          Bra
2141          ^          ^
2142          [ -~\x80-\xff]          [ -~\x80-\xff] (neg)
2143          Ket          Ket
2144          End          End
2145  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2155  No need char Line 2152  No need char
2152  ------------------------------------------------------------------  ------------------------------------------------------------------
2153          Bra          Bra
2154          ^          ^
2155          [\x00-/12:-\xff]          [\x00-/12:-\xff] (neg)
2156          Ket          Ket
2157          End          End
2158  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 2168  No need char Line 2165  No need char
2165  ------------------------------------------------------------------  ------------------------------------------------------------------
2166          Bra          Bra
2167          ^          ^
2168          [\x00-\x08\x0a-\x1f!-\xff]          [\x00-\x08\x0a-\x1f!-\xff] (neg)
2169          Ket          Ket
2170          End          End
2171  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 3441  No options Line 3438  No options
3438  No first char  No first char
3439  Need char = 'a'  Need char = 'a'
3440    
3441  /(?(1)ab|ac)/I  /(?(1)ab|ac)(.)/I
3442  Capturing subpattern count = 0  Capturing subpattern count = 1
3443  No options  No options
3444  First char = 'a'  First char = 'a'
3445  No need char  No need char
3446    
3447  /(?(1)abz|acz)/I  /(?(1)abz|acz)(.)/I
3448  Capturing subpattern count = 0  Capturing subpattern count = 1
3449  No options  No options
3450  First char = 'a'  First char = 'a'
3451  Need char = 'z'  Need char = 'z'
3452    
3453  /(?(1)abz)/I  /(?(1)abz)(.)/I
3454  Capturing subpattern count = 0  Capturing subpattern count = 1
3455  No options  No options
3456  No first char  No first char
3457  No need char  No need char
3458    
3459  /(?(1)abz)123/I  /(?(1)abz)(1)23/I
3460  Capturing subpattern count = 0  Capturing subpattern count = 1
3461  No options  No options
3462  No first char  No first char
3463  Need char = '3'  Need char = '3'
# Line 8077  No match Line 8074  No match
8074  Failed: reference to non-existent subpattern at offset 7  Failed: reference to non-existent subpattern at offset 7
8075    
8076  /^(a)\g/  /^(a)\g/
8077  Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 5  Failed: a numbered reference must not be zero at offset 5
8078    
8079  /^(a)\g{0}/  /^(a)\g{0}/
8080  Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 7  Failed: a numbered reference must not be zero at offset 8
8081    
8082  /^(a)\g{3/  /^(a)\g{3/
8083  Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 8  Failed: \g is not followed by a braced, angle-bracketed, or quoted name/number or by a plain number at offset 8
8084    
8085  /^(a)\g{4a}/  /^(a)\g{4a}/
8086  Failed: reference to non-existent subpattern at offset 9  Failed: reference to non-existent subpattern at offset 9
# Line 8220  No match Line 8217  No match
8217  No match  No match
8218    
8219  /x(?-0)y/  /x(?-0)y/
8220  Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5  Failed: a numbered reference must not be zero at offset 5
8221    
8222  /x(?-1)y/  /x(?-1)y/
8223  Failed: reference to non-existent subpattern at offset 5  Failed: reference to non-existent subpattern at offset 5
8224    
8225  /x(?+0)y/  /x(?+0)y/
8226  Failed: (?+ or (?- or (?(+ or (?(- must be followed by a non-zero number at offset 5  Failed: a numbered reference must not be zero at offset 5
8227    
8228  /x(?+1)y/  /x(?+1)y/
8229  Failed: reference to non-existent subpattern at offset 5  Failed: reference to non-existent subpattern at offset 5
# Line 8308  Failed: reference to non-existent subpat Line 8305  Failed: reference to non-existent subpat
8305  /((?(-2)a))/BZ  /((?(-2)a))/BZ
8306  Failed: reference to non-existent subpattern at offset 7  Failed: reference to non-existent subpattern at offset 7
8307    
8308  /^(?(+1)X|Y)/BZ  /^(?(+1)X|Y)(.)/BZ
8309  ------------------------------------------------------------------  ------------------------------------------------------------------
8310          Bra          Bra
8311          ^          ^
# Line 8318  Failed: reference to non-existent subpat Line 8315  Failed: reference to non-existent subpat
8315          Alt          Alt
8316          Y          Y
8317          Ket          Ket
8318            CBra 1
8319            Any
8320            Ket
8321          Ket          Ket
8322          End          End
8323  ------------------------------------------------------------------  ------------------------------------------------------------------
8324      Y      Y!
8325   0: Y   0: Y!
8326     1: !
8327    
8328  /(foo)\Kbar/  /(foo)\Kbar/
8329      foobar      foobar
# Line 9302  Forced newline sequence: CR Line 9303  Forced newline sequence: CR
9303  First char = 'a'  First char = 'a'
9304  Need char = 'b'  Need char = 'b'
9305    
9306    /(?<a>)(?&)/
9307    Failed: subpattern name expected at offset 9
9308    
9309    /(?<abc>)(?&a)/
9310    Failed: reference to non-existent subpattern at offset 12
9311    
9312    /(?<a>)(?&aaaaaaaaaaaaaaaaaaaaaaa)/
9313    Failed: reference to non-existent subpattern at offset 32
9314    
9315    /(?+-a)/
9316    Failed: digit expected after (?+ at offset 3
9317    
9318    /(?-+a)/
9319    Failed: unrecognized character after (? or (?- at offset 3
9320    
9321    /(?(-1))/
9322    Failed: reference to non-existent subpattern at offset 6
9323    
9324    /(?(+10))/
9325    Failed: reference to non-existent subpattern at offset 7
9326    
9327    /(?(10))/
9328    Failed: reference to non-existent subpattern at offset 6
9329    
9330    /(?(+2))()()/
9331    
9332    /(?(2))()()/
9333    
9334    /\k''/
9335    Failed: subpattern name expected at offset 3
9336    
9337    /\k<>/
9338    Failed: subpattern name expected at offset 3
9339    
9340    /\k{}/
9341    Failed: subpattern name expected at offset 3
9342    
9343    /(?P=)/
9344    Failed: subpattern name expected at offset 4
9345    
9346    /(?P>)/
9347    Failed: subpattern name expected at offset 4
9348    
9349    /(?!\w)(?R)/
9350    Failed: recursive call could loop indefinitely at offset 9
9351    
9352    /(?=\w)(?R)/
9353    Failed: recursive call could loop indefinitely at offset 9
9354    
9355    /(?<!\w)(?R)/
9356    Failed: recursive call could loop indefinitely at offset 10
9357    
9358    /(?<=\w)(?R)/
9359    Failed: recursive call could loop indefinitely at offset 10
9360    
9361    /[[:foo:]]/
9362    Failed: unknown POSIX class name at offset 3
9363    
9364    /[[:1234:]]/
9365    Failed: unknown POSIX class name at offset 3
9366    
9367    /[[:f\oo:]]/
9368    Failed: unknown POSIX class name at offset 3
9369    
9370    /[[: :]]/
9371    Failed: unknown POSIX class name at offset 3
9372    
9373    /[[:...:]]/
9374    Failed: unknown POSIX class name at offset 3
9375    
9376    /[[:l\ower:]]/
9377    Failed: unknown POSIX class name at offset 3
9378    
9379    /[[:abc\:]]/
9380    Failed: unknown POSIX class name at offset 3
9381    
9382    /[abc[:x\]pqr:]]/
9383    Failed: unknown POSIX class name at offset 6
9384    
9385    /[[:a\dz:]]/
9386    Failed: unknown POSIX class name at offset 3
9387    
9388    /^(?<name>a|b\g<name>c)/
9389        aaaa
9390     0: a
9391     1: a
9392        bacxxx
9393     0: bac
9394     1: bac
9395        bbaccxxx
9396     0: bbacc
9397     1: bbacc
9398        bbbacccxx
9399     0: bbbaccc
9400     1: bbbaccc
9401    
9402    /^(?<name>a|b\g'name'c)/
9403        aaaa
9404     0: a
9405     1: a
9406        bacxxx
9407     0: bac
9408     1: bac
9409        bbaccxxx
9410     0: bbacc
9411     1: bbacc
9412        bbbacccxx
9413     0: bbbaccc
9414     1: bbbaccc
9415    
9416    /^(a|b\g<1>c)/
9417        aaaa
9418     0: a
9419     1: a
9420        bacxxx
9421     0: bac
9422     1: bac
9423        bbaccxxx
9424     0: bbacc
9425     1: bbacc
9426        bbbacccxx
9427     0: bbbaccc
9428     1: bbbaccc
9429    
9430    /^(a|b\g'1'c)/
9431        aaaa
9432     0: a
9433     1: a
9434        bacxxx
9435     0: bac
9436     1: bac
9437        bbaccxxx
9438     0: bbacc
9439     1: bbacc
9440        bbbacccxx
9441     0: bbbaccc
9442     1: bbbaccc
9443    
9444    /^(a|b\g'-1'c)/
9445        aaaa
9446     0: a
9447     1: a
9448        bacxxx
9449     0: bac
9450     1: bac
9451        bbaccxxx
9452     0: bbacc
9453     1: bbacc
9454        bbbacccxx
9455     0: bbbaccc
9456     1: bbbaccc
9457    
9458    /(^(a|b\g<-1>c))/
9459        aaaa
9460     0: a
9461     1: a
9462     2: a
9463        bacxxx
9464     0: bac
9465     1: bac
9466     2: bac
9467        bbaccxxx
9468     0: bbacc
9469     1: bbacc
9470     2: bbacc
9471        bbbacccxx
9472     0: bbbaccc
9473     1: bbbaccc
9474     2: bbbaccc
9475    
9476    /(^(a|b\g<-1'c))/
9477    Failed: \g is not followed by a braced, angle-bracketed, or quoted name/number or by a plain number at offset 15
9478    
9479    /(^(a|b\g{-1}))/
9480        bacxxx
9481    No match
9482    
9483    /(?-i:\g<name>)(?i:(?<name>a))/
9484        XaaX
9485     0: aa
9486     1: a
9487        XAAX
9488     0: AA
9489     1: A
9490    
9491    /(?i:\g<name>)(?-i:(?<name>a))/
9492        XaaX
9493     0: aa
9494     1: a
9495        ** Failers
9496    No match
9497        XAAX
9498    No match
9499    
9500    /(?-i:\g<+1>)(?i:(a))/
9501        XaaX
9502     0: aa
9503     1: a
9504        XAAX
9505     0: AA
9506     1: A
9507    
9508    /(?=(?<regex>(?#simplesyntax)\$(?<name>[a-zA-Z_\x{7f}-\x{ff}][a-zA-Z0-9_\x{7f}-\x{ff}]*)(?:\[(?<index>[a-zA-Z0-9_\x{7f}-\x{ff}]+|\$\g<name>)\]|->\g<name>(\(.*?\))?)?|(?#simple syntax withbraces)\$\{(?:\g<name>(?<indices>\[(?:\g<index>|'(?:\\.|[^'\\])*'|"(?:\g<regex>|\\.|[^"\\])*")\])?|\g<complex>|\$\{\g<complex>\})\}|(?#complexsyntax)\{(?<complex>\$(?<segment>\g<name>(\g<indices>*|\(.*?\))?)(?:->\g<segment>)*|\$\g<complex>|\$\{\g<complex>\})\}))\{/
9509    
9510    /(?<n>a|b|c)\g<n>*/
9511       abc
9512     0: abc
9513     1: a
9514       accccbbb
9515     0: accccbbb
9516     1: a
9517    
9518  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.264  
changed lines
  Added in v.334

  ViewVC Help
Powered by ViewVC 1.1.5