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

Diff of /code/trunk/testdata/testoutput8

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

revision 1362 by ph10, Wed May 15 16:53:18 2013 UTC revision 1363 by ph10, Tue Oct 1 16:54:40 2013 UTC
# Line 25  No match Line 25  No match
25      ab      ab
26  No match  No match
27    
28  /a*/  /a*/O
29      a      a
30   0: a   0: a
31   1:   1:
# Line 341  No match Line 341  No match
341      axyzq      axyzq
342  No match  No match
343    
344  /[^a]+/  /[^a]+/O
345      bac      bac
346   0: b   0: b
347      bcdefax      bcdefax
# Line 359  No match Line 359  No match
359      aaaaa      aaaaa
360  No match  No match
361    
362  /[^a]*/  /[^a]*/O
363      bac      bac
364   0: b   0: b
365   1:   1:
# Line 380  No match Line 380  No match
380      aaaaa      aaaaa
381   0:   0:
382    
383  /[^a]{3,5}/  /[^a]{3,5}/O
384      xyz      xyz
385   0: xyz   0: xyz
386      awxyza      awxyza
# Line 408  No match Line 408  No match
408  /\d*/  /\d*/
409      1234b567      1234b567
410   0: 1234   0: 1234
  1: 123  
  2: 12  
  3: 1  
  4:  
411      xyz      xyz
412   0:   0:
413    
414  /\D*/  /\D*/
415      a1234b567      a1234b567
416   0: a   0: a
  1:  
417      xyz      xyz
418   0: xyz   0: xyz
  1: xy  
  2: x  
  3:  
419    
420  /\d+/  /\d+/
421      ab1234c56      ab1234c56
422   0: 1234   0: 1234
  1: 123  
  2: 12  
  3: 1  
423      *** Failers      *** Failers
424  No match  No match
425      xyz      xyz
# Line 439  No match Line 428  No match
428  /\D+/  /\D+/
429      ab123c56      ab123c56
430   0: ab   0: ab
  1: a  
431      *** Failers      *** Failers
432   0: *** Failers   0: *** Failers
  1: *** Failer  
  2: *** Faile  
  3: *** Fail  
  4: *** Fai  
  5: *** Fa  
  6: *** F  
  7: ***  
  8: ***  
  9: **  
 10: *  
433      789      789
434  No match  No match
435    
# Line 478  No match Line 456  No match
456  /a+/  /a+/
457      aaaa      aaaa
458   0: aaaa   0: aaaa
  1: aaa  
  2: aa  
  3: a  
459    
460  /^.*xyz/  /^.*xyz/
461      xyz      xyz
# Line 886  No match Line 861  No match
861   0:   0:
862      aaabcd      aaabcd
863   0: aaa   0: aaa
  1: aa  
  2: a  
  3:  
864      xyz      xyz
865   0: xyz   0: xyz
866   1:   1:
# Line 1744  No match Line 1716  No match
1716  /foo(?!bar)(.*)/  /foo(?!bar)(.*)/
1717      foobar is foolish see?      foobar is foolish see?
1718   0: foolish see?   0: foolish see?
  1: foolish see  
  2: foolish se  
  3: foolish s  
  4: foolish  
  5: foolish  
  6: foolis  
  7: fooli  
  8: fool  
  9: foo  
1719    
1720  /(?:(?!foo)...|^.{0,2})bar(.*)/  /(?:(?!foo)...|^.{0,2})bar(.*)/
1721      foobar crowbar etc      foobar crowbar etc
1722   0: rowbar etc   0: rowbar etc
  1: rowbar et  
  2: rowbar e  
  3: rowbar  
  4: rowbar  
1723      barrel      barrel
1724   0: barrel   0: barrel
  1: barre  
  2: barr  
  3: bar  
1725      2barrel      2barrel
1726   0: 2barrel   0: 2barrel
  1: 2barre  
  2: 2barr  
  3: 2bar  
1727      A barrel      A barrel
1728   0: A barrel   0: A barrel
  1: A barre  
  2: A barr  
  3: A bar  
