/[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 270 by ph10, Fri Nov 16 19:55:16 2007 UTC revision 342 by ph10, Sun Apr 20 17:10:13 2008 UTC
# Line 1126  Need char = 'X' Line 1126  Need char = 'X'
1126  /.*X/IDZs  /.*X/IDZs
1127  ------------------------------------------------------------------  ------------------------------------------------------------------
1128          Bra          Bra
1129          Any*          AllAny*
1130          X          X
1131          Ket          Ket
1132          End          End
# Line 1160  No need char Line 1160  No need char
1160  ------------------------------------------------------------------  ------------------------------------------------------------------
1161          Bra          Bra
1162          CBra 1          CBra 1
1163          Any*          AllAny*
1164          X          X
1165          Alt          Alt
1166          ^          ^
# Line 1179  No need char Line 1179  No need char
1179  ------------------------------------------------------------------  ------------------------------------------------------------------
1180          Bra          Bra
1181          CBra 1          CBra 1
1182          Any*          AllAny*
1183          X          X
1184          Alt          Alt
1185          ^          ^
# Line 1199  No need char Line 1199  No need char
1199          Bra          Bra
1200          Bra          Bra
1201       04 Opt       04 Opt
1202          Any*          AllAny*
1203          X          X
1204          Alt          Alt
1205       04 Opt       04 Opt
# Line 1212  No need char Line 1212  No need char
1212  ------------------------------------------------------------------  ------------------------------------------------------------------
1213  Capturing subpattern count = 0  Capturing subpattern count = 0
1214  Partial matching not supported  Partial matching not supported
1215  No options  Options: anchored
1216  First char at start or follows newline  No first char
1217  No need char  No need char
1218    
1219  /\Biss\B/I+  /\Biss\B/I+
# Line 8074  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 8217  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 9304  First char = 'a' Line 9304  First char = 'a'
9304  Need char = 'b'  Need char = 'b'
9305    
9306  /(?<a>)(?&)/  /(?<a>)(?&)/
9307  Failed: subpattern name expected after (?& at offset 9  Failed: subpattern name expected at offset 9
9308    
9309  /(?<abc>)(?&a)/  /(?<abc>)(?&a)/
9310  Failed: reference to non-existent subpattern at offset 12  Failed: reference to non-existent subpattern at offset 12
# Line 9318  Failed: digit expected after (?+ at offs Line 9318  Failed: digit expected after (?+ at offs
9318  /(?-+a)/  /(?-+a)/
9319  Failed: unrecognized character after (? or (?- at offset 3  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    /^(?+1)(?<a>x|y){0}z/
9519        xzxx
9520     0: xz
9521     1: <unset>
9522        yzyy
9523     0: yz
9524     1: <unset>
9525        ** Failers
9526    No match
9527        xxz
9528    No match
9529    
9530    /(\3)(\1)(a)/
9531        cat
9532    No match
9533    
9534    /(\3)(\1)(a)/<JS>
9535        cat
9536     0: a
9537     1:
9538     2:
9539     3: a
9540    
9541    /TA]/
9542        The ACTA] comes
9543     0: TA]
9544    
9545    /TA]/<JS>
9546    Failed: ] is an invalid data character in JavaScript compatibility mode at offset 2
9547    
9548    /(?2)[]a()b](abc)/
9549    Failed: reference to non-existent subpattern at offset 3
9550    
9551    /(?2)[^]a()b](abc)/
9552    Failed: reference to non-existent subpattern at offset 3
9553    
9554    /(?1)[]a()b](abc)/
9555        abcbabc
9556     0: abcbabc
9557     1: abc
9558        ** Failers
9559    No match
9560        abcXabc
9561    No match
9562    
9563    /(?1)[^]a()b](abc)/
9564        abcXabc
9565     0: abcXabc
9566     1: abc
9567        ** Failers
9568    No match
9569        abcbabc
9570    No match
9571    
9572    /(?2)[]a()b](abc)(xyz)/
9573        xyzbabcxyz
9574     0: xyzbabcxyz
9575     1: abc
9576     2: xyz
9577    
9578    /(?&N)[]a(?<N>)](?<M>abc)/
9579    Failed: reference to non-existent subpattern at offset 4
9580    
9581    /(?&N)[]a(?<N>)](abc)/
9582    Failed: reference to non-existent subpattern at offset 4
9583    
9584    /a[]b/
9585    Failed: missing terminating ] for character class at offset 4
9586    
9587    /a[^]b/
9588    Failed: missing terminating ] for character class at offset 5
9589    
9590    /a[]b/<JS>
9591        ** Failers
9592    No match
9593        ab
9594    No match
9595    
9596    /a[]+b/<JS>
9597        ** Failers
9598    No match
9599        ab
9600    No match
9601    
9602    /a[]*+b/<JS>
9603        ** Failers
9604    No match
9605        ab
9606    No match
9607    
9608    /a[^]b/<JS>
9609        aXb
9610     0: aXb
9611        a\nb
9612     0: a\x0ab
9613        ** Failers
9614    No match
9615        ab
9616    No match
9617    
9618    /a[^]+b/<JS>
9619        aXb
9620     0: aXb
9621        a\nX\nXb
9622     0: a\x0aX\x0aXb
9623        ** Failers
9624    No match
9625        ab
9626    No match
9627    
9628    /a(?!)+b/
9629    Failed: nothing to repeat at offset 5
9630    
9631    /a(*FAIL)+b/
9632    Failed: nothing to repeat at offset 8
9633    
9634  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.270  
changed lines
  Added in v.342

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12