/[pcre]/code/trunk/testdata/testinput11
ViewVC logotype

Diff of /code/trunk/testdata/testinput11

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 559 by ph10, Wed Oct 27 09:45:20 2010 UTC revision 743 by ph10, Tue Nov 8 09:59:38 2011 UTC
# Line 246  Line 246 
246      aaabccc      aaabccc
247    
248  /(A (A|B(*ACCEPT)|C) D)(E)/x  /(A (A|B(*ACCEPT)|C) D)(E)/x
249        AB
250      ABX      ABX
251      AADE      AADE
252      ACDE      ACDE
# Line 403  Line 404 
404      AC      AC
405      CB      CB
406    
407  /(*MARK:A)(*SKIP:B)(C|X)/K  /--- Force no study, otherwise mark is not seen. The studied version is in
408         test 2 because it isn't Perl-compatible. ---/
409    
410    /(*MARK:A)(*SKIP:B)(C|X)/KSS
411      C      C
412      D      D
413    
# Line 435  with the handling of backtracking verbs. Line 439  with the handling of backtracking verbs.
439  /A(*:A)A+(*SKIP:A)(B|Z) | AC/xK  /A(*:A)A+(*SKIP:A)(B|Z) | AC/xK
440      AAAC      AAAC
441    
442  /--- Don't loop! ---/  /--- Don't loop! Force no study, otherwise mark is not seen. ---/
443    
444  /(*:A)A+(*SKIP:A)(B|Z)/K  /(*:A)A+(*SKIP:A)(B|Z)/KSS
445      AAAC      AAAC
446    
447  /--- This should succeed, as a non-existent skip name disables the skip ---/  /--- This should succeed, as a non-existent skip name disables the skip ---/
# Line 491  however, we need the complication for Pe Line 495  however, we need the complication for Pe
495  /(?>(*COMMIT)(yes|no)(*THEN)(*F))?/  /(?>(*COMMIT)(yes|no)(*THEN)(*F))?/
496    yes    yes
497    
 /^((yes|no)(*THEN)(*F))?/  
   yes  
   
