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

Diff of /code/trunk/testdata/testinput2

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

revision 41 by nigel, Sat Feb 24 21:39:17 2007 UTC revision 53 by nigel, Sat Feb 24 21:39:42 2007 UTC
# Line 40  Line 40 
40    
41  /[\B]/  /[\B]/
42    
 /[a-\w]/  
   
43  /[z-a]/  /[z-a]/
44    
45  /^*/  /^*/
# Line 591  Line 589 
589      aaaabbbbzzzz\O3      aaaabbbbzzzz\O3
590      aaaabbbbzzzz\O4      aaaabbbbzzzz\O4
591      aaaabbbbzzzz\O5      aaaabbbbzzzz\O5
592    
593    /^.?abcd/S
594    
595    /\(             # ( at start
596      (?:           # Non-capturing bracket
597      (?>[^()]+)    # Either a sequence of non-brackets (no backtracking)
598      |             # Or
599      (?R)          # Recurse - i.e. nested bracketed string
600      )*            # Zero or more contents
601      \)            # Closing )
602      /x
603        (abcd)
604        (abcd)xyz
605        xyz(abcd)
606        (ab(xy)cd)pqr
607        (ab(xycd)pqr
608        () abc ()
609        12(abcde(fsh)xyz(foo(bar))lmno)89
610        *** Failers
611        abcd
612        abcd)
613        (abcd
614    
615    /\(  ( (?>[^()]+) | (?R) )* \) /xg
616        (ab(xy)cd)pqr
617        1(abcd)(x(y)z)pqr
618    
619    /\(  (?: (?>[^()]+) | (?R) ) \) /x
620        (abcd)
621        (ab(xy)cd)
622        (a(b(c)d)e)
623        ((ab))
624        *** Failers
625        ()
626    
627    /\(  (?: (?>[^()]+) | (?R) )? \) /x
628        ()
629        12(abcde(fsh)xyz(foo(bar))lmno)89
630    
631    /\(  ( (?>[^()]+) | (?R) )* \) /x
632        (ab(xy)cd)
633    
634    /\( ( ( (?>[^()]+) | (?R) )* ) \) /x
635        (ab(xy)cd)
636    
637    /\( (123)? ( ( (?>[^()]+) | (?R) )* ) \) /x
638        (ab(xy)cd)
639        (123ab(xy)cd)
640    
641    /\( ( (123)? ( (?>[^()]+) | (?R) )* ) \) /x
642        (ab(xy)cd)
643        (123ab(xy)cd)
644    
645    /\( (((((((((( ( (?>[^()]+) | (?R) )* )))))))))) \) /x
646        (ab(xy)cd)
647    
648    /\( ( ( (?>[^()<>]+) | ((?>[^()]+)) | (?R) )* ) \) /x
649        (abcd(xyz<p>qrs)123)
650    
651    /\( ( ( (?>[^()]+) | ((?R)) )* ) \) /x
652        (ab(cd)ef)
653        (ab(cd(ef)gh)ij)
654    
655    /^[[:alnum:]]/D
656    
657    /^[[:alpha:]]/D
658    
659    /^[[:ascii:]]/D
660    
661    /^[[:cntrl:]]/D
662    
663    /^[[:digit:]]/D
664    
665    /^[[:graph:]]/D
666    
667    /^[[:lower:]]/D
668    
669    /^[[:print:]]/D
670    
671    /^[[:punct:]]/D
672    
673  / End of test input /  /^[[:space:]]/D
674    
675    /^[[:upper:]]/D
676    
677    /^[[:xdigit:]]/D
678    
679    /^[[:word:]]/D
680    
681    /^[[:^cntrl:]]/D
682    
683    /^[12[:^digit:]]/D
684    
685    /[01[:alpha:]%]/D
686    
687    /[[.ch.]]/
688    
689    /[[=ch=]]/
690    
691    /[[:rhubarb:]]/
692    
693    /[[:upper:]]/i
694        A
695        a
696    
697    /[[:lower:]]/i
698        A
699        a
700    
701    /((?-i)[[:lower:]])[[:lower:]]/i
702        ab
703        aB
704        *** Failers
705        Ab
706        AB
707    
708    /[\200-\410]/
709    
710    /^(?(0)f|b)oo/
711    
712    /This one's here because of the large output vector needed/
713    
714    /(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(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|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\d+(?:\s|$))(\w+)\s+(\270)/
715        \O900 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 ABC ABC
716    
717    /This one's here because Perl does this differently and PCRE can't at present/
718    
719    /(main(O)?)+/
720        mainmain
721        mainOmain
722    
723    / End of testinput2 /

Legend:
Removed from v.41  
changed lines
  Added in v.53

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12