/[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 271 by ph10, Fri Nov 16 19:58:26 2007 UTC revision 336 by ph10, Sat Apr 12 15:59:03 2008 UTC
# 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 9331  Failed: reference to non-existent subpat Line 9331  Failed: reference to non-existent subpat
9331    
9332  /(?(2))()()/  /(?(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  / End of testinput2 /  / End of testinput2 /

Legend:
Removed from v.271  
changed lines
  Added in v.336

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12