1729    
1730  /^(\D*)(?=\d)(?!123)/  /^(\D*)(?=\d)(?!123)/
1731      abc456      abc456
# Line 1820  No match Line 1770  No match
1770      the abc      the abc
1771  No match  No match
1772    
1773  /^[ab]{1,3}(ab*|b)/  /^[ab]{1,3}(ab*|b)/O
1774      aabbbbb      aabbbbb
1775   0: aabbbbb   0: aabbbbb
1776   1: aabbbb   1: aabbbb
# Line 1829  No match Line 1779  No match
1779   4: aab   4: aab
1780   5: aa   5: aa
1781    
1782  /^[ab]{1,3}?(ab*|b)/  /^[ab]{1,3}?(ab*|b)/O
1783      aabbbbb      aabbbbb
1784   0: aabbbbb   0: aabbbbb
1785   1: aabbbb   1: aabbbb
# Line 1838  No match Line 1788  No match
1788   4: aab   4: aab
1789   5: aa   5: aa
1790    
1791  /^[ab]{1,3}?(ab*?|b)/  /^[ab]{1,3}?(ab*?|b)/O
1792      aabbbbb      aabbbbb
1793   0: aabbbbb   0: aabbbbb
1794   1: aabbbb   1: aabbbb
# Line 1847  No match Line 1797  No match
1797   4: aab   4: aab
1798   5: aa   5: aa
1799    
1800  /^[ab]{1,3}(ab*?|b)/  /^[ab]{1,3}(ab*?|b)/O
1801      aabbbbb      aabbbbb
1802   0: aabbbbb   0: aabbbbb
1803   1: aabbbb   1: aabbbb
# Line 2705  No match Line 2655  No match
2655  /\0*/  /\0*/
2656      \0\0\0\0      \0\0\0\0
2657   0: \x00\x00\x00\x00   0: \x00\x00\x00\x00
  1: \x00\x00\x00  
  2: \x00\x00  
  3: \x00  
  4:  
2658    
2659  /A\x0{2,3}Z/  /A\x0{2,3}Z/
2660      The A\x0\x0Z      The A\x0\x0Z
# Line 2760  No match Line 2706  No match
2706  /([^.]*)\.([^:]*):[T ]+(.*)/  /([^.]*)\.([^:]*):[T ]+(.*)/
2707      track1.title:TBlah blah blah      track1.title:TBlah blah blah
2708   0: track1.title:TBlah blah blah   0: track1.title:TBlah blah blah
  1: track1.title:TBlah blah bla  
  2: track1.title:TBlah blah bl  
  3: track1.title:TBlah blah b  
  4: track1.title:TBlah blah  
  5: track1.title:TBlah blah  
  6: track1.title:TBlah bla  
  7: track1.title:TBlah bl  
  8: track1.title:TBlah b  
  9: track1.title:TBlah  
 10: track1.title:TBlah  
 11: track1.title:TBla  
 12: track1.title:TBl  
 13: track1.title:TB  
 14: track1.title:T  
2709    
2710  /([^.]*)\.([^:]*):[T ]+(.*)/i  /([^.]*)\.([^:]*):[T ]+(.*)/i
2711      track1.title:TBlah blah blah      track1.title:TBlah blah blah
2712   0: track1.title:TBlah blah blah   0: track1.title:TBlah blah blah
  1: track1.title:TBlah blah bla  
  2: track1.title:TBlah blah bl  
  3: track1.title:TBlah blah b  
  4: track1.title:TBlah blah  
  5: track1.title:TBlah blah  
  6: track1.title:TBlah bla  
  7: track1.title:TBlah bl  
  8: track1.title:TBlah b  
  9: track1.title:TBlah  
 10: track1.title:TBlah  
 11: track1.title:TBla  
 12: track1.title:TBl  
 13: track1.title:TB  
 14: track1.title:T  
2713    
2714  /([^.]*)\.([^:]*):[t ]+(.*)/i  /([^.]*)\.([^:]*):[t ]+(.*)/i
2715      track1.title:TBlah blah blah      track1.title:TBlah blah blah
2716   0: track1.title:TBlah blah blah   0: track1.title:TBlah blah blah
  1: track1.title:TBlah blah bla  
  2: track1.title:TBlah blah bl  
  3: track1.title:TBlah blah b  
  4: track1.title:TBlah blah  
  5: track1.title:TBlah blah  
  6: track1.title:TBlah bla  
  7: track1.title:TBlah bl  
  8: track1.title:TBlah b  
  9: track1.title:TBlah  
 10: track1.title:TBlah  
 11: track1.title:TBla  
 12: track1.title:TBl  
 13: track1.title:TB  
 14: track1.title:T  