498  /b?(*SKIP)c/  /b?(*SKIP)c/
499      bc      bc
500      abc      abc
# Line 504  however, we need the complication for Pe Line 505  however, we need the complication for Pe
505  /(*SKIP)b/  /(*SKIP)b/
506      a      a
507    
508    /(?P<abn>(?P=abn)xxx|)+/
509        xxx
510    
511    /(?i:([^b]))(?1)/
512        aa
513        aA
514        ** Failers
515        ab
516        aB
517        Ba
518        ba
519    
520    /^(?&t)*+(?(DEFINE)(?<t>a))\w$/
521        aaaaaaX
522        ** Failers
523        aaaaaa
524    
525    /^(?&t)*(?(DEFINE)(?<t>a))\w$/
526        aaaaaaX
527        aaaaaa
528    
529    /^(a)*+(\w)/
530        aaaaX
531        YZ
532        ** Failers
533        aaaa
534    
535    /^(?:a)*+(\w)/
536        aaaaX
537        YZ
538        ** Failers
539        aaaa
540    
541    /^(a)++(\w)/
542        aaaaX
543        ** Failers
544        aaaa
545        YZ
546    
547    /^(?:a)++(\w)/
548        aaaaX
549        ** Failers
550        aaaa
551        YZ
552    
553    /^(a)?+(\w)/
554        aaaaX
555        YZ
556    
557    /^(?:a)?+(\w)/
558        aaaaX
559        YZ
560    
561    /^(a){2,}+(\w)/
562        aaaaX
563        ** Failers
564        aaa
565        YZ
566    
567    /^(?:a){2,}+(\w)/
568        aaaaX
569        ** Failers
570        aaa
571        YZ
572    
573    /(a|)*(?1)b/
574        b
575        ab
576        aab
577    
578    /(a)++(?1)b/
579        ** Failers
580        ab
581        aab
582    
583    /(a)*+(?1)b/
584        ** Failers
585        ab
586        aab
587    
588    /(?1)(?:(b)){0}/
589        b
590    
591    /(foo ( \( ((?:(?> [^()]+ )|(?2))*) \) ) )/x
592        foo(bar(baz)+baz(bop))
593    
594    /(A (A|B(*ACCEPT)|C) D)(E)/x
595        AB
596    
597    /\A.*?(?:a|b(*THEN)c)/
598        ba
599    
600    /\A.*?(?:a|bc)/
601        ba
602    
603    /\A.*?(a|b(*THEN)c)/
604        ba
605    
606    /\A.*?(a|bc)/
607        ba
608    
609    /\A.*?(?:a|b(*THEN)c)++/
610        ba
611    
612    /\A.*?(?:a|bc)++/
613        ba
614    
615    /\A.*?(a|b(*THEN)c)++/
616        ba
617    
618    /\A.*?(a|bc)++/
619        ba
620    
621    /\A.*?(?:a|b(*THEN)c|d)/
622        ba
623    
624    /\A.*?(?:a|bc|d)/
625        ba
626    
627    /(?:(b))++/
628        beetle
629    
630    /(?(?=(a(*ACCEPT)z))a)/
631        a
632    
633    /^(a)(?1)+ab/
634        aaaab
635    
636    /^(a)(?1)++ab/
637        aaaab
638    
639    /^(?=a(*:M))aZ/K
640        aZbc
641    
642    /^(?!(*:M)b)aZ/K
643        aZbc
644    
645    /(?(DEFINE)(a))?b(?1)/
646        backgammon
647    
648    /^\N+/
649        abc\ndef
650    
651    /^\N{1,}/
652        abc\ndef
653    
654    /(?(R)a+|(?R)b)/
655        aaaabcde
656    
657    /(?(R)a+|((?R))b)/
658        aaaabcde
659    
660    /((?(R)a+|(?1)b))/
661        aaaabcde
662    
663    /((?(R1)a+|(?1)b))/
664        aaaabcde
665    
666    /a(*:any
667    name)/K
668        abc
669    
670    /(?>(?&t)c|(?&t))(?(DEFINE)(?<t>a|b(*PRUNE)c))/
671        a
672        ba
673        bba
674    
675    /--- Checking revised (*THEN) handling ---/
676    
677    /--- Capture ---/
678    
679    /^.*? (a(*THEN)b) c/x
680        aabc
681    
682    /^.*? (a(*THEN)b|(*F)) c/x
683        aabc
684    
685    /^.*? ( (a(*THEN)b) | (*F) ) c/x
686        aabc
687    
688    /^.*? ( (a(*THEN)b) ) c/x
689        aabc
690    
691    /--- Non-capture ---/
692    
693    /^.*? (?:a(*THEN)b) c/x
694        aabc
695    
696    /^.*? (?:a(*THEN)b|(*F)) c/x
697        aabc
698    
699    /^.*? (?: (?:a(*THEN)b) | (*F) ) c/x
700        aabc
701    
702    /^.*? (?: (?:a(*THEN)b) ) c/x
703        aabc
704    
705    /--- Atomic ---/
706    
707    /^.*? (?>a(*THEN)b) c/x
708        aabc
709    
710    /^.*? (?>a(*THEN)b|(*F)) c/x
711        aabc
712    
713    /^.*? (?> (?>a(*THEN)b) | (*F) ) c/x
714        aabc
715    
716    /^.*? (?> (?>a(*THEN)b) ) c/x
717        aabc
718    
719    /--- Possessive capture ---/
720    
721    /^.*? (a(*THEN)b)++ c/x
722        aabc
723    
724    /^.*? (a(*THEN)b|(*F))++ c/x
725        aabc
726    
727    /^.*? ( (a(*THEN)b)++ | (*F) )++ c/x
728        aabc
729    
730    /^.*? ( (a(*THEN)b)++ )++ c/x
731        aabc
732    
733    /--- Possessive non-capture ---/
734    
735    /^.*? (?:a(*THEN)b)++ c/x
736        aabc
737    
738    /^.*? (?:a(*THEN)b|(*F))++ c/x
739        aabc
740    
741    /^.*? (?: (?:a(*THEN)b)++ | (*F) )++ c/x
742        aabc
743    
744    /^.*? (?: (?:a(*THEN)b)++ )++ c/x
745        aabc
746    
747    /--- Condition assertion ---/
748    
749    /^(?(?=a(*THEN)b)ab|ac)/
750        ac
751    
752    /--- Condition ---/
753    
754    /^.*?(?(?=a)a|b(*THEN)c)/
755        ba
756    
757    /^.*?(?:(?(?=a)a|b(*THEN)c)|d)/
758        ba
759    
760    /^.*?(?(?=a)a(*THEN)b|c)/
761        ac
762    
763    /--- Assertion ---/
764    
765    /^.*(?=a(*THEN)b)/
766        aabc
767    
768    /------------------------------/
769    
770    /(?>a(*:m))/imsxSK
771        a
772    
773    /(?>(a)(*:m))/imsxSK
774        a
775    
776  /-- End of testinput11 --/  /-- End of testinput11 --/

Legend:
Removed from v.559  
changed lines
  Added in v.743

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12