"Fossies" - the Fresh Open Source Software Archive

Member "tin-2.4.1/pcre/testdata/testinput8" (28 Aug 2013, 9623 Bytes) of package /linux/misc/tin-2.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /-- Do not use the \x{} construct except with patterns that have the --/
    2 /-- /8 option set, because PCRE doesn't recognize them as UTF-8 unless --/
    3 /-- that option is set. However, the latest Perls recognize them always. --/
    4 
    5 /\x{100}ab/8
    6   \x{100}ab
    7   
    8 /a\x{100}*b/8
    9     ab
   10     a\x{100}b  
   11     a\x{100}\x{100}b  
   12     
   13 /a\x{100}+b/8
   14     a\x{100}b  
   15     a\x{100}\x{100}b  
   16     *** Failers 
   17     ab
   18      
   19 /\bX/8
   20     Xoanon
   21     +Xoanon
   22     \x{300}Xoanon 
   23     *** Failers 
   24     YXoanon  
   25     
   26 /\BX/8
   27     YXoanon
   28     *** Failers
   29     Xoanon
   30     +Xoanon    
   31     \x{300}Xoanon 
   32 
   33 /X\b/8
   34     X+oanon
   35     ZX\x{300}oanon 
   36     FAX 
   37     *** Failers 
   38     Xoanon  
   39     
   40 /X\B/8
   41     Xoanon  
   42     *** Failers
   43     X+oanon
   44     ZX\x{300}oanon 
   45     FAX 
   46     
   47 /[^a]/8
   48     abcd
   49     a\x{100}   
   50 
   51 /^[abc\x{123}\x{400}-\x{402}]{2,3}\d/8
   52     ab99
   53     \x{123}\x{123}45
   54     \x{400}\x{401}\x{402}6  
   55     *** Failers
   56     d99
   57     \x{123}\x{122}4   
   58     \x{400}\x{403}6  
   59     \x{400}\x{401}\x{402}\x{402}6  
   60 
   61 /abc/8
   62     ร]
   63    64     รรร
   65     รรร\?
   66 
   67 /a.b/8
   68     acb
   69     a\x7fb
   70     a\x{100}b 
   71     *** Failers
   72     a\nb  
   73 
   74 /a(.{3})b/8
   75     a\x{4000}xyb 
   76     a\x{4000}\x7fyb 
   77     a\x{4000}\x{100}yb 
   78     *** Failers
   79     a\x{4000}b 
   80     ac\ncb 
   81 
   82 /a(.*?)(.)/
   83     a\xc0\x88b
   84 
   85 /a(.*?)(.)/8
   86     a\x{100}b
   87 
   88 /a(.*)(.)/
   89     a\xc0\x88b
   90 
   91 /a(.*)(.)/8
   92     a\x{100}b
   93 
   94 /a(.)(.)/
   95     a\xc0\x92bcd
   96 
   97 /a(.)(.)/8
   98     a\x{240}bcd
   99 
  100 /a(.?)(.)/
  101     a\xc0\x92bcd
  102 
  103 /a(.?)(.)/8
  104     a\x{240}bcd
  105 
  106 /a(.??)(.)/
  107     a\xc0\x92bcd
  108 
  109 /a(.??)(.)/8
  110     a\x{240}bcd
  111 
  112 /a(.{3})b/8
  113     a\x{1234}xyb 
  114     a\x{1234}\x{4321}yb 
  115     a\x{1234}\x{4321}\x{3412}b 
  116     *** Failers
  117     a\x{1234}b 
  118     ac\ncb 
  119 
  120 /a(.{3,})b/8
  121     a\x{1234}xyb 
  122     a\x{1234}\x{4321}yb 
  123     a\x{1234}\x{4321}\x{3412}b 
  124     axxxxbcdefghijb 
  125     a\x{1234}\x{4321}\x{3412}\x{3421}b 
  126     *** Failers
  127     a\x{1234}b 
  128 
  129 /a(.{3,}?)b/8
  130     a\x{1234}xyb 
  131     a\x{1234}\x{4321}yb 
  132     a\x{1234}\x{4321}\x{3412}b 
  133     axxxxbcdefghijb 
  134     a\x{1234}\x{4321}\x{3412}\x{3421}b 
  135     *** Failers
  136     a\x{1234}b 
  137 
  138 /a(.{3,5})b/8
  139     a\x{1234}xyb 
  140     a\x{1234}\x{4321}yb 
  141     a\x{1234}\x{4321}\x{3412}b 
  142     axxxxbcdefghijb 
  143     a\x{1234}\x{4321}\x{3412}\x{3421}b 
  144     axbxxbcdefghijb 
  145     axxxxxbcdefghijb 
  146     *** Failers
  147     a\x{1234}b 
  148     axxxxxxbcdefghijb 
  149 
  150 /a(.{3,5}?)b/8
  151     a\x{1234}xyb 
  152     a\x{1234}\x{4321}yb 
  153     a\x{1234}\x{4321}\x{3412}b 
  154     axxxxbcdefghijb 
  155     a\x{1234}\x{4321}\x{3412}\x{3421}b 
  156     axbxxbcdefghijb 
  157     axxxxxbcdefghijb 
  158     *** Failers
  159     a\x{1234}b 
  160     axxxxxxbcdefghijb 
  161 
  162 /^[a\x{c0}]/8
  163     *** Failers
  164     \x{100}
  165 
  166 /(?<=aXb)cd/8
  167     aXbcd
  168 
  169 /(?<=a\x{100}b)cd/8
  170     a\x{100}bcd
  171 
  172 /(?<=a\x{100000}b)cd/8
  173     a\x{100000}bcd
  174     
  175 /(?:\x{100}){3}b/8
  176     \x{100}\x{100}\x{100}b
  177     *** Failers 
  178     \x{100}\x{100}b
  179 
  180 /\x{ab}/8
  181     \x{ab} 
  182     \xc2\xab
  183     *** Failers 
  184     \x00{ab}
  185 
  186 /(?<=(.))X/8
  187     WXYZ
  188     \x{256}XYZ 
  189     *** Failers
  190     XYZ 
  191 
  192 /[^a]+/8g
  193     bcd
  194     \x{100}aY\x{256}Z 
  195     
  196 /^[^a]{2}/8
  197     \x{100}bc
  198  
  199 /^[^a]{2,}/8
  200     \x{100}bcAa
  201 
  202 /^[^a]{2,}?/8
  203     \x{100}bca
  204 
  205 /[^a]+/8ig
  206     bcd
  207     \x{100}aY\x{256}Z 
  208     
  209 /^[^a]{2}/8i
  210     \x{100}bc
  211  
  212 /^[^a]{2,}/8i
  213     \x{100}bcAa
  214 
  215 /^[^a]{2,}?/8i
  216     \x{100}bca
  217 
  218 /\x{100}{0,0}/8
  219     abcd
  220  
  221 /\x{100}?/8
  222     abcd
  223     \x{100}\x{100} 
  224 
  225 /\x{100}{0,3}/8 
  226     \x{100}\x{100} 
  227     \x{100}\x{100}\x{100}\x{100} 
  228     
  229 /\x{100}*/8
  230     abce
  231     \x{100}\x{100}\x{100}\x{100} 
  232 
  233 /\x{100}{1,1}/8
  234     abcd\x{100}\x{100}\x{100}\x{100} 
  235 
  236 /\x{100}{1,3}/8
  237     abcd\x{100}\x{100}\x{100}\x{100} 
  238 
  239 /\x{100}+/8
  240     abcd\x{100}\x{100}\x{100}\x{100} 
  241 
  242 /\x{100}{3}/8
  243     abcd\x{100}\x{100}\x{100}XX
  244 
  245 /\x{100}{3,5}/8
  246     abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  247 
  248 /\x{100}{3,}/8
  249     abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
  250 
  251 /(?<=a\x{100}{2}b)X/8
  252     Xyyya\x{100}\x{100}bXzzz
  253 
  254 /\D*/8
  255   aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  256 
  257 /\D*/8
  258   \x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
  259 
  260 /\D/8
  261     1X2
  262     1\x{100}2 
  263   
  264 />\S/8
  265     > >X Y
  266     > >\x{100} Y
  267   
  268 /\d/8
  269     \x{100}3
  270     
  271 /\s/8
  272     \x{100} X
  273     
  274 /\D+/8
  275     12abcd34
  276     *** Failers
  277     1234  
  278 
  279 /\D{2,3}/8
  280     12abcd34
  281     12ab34
  282     *** Failers  
  283     1234
  284     12a34  
  285 
  286 /\D{2,3}?/8
  287     12abcd34
  288     12ab34
  289     *** Failers  
  290     1234
  291     12a34  
  292 
  293 /\d+/8
  294     12abcd34
  295     *** Failers
  296 
  297 /\d{2,3}/8
  298     12abcd34
  299     1234abcd
  300     *** Failers  
  301     1.4 
  302 
  303 /\d{2,3}?/8
  304     12abcd34
  305     1234abcd
  306     *** Failers  
  307     1.4 
  308 
  309 /\S+/8
  310     12abcd34
  311     *** Failers
  312     \    \ 
  313 
  314 /\S{2,3}/8
  315     12abcd34
  316     1234abcd
  317     *** Failers
  318     \     \  
  319 
  320 /\S{2,3}?/8
  321     12abcd34
  322     1234abcd
  323     *** Failers
  324     \     \  
  325 
  326 />\s+</8
  327     12>      <34
  328     *** Failers
  329 
  330 />\s{2,3}</8
  331     ab>  <cd
  332     ab>   <ce
  333     *** Failers
  334     ab>    <cd 
  335 
  336 />\s{2,3}?</8
  337     ab>  <cd
  338     ab>   <ce
  339     *** Failers
  340     ab>    <cd 
  341 
  342 /\w+/8
  343     12      34
  344     *** Failers
  345     +++=*! 
  346 
  347 /\w{2,3}/8
  348     ab  cd
  349     abcd ce
  350     *** Failers
  351     a.b.c
  352 
  353 /\w{2,3}?/8
  354     ab  cd
  355     abcd ce
  356     *** Failers
  357     a.b.c
  358 
  359 /\W+/8
  360     12====34
  361     *** Failers
  362     abcd 
  363 
  364 /\W{2,3}/8
  365     ab====cd
  366     ab==cd
  367     *** Failers
  368     a.b.c
  369 
  370 /\W{2,3}?/8
  371     ab====cd
  372     ab==cd
  373     *** Failers
  374     a.b.c
  375 
  376 /[\x{100}]/8
  377     \x{100}
  378     Z\x{100}
  379     \x{100}Z
  380     *** Failers 
  381 
  382 /[Z\x{100}]/8
  383     Z\x{100}
  384     \x{100}
  385     \x{100}Z
  386     *** Failers 
  387 
  388 /[\x{100}\x{200}]/8
  389    ab\x{100}cd
  390    ab\x{200}cd
  391    *** Failers  
  392 
  393 /[\x{100}-\x{200}]/8
  394    ab\x{100}cd
  395    ab\x{200}cd
  396    ab\x{111}cd 
  397    *** Failers  
  398 
  399 /[z-\x{200}]/8
  400    ab\x{100}cd
  401    ab\x{200}cd
  402    ab\x{111}cd 
  403    abzcd
  404    ab|cd  
  405    *** Failers  
  406 
  407 /[Q\x{100}\x{200}]/8
  408    ab\x{100}cd
  409    ab\x{200}cd
  410    Q? 
  411    *** Failers  
  412 
  413 /[Q\x{100}-\x{200}]/8
  414    ab\x{100}cd
  415    ab\x{200}cd
  416    ab\x{111}cd 
  417    Q? 
  418    *** Failers  
  419 
  420 /[Qz-\x{200}]/8
  421    ab\x{100}cd
  422    ab\x{200}cd
  423    ab\x{111}cd 
  424    abzcd
  425    ab|cd  
  426    Q? 
  427    *** Failers  
  428 
  429 /[\x{100}\x{200}]{1,3}/8
  430    ab\x{100}cd
  431    ab\x{200}cd
  432    ab\x{200}\x{100}\x{200}\x{100}cd
  433    *** Failers  
  434 
  435 /[\x{100}\x{200}]{1,3}?/8
  436    ab\x{100}cd
  437    ab\x{200}cd
  438    ab\x{200}\x{100}\x{200}\x{100}cd
  439    *** Failers  
  440 
  441 /[Q\x{100}\x{200}]{1,3}/8
  442    ab\x{100}cd
  443    ab\x{200}cd
  444    ab\x{200}\x{100}\x{200}\x{100}cd
  445    *** Failers  
  446 
  447 /[Q\x{100}\x{200}]{1,3}?/8
  448    ab\x{100}cd
  449    ab\x{200}cd
  450    ab\x{200}\x{100}\x{200}\x{100}cd
  451    *** Failers  
  452 
  453 /(?<=[\x{100}\x{200}])X/8
  454     abc\x{200}X
  455     abc\x{100}X 
  456     *** Failers
  457     X  
  458 
  459 /(?<=[Q\x{100}\x{200}])X/8
  460     abc\x{200}X
  461     abc\x{100}X 
  462     abQX 
  463     *** Failers
  464     X  
  465 
  466 /(?<=[\x{100}\x{200}]{3})X/8
  467     abc\x{100}\x{200}\x{100}X
  468     *** Failers
  469     abc\x{200}X
  470     X  
  471 
  472 /[^\x{100}\x{200}]X/8
  473     AX
  474     \x{150}X
  475     \x{500}X 
  476     *** Failers
  477     \x{100}X
  478     \x{200}X   
  479 
  480 /[^Q\x{100}\x{200}]X/8
  481     AX
  482     \x{150}X
  483     \x{500}X 
  484     *** Failers
  485     \x{100}X
  486     \x{200}X   
  487     QX 
  488 
  489 /[^\x{100}-\x{200}]X/8
  490     AX
  491     \x{500}X 
  492     *** Failers
  493     \x{100}X
  494     \x{150}X
  495     \x{200}X   
  496 
  497 /[z-\x{100}]/8i
  498     z
  499     Z 
  500     \x{100}
  501     *** Failers
  502     \x{102}
  503     y    
  504 
  505 /[\xFF]/
  506     >\xff<
  507 
  508 /[\xff]/8
  509     >\x{ff}<
  510 
  511 /[^\xFF]/
  512     XYZ
  513 
  514 /[^\xff]/8
  515     XYZ
  516     \x{123} 
  517 
  518 /^[ac]*b/8
  519   xb
  520 
  521 /^[ac\x{100}]*b/8
  522   xb
  523 
  524 /^[^x]*b/8i
  525   xb
  526 
  527 /^[^x]*b/8
  528   xb
  529   
  530 /^\d*b/8
  531   xb 
  532 
  533 /(|a)/g8
  534     catac
  535     a\x{256}a 
  536 
  537 /^\x{85}$/8i
  538     \x{85}
  539 
  540 /^abc./mgx8<any>
  541     abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
  542 
  543 /abc.$/mgx8<any>
  544     abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
  545 
  546 /^a\Rb/8
  547     a\nb
  548     a\rb
  549     a\r\nb
  550     a\x0bb
  551     a\x0cb
  552     a\x{85}b   
  553     a\x{2028}b 
  554     a\x{2029}b 
  555     ** Failers
  556     a\n\rb    
  557 
  558 /^a\R*b/8
  559     ab
  560     a\nb
  561     a\rb
  562     a\r\nb
  563     a\x0bb
  564     a\x0c\x{2028}\x{2029}b
  565     a\x{85}b   
  566     a\n\rb    
  567     a\n\r\x{85}\x0cb 
  568 
  569 /^a\R+b/8
  570     a\nb
  571     a\rb
  572     a\r\nb
  573     a\x0bb
  574     a\x0c\x{2028}\x{2029}b
  575     a\x{85}b   
  576     a\n\rb    
  577     a\n\r\x{85}\x0cb 
  578     ** Failers
  579     ab  
  580 
  581 /^a\R{1,3}b/8
  582     a\nb
  583     a\n\rb
  584     a\n\r\x{85}b
  585     a\r\n\r\nb 
  586     a\r\n\r\n\r\nb 
  587     a\n\r\n\rb
  588     a\n\n\r\nb 
  589     ** Failers
  590     a\n\n\n\rb
  591     a\r
  592 
  593 / End of testinput 8 /