2717    
2718  /^[W-c]+$/  /^[W-c]+$/
2719      WXY_^abc      WXY_^abc
# Line 2882  No match Line 2786  No match
2786   0: b   0: b
2787      c::b      c::b
2788   0: ::   0: ::
  1: :  
2789    
2790  /[-az]+/  /[-az]+/
2791      az-      az-
# Line 3077  No match Line 2980  No match
2980   1: baNOTccc   1: baNOTccc
2981   2: baNOTcc   2: baNOTcc
2982   3: baNOTc   3: baNOTc
  4: baNOT  
2983      baNOTcccd      baNOTcccd
2984   0: baNOTccc   0: baNOTccc
2985   1: baNOTcc   1: baNOTcc
2986   2: baNOTc   2: baNOTc
  3: baNOT  
2987      baNOTccd      baNOTccd
2988   0: baNOTcc   0: baNOTcc
2989   1: baNOTc   1: baNOTc
  2: baNOT  
2990      bacccd      bacccd
2991   0: baccc   0: baccc
2992      *** Failers      *** Failers
# Line 3096  No match Line 2996  No match
2996   3: *** Fail   3: *** Fail
2997   4: *** Fai   4: *** Fai
2998   5: *** Fa   5: *** Fa
  6: *** F  
2999      anything      anything
3000  No match  No match
3001      b\bc      b\bc
# Line 3115  No match Line 3014  No match
3014  /[^a]+/  /[^a]+/
3015      AAAaAbc      AAAaAbc
3016   0: AAA   0: AAA
  1: AA  
  2: A  
3017    
3018  /[^a]+/i  /[^a]+/i
3019      AAAaAbc      AAAaAbc
3020   0: bc   0: bc
  1: b  
3021    
3022  /[^a]+/  /[^a]+/
3023      bbb\nccc      bbb\nccc
3024   0: bbb\x0accc   0: bbb\x0accc
  1: bbb\x0acc  
  2: bbb\x0ac  
  3: bbb\x0a  
  4: bbb  
  5: bb  
  6: b  
3025    
3026  /[^k]$/  /[^k]$/
3027      abc      abc
# Line 3208  No match Line 3098  No match
3098  /(\.\d\d[1-9]?)\d+/  /(\.\d\d[1-9]?)\d+/
3099      1.230003938      1.230003938
3100   0: .230003938   0: .230003938
  1: .23000393  
  2: .2300039  
  3: .230003  
  4: .23000  
  5: .2300  
  6: .230  
3101      1.875000282      1.875000282
3102   0: .875000282   0: .875000282
  1: .87500028  
  2: .8750002  
  3: .875000  
  4: .87500  
  5: .8750  
  6: .875  
3103      1.235      1.235
3104   0: .235   0: .235
3105    
# Line 3243  No match Line 3121  No match
3121  /\b(foo)\s+(\w+)/i  /\b(foo)\s+(\w+)/i
3122      Food is on the foo table      Food is on the foo table
3123   0: foo table   0: foo table
  1: foo tabl  
  2: foo tab  
  3: foo ta  
  4: foo t  
3124    
3125  /foo(.*)bar/  /foo(.*)bar/
3126      The food is under the bar in the barn.      The food is under the bar in the barn.
# Line 3258  No match Line 3132  No match
3132   0: food is under the bar in the bar   0: food is under the bar in the bar
3133   1: food is under the bar   1: food is under the bar
3134    
3135  /(.*)(\d*)/  /(.*)(\d*)/O
3136      I have 2 numbers: 53147      I have 2 numbers: 53147
3137  Matched, but offsets vector is too small to show all matches  Matched, but offsets vector is too small to show all matches
3138   0: I have 2 numbers: 53147   0: I have 2 numbers: 53147
# Line 3287  Matched, but offsets vector is too small Line 3161  Matched, but offsets vector is too small
3161  /(.*)(\d+)/  /(.*)(\d+)/
3162      I have 2 numbers: 53147      I have 2 numbers: 53147
3163   0: I have 2 numbers: 53147   0: I have 2 numbers: 53147
3164   1: I have 2 numbers: 5314   1: I have 2
  2: I have 2 numbers: 531  
  3: I have 2 numbers: 53  
  4: I have 2 numbers: 5  
  5: I have 2  
3165    
3166  /(.*?)(\d*)/  /(.*?)(\d*)/O
3167      I have 2 numbers: 53147      I have 2 numbers: 53147
3168  Matched, but offsets vector is too small to show all matches  Matched, but offsets vector is too small to show all matches
3169   0: I have 2 numbers: 53147   0: I have 2 numbers: 53147
# Line 3322  Matched, but offsets vector is too small Line 3192  Matched, but offsets vector is too small
3192  /(.*?)(\d+)/  /(.*?)(\d+)/
3193      I have 2 numbers: 53147      I have 2 numbers: 53147
3194   0: I have 2 numbers: 53147   0: I have 2 numbers: 53147
3195   1: I have 2 numbers: 5314   1: I have 2
  2: I have 2 numbers: 531  
  3: I have 2 numbers: 53  
  4: I have 2 numbers: 5  
  5: I have 2  
3196    
3197  /(.*)(\d+)$/  /(.*)(\d+)$/
3198      I have 2 numbers: 53147      I have 2 numbers: 53147
# Line 3738  No match Line 3604  No match
3604   0: a   0: a
3605      ab      ab
3606   0: ab   0: ab
  1: a  
3607      abbbb      abbbb
3608   0: abbbb   0: abbbb
  1: abbb  
  2: abb  
  3: ab  
  4: a  
3609      *** Failers      *** Failers
3610   0: a   0: a
3611      bbbbb      bbbbb
# Line 3930  No match Line 3791  No match
3791  /(?>(\.\d\d[1-9]?))\d+/  /(?>(\.\d\d[1-9]?))\d+/
3792      1.230003938      1.230003938
3793   0: .230003938   0: .230003938
  1: .23000393  
  2: .2300039  
  3: .230003  
  4: .23000  
  5: .2300  
  6: .230  
3794      1.875000282      1.875000282
3795   0: .875000282   0: .875000282
  1: .87500028  
  2: .8750002  
  3: .875000  
  4: .87500  
  5: .8750  
3796      *** Failers      *** Failers
3797  No match  No match
3798      1.235      1.235
# Line 4561  No match Line 4411  No match
4411  /.{3,4}/  /.{3,4}/
4412      abbbbc      abbbbc
4413   0: abbb   0: abbb
  1: abb  
4414    
4415  /ab{0,}bc/  /ab{0,}bc/
4416      abbbbc      abbbbc
# Line 4966  No match Line 4815  No match
4815  /ab*/  /ab*/
4816      xabyabbbz      xabyabbbz
4817   0: ab   0: ab
  1: a  
4818      xayabbbz      xayabbbz
4819   0: a   0: a
4820    
# Line 4995  No match Line 4843  No match
4843  /a([bc]*)c*/  /a([bc]*)c*/
4844      abc      abc
4845   0: abc   0: abc
4846   1: ab   1: a
  2: a  
4847    
4848  /a([bc]*)(c*d)/  /a([bc]*)(c*d)/
4849      abcd      abcd
# Line 5079  No match Line 4926  No match
4926  /(.*)c(.*)/  /(.*)c(.*)/
4927      abcde      abcde
4928   0: abcde   0: abcde
  1: abcd  
  2: abc  
4929    
4930  /\((.*), (.*)\)/  /\((.*), (.*)\)/
4931      (a, b)      (a, b)
# Line 5427  No match Line 5272  No match
5272  /ab*/i  /ab*/i
5273      XABYABBBZ      XABYABBBZ
5274   0: AB   0: AB
  1: A  
5275      XAYABBBZ      XAYABBBZ
5276   0: A   0: A
5277    
# Line 5458  No match Line 5302  No match
5302  /a([bc]*)c*/i  /a([bc]*)c*/i
5303      ABC      ABC
5304   0: ABC   0: ABC
5305   1: AB   1: A
  2: A  
5306    
5307  /a([bc]*)(c*d)/i  /a([bc]*)(c*d)/i
5308      ABCD      ABCD
# Line 5546  No match Line 5389  No match
5389  /(.*)c(.*)/i  /(.*)c(.*)/i
5390      ABCDE      ABCDE
5391   0: ABCDE   0: ABCDE
  1: ABCD  
  2: ABC  
5392    
5393  /\((.*), (.*)\)/i  /\((.*), (.*)\)/i
5394      (A, B)      (A, B)
# Line 6196  No match Line 6037  No match
6037  /a*/g  /a*/g
6038      abbab      abbab
6039   0: a   0: a
  1:  
6040   0:   0:
6041   0:   0:
6042   0: a   0: a
  1:  
6043   0:   0:
6044   0:   0:
6045    
# Line 6253  No match Line 6092  No match
6092  /\s+/  /\s+/
6093      > \x09\x0a\x0c\x0d\x0b<      > \x09\x0a\x0c\x0d\x0b<
6094   0:  \x09\x0a\x0c\x0d   0:  \x09\x0a\x0c\x0d
  1:  \x09\x0a\x0c  
  2:  \x09\x0a  
  3:  \x09  
  4:  
6095    
6096  /a b/x  /a b/x
6097      ab      ab
# Line 6661  No match Line 6496  No match
6496  /.*/<lf>  /.*/<lf>
6497      abc\ndef      abc\ndef
6498   0: abc   0: abc
  1: ab  
  2: a  
  3:  
6499      abc\rdef      abc\rdef
6500   0: abc\x0ddef   0: abc\x0ddef
  1: abc\x0dde  
  2: abc\x0dd  
  3: abc\x0d  
  4: abc  
  5: ab  
  6: a  
  7:  
6501      abc\r\ndef      abc\r\ndef
6502   0: abc\x0d   0: abc\x0d
  1: abc  
  2: ab  
  3: a  
  4:  
6503      \<cr>abc\ndef      \<cr>abc\ndef
6504   0: abc\x0adef   0: abc\x0adef
  1: abc\x0ade  
  2: abc\x0ad  
  3: abc\x0a  
  4: abc  
  5: ab  
  6: a  
  7:  
6505      \<cr>abc\rdef      \<cr>abc\rdef
6506   0: abc   0: abc
  1: ab  
  2: a  
  3:  
6507      \<cr>abc\r\ndef      \<cr>abc\r\ndef
6508   0: abc   0: abc
  1: ab  
  2: a  
  3:  
6509      \<crlf>abc\ndef      \<crlf>abc\ndef
6510   0: abc\x0adef   0: abc\x0adef
  1: abc\x0ade  
  2: abc\x0ad  
  3: abc\x0a  
  4: abc  
  5: ab  
  6: a  
  7:  
6511      \<crlf>abc\rdef      \<crlf>abc\rdef
6512   0: abc\x0ddef   0: abc\x0ddef
  1: abc\x0dde  
  2: abc\x0dd  
  3: abc\x0d  
  4: abc  
  5: ab  
  6: a  
  7:  
6513      \<crlf>abc\r\ndef      \<crlf>abc\r\ndef
6514   0: abc   0: abc
  1: ab  
  2: a  
  3:  
6515    
6516  /\w+(.)(.)?def/s  /\w+(.)(.)?def/s
6517      abc\ndef      abc\ndef
# Line 7033  No match Line 6824  No match
6824  /\H*\h+\V?\v{3,4}/  /\H*\h+\V?\v{3,4}/
6825      \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a      \x09\x20\xa0X\x0a\x0b\x0c\x0d\x0a
6826   0: \x09 \xa0X\x0a\x0b\x0c\x0d   0: \x09 \xa0X\x0a\x0b\x0c\x0d
  1: \x09 \xa0X\x0a\x0b\x0c  
6827      \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a      \x09\x20\xa0\x0a\x0b\x0c\x0d\x0a
6828   0: \x09 \xa0\x0a\x0b\x0c\x0d   0: \x09 \xa0\x0a\x0b\x0c\x0d
  1: \x09 \xa0\x0a\x0b\x0c  
6829      \x09\x20\xa0\x0a\x0b\x0c      \x09\x20\xa0\x0a\x0b\x0c
6830   0: \x09 \xa0\x0a\x0b\x0c   0: \x09 \xa0\x0a\x0b\x0c
6831      ** Failers      ** Failers
# Line 7047  No match Line 6836  No match
6836  /\H{3,4}/  /\H{3,4}/
6837      XY  ABCDE      XY  ABCDE
6838   0: ABCD   0: ABCD
  1: ABC  
6839      XY  PQR ST      XY  PQR ST
6840   0: PQR   0: PQR
6841    
# Line 7531  No match Line 7319  No match
7319      xxxxabcd\P      xxxxabcd\P
7320   0: abcd   0: abcd
7321   0+   0+
  1: abc  
7322      xxxxabcd\P\P      xxxxabcd\P\P
7323  Partial match: abcd  Partial match: abcd
7324      dddxxx\R      dddxxx\R
7325   0: ddd   0: ddd
7326   0+ xxx   0+ xxx
  1: dd  
  2: d  
  3:  
7327      xxxxabcd\P\P      xxxxabcd\P\P
7328  Partial match: abcd  Partial match: abcd
7329      xxx\R      xxx\R
# Line 7549  Partial match: abcd Line 7333  Partial match: abcd
7333  /abcd*/i  /abcd*/i
7334      xxxxabcd\P      xxxxabcd\P
7335   0: abcd   0: abcd
  1: abc  
7336      xxxxabcd\P\P      xxxxabcd\P\P
7337  Partial match: abcd  Partial match: abcd
7338      XXXXABCD\P      XXXXABCD\P
7339   0: ABCD   0: ABCD
  1: ABC  
7340      XXXXABCD\P\P      XXXXABCD\P\P
7341  Partial match: ABCD  Partial match: ABCD
7342    
7343  /abc\d*/  /abc\d*/
7344      xxxxabc1\P      xxxxabc1\P
7345   0: abc1   0: abc1
  1: abc  
7346      xxxxabc1\P\P      xxxxabc1\P\P
7347  Partial match: abc1  Partial match: abc1
7348    
# Line 7684  Partial match: abc Line 7465  Partial match: abc
7465  /.+/  /.+/
7466      abc\>0      abc\>0
7467   0: abc   0: abc
  1: ab  
  2: a  
7468      abc\>1      abc\>1
7469   0: bc   0: bc
  1: b  
7470      abc\>2      abc\>2
7471   0: c   0: c
7472      abc\>3      abc\>3
# Line 7811  No match Line 7589  No match
7589  /^(?!a){0}\w+/  /^(?!a){0}\w+/
7590      aaaaa      aaaaa
7591   0: aaaaa   0: aaaaa
  1: aaaa  
  2: aaa  
  3: aa  
  4: a  
7592    
7593  /(?<=(abc))?xyz/  /(?<=(abc))?xyz/
7594      abcxyz      abcxyz
# Line 7846  Error -17 (backreference condition or re Line 7620  Error -17 (backreference condition or re
7620      aaaabcde      aaaabcde
7621  Error -26 (nested recursion at the same subject position)  Error -26 (nested recursion at the same subject position)
7622    
7623  /(a+)/  /(a+)/O
7624      \O6aaaa      \O6aaaa
7625  Matched, but offsets vector is too small to show all matches  Matched, but offsets vector is too small to show all matches
7626   0: aaaa   0: aaaa
# Line 7971  Partial match: \x0d Line 7745  Partial match: \x0d
7745  Partial match: \x0d\x0d  Partial match: \x0d\x0d
7746      \r\r\r\P      \r\r\r\P
7747   0: \x0d\x0d\x0d   0: \x0d\x0d\x0d
  1: \x0d\x0d  
7748      \r\r\r\P\P      \r\r\r\P\P
7749  Partial match: \x0d\x0d\x0d  Partial match: \x0d\x0d\x0d
7750    

Legend:
Removed from v.1362  
changed lines
  Added in v.1363

  ViewVC Help
Powered by ViewVC 1.1.5