/[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 63 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 73 by nigel, Sat Feb 24 21:40:30 2007 UTC
# Line 1  Line 1 
1  PCRE version 4.0 17-Feb-2003  PCRE version 4.5 01-December-2003
2    
3  /(a)b|/  /(a)b|/
4  Capturing subpattern count = 1  Capturing subpattern count = 1
# Line 28  No match Line 28  No match
28  Capturing subpattern count = 0  Capturing subpattern count = 0
29  Options: anchored  Options: anchored
30  No first char  No first char
31  Need char = 'c'  No need char
32      abc      abc
33   0: abc   0: abc
34      \Aabc      \Aabc
# Line 68  No need char Line 68  No need char
68  Capturing subpattern count = 0  Capturing subpattern count = 0
69  Options: anchored  Options: anchored
70  No first char  No first char
71  Need char = 'c'  No need char
72      abc      abc
73   0: abc   0: abc
74      *** Failers      *** Failers
# Line 136  Capturing subpattern count = 0 Line 136  Capturing subpattern count = 0
136  No options  No options
137  No first char  No first char
138  No need char  No need char
 Study size = 40  
139  Starting character set: c d e  Starting character set: c d e
140      this sentence eventually mentions a cat      this sentence eventually mentions a cat
141   0: cat   0: cat
# Line 148  Capturing subpattern count = 0 Line 147  Capturing subpattern count = 0
147  Options: caseless  Options: caseless
148  No first char  No first char
149  No need char  No need char
 Study size = 40  
150  Starting character set: C D E c d e  Starting character set: C D E c d e
151      this sentence eventually mentions a CAT cat      this sentence eventually mentions a CAT cat
152   0: CAT   0: CAT
# Line 160  Capturing subpattern count = 0 Line 158  Capturing subpattern count = 0
158  No options  No options
159  No first char  No first char
160  No need char  No need char
 Study size = 40  
161  Starting character set: a b c d  Starting character set: a b c d
162    
163  /(a|[^\dZ])/S  /(a|[^\dZ])/S
# Line 168  Capturing subpattern count = 1 Line 165  Capturing subpattern count = 1
165  No options  No options
166  No first char  No first char
167  No need char  No need char
 Study size = 40  
168  Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a  Starting character set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
169    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
170    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / : ; < = >
# Line 189  Capturing subpattern count = 1 Line 185  Capturing subpattern count = 1
185  No options  No options
186  No first char  No first char
187  No need char  No need char
 Study size = 40  
188  Starting character set: \x09 \x0a \x0c \x0d \x20 a b  Starting character set: \x09 \x0a \x0c \x0d \x20 a b
189    
190  /(ab\2)/  /(ab\2)/
# Line 302  Need char = 'x' Line 297  Need char = 'x'
297  Capturing subpattern count = 0  Capturing subpattern count = 0
298  Options: anchored  Options: anchored
299  No first char  No first char
300  Need char = 'x'  No need char
301      the quick brown fox      the quick brown fox
302   0: the quick brown fox   0: the quick brown fox
303      *** Failers      *** Failers
# Line 504  No need char Line 499  No need char
499  Capturing subpattern count = 0  Capturing subpattern count = 0
500  Options: anchored caseless  Options: anchored caseless
501  No first char  No first char
502  Need char = '4'  No need char
503    
504  /(^b|(?i)^d)/  /(^b|(?i)^d)/
505  Capturing subpattern count = 1  Capturing subpattern count = 1
# Line 524  Capturing subpattern count = 0 Line 519  Capturing subpattern count = 0
519  No options  No options
520  No first char  No first char
521  No need char  No need char
 Study size = 40  
522  Starting character set: a b c d  Starting character set: a b c d
523    
524  /(?i)[abcd]/S  /(?i)[abcd]/S
# Line 532  Capturing subpattern count = 0 Line 526  Capturing subpattern count = 0
526  Options: caseless  Options: caseless
527  No first char  No first char
528  No need char  No need char
 Study size = 40  
529  Starting character set: A B C D a b c d  Starting character set: A B C D a b c d
530    
531  /(?m)[xy]|(b|c)/S  /(?m)[xy]|(b|c)/S
# Line 540  Capturing subpattern count = 1 Line 533  Capturing subpattern count = 1
533  Options: multiline  Options: multiline
534  No first char  No first char
535  No need char  No need char
 Study size = 40  
536  Starting character set: b c x y  Starting character set: b c x y
537    
538  /(^a|^b)/m  /(^a|^b)/m
# Line 612  No options Line 604  No options
604  Case state changes  Case state changes
605  No first char  No first char
606  No need char  No need char
 Study size = 40  
607  Starting character set: C a b c d  Starting character set: C a b c d
608    
609  /a$/  /a$/
# Line 651  No match Line 642  No match
642  Capturing subpattern count = 0  Capturing subpattern count = 0
643  Options: anchored multiline  Options: anchored multiline
644  No first char  No first char
645  Need char = 'c'  No need char
646    
647  /^abc/m  /^abc/m
648  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 663  Need char = 'c' Line 654  Need char = 'c'
654  Capturing subpattern count = 5  Capturing subpattern count = 5
655  Options: anchored  Options: anchored
656  No first char  No first char
657  Need char = 'a'  No need char
658    aaaaabbbbbcccccdef    aaaaabbbbbcccccdef
659   0: aaaaabbbbbcccccdef   0: aaaaabbbbbcccccdef
660   1: aaaaabbbbbcccccdef   1: aaaaabbbbbcccccdef
# Line 677  Capturing subpattern count = 0 Line 668  Capturing subpattern count = 0
668  No options  No options
669  No first char  No first char
670  No need char  No need char
 Study size = 40  
671  Starting character set: a b  Starting character set: a b
672    
673  /(?<!foo)(alpha|omega)/S  /(?<!foo)(alpha|omega)/S
# Line 685  Capturing subpattern count = 1 Line 675  Capturing subpattern count = 1
675  No options  No options
676  No first char  No first char
677  Need char = 'a'  Need char = 'a'
 Study size = 40  
678  Starting character set: a o  Starting character set: a o
679    
680  /(?!alphabet)[ab]/S  /(?!alphabet)[ab]/S
# Line 693  Capturing subpattern count = 0 Line 682  Capturing subpattern count = 0
682  No options  No options
683  No first char  No first char
684  No need char  No need char
 Study size = 40  
685  Starting character set: a b  Starting character set: a b
686    
687  /(?<=foo\n)^bar/m  /(?<=foo\n)^bar/m
# Line 837  Capturing subpattern count = 1 Line 825  Capturing subpattern count = 1
825  Max back reference = 1  Max back reference = 1
826  Options: anchored  Options: anchored
827  No first char  No first char
828  Need char = 'a'  No need char
829      aaaaaa      aaaaaa
830   0: aaaaaa   0: aaaaaa
831   1: aa   1: aa
# Line 1027  copy substring 1 failed -6 Line 1015  copy substring 1 failed -6
1015  Capturing subpattern count = 3  Capturing subpattern count = 3
1016  Options: anchored  Options: anchored
1017  No first char  No first char
1018  Need char = 'f'  No need char
1019      adef\G1\G2\G3\G4\L      adef\G1\G2\G3\G4\L
1020   0: adef   0: adef
1021   1: a   1: a
# Line 1065  get substring 4 failed -7 Line 1053  get substring 4 failed -7
1053  Capturing subpattern count = 0  Capturing subpattern count = 0
1054  Options: anchored  Options: anchored
1055  No first char  No first char
1056  Need char = 'f'  No need char
1057      abc\00def\L\C0      abc\00def\L\C0
1058   0: abc\x00def   0: abc\x00def
1059   0C abc (7)   0C abc (7)
# Line 1254  Need char = 's' Line 1242  Need char = 's'
1242  Capturing subpattern count = 0  Capturing subpattern count = 0
1243  Options: anchored  Options: anchored
1244  No first char  No first char
1245  Need char = 's'  No need char
1246      ississippi      ississippi
1247   0: iss   0: iss
1248   0+ issippi   0+ issippi
# Line 1304  Need char = 'i' Line 1292  Need char = 'i'
1292  Capturing subpattern count = 0  Capturing subpattern count = 0
1293  Options: anchored  Options: anchored
1294  No first char  No first char
1295  Need char = 's'  No need char
1296      Mississippi      Mississippi
1297   0: Mis   0: Mis
1298   0+ sissippi   0+ sissippi
# Line 1313  Need char = 's' Line 1301  Need char = 's'
1301  Capturing subpattern count = 0  Capturing subpattern count = 0
1302  Options: anchored  Options: anchored
1303  No first char  No first char
1304  Need char = 10  No need char
1305      ab\nab\ncd      ab\nab\ncd
1306   0: ab\x0a   0: ab\x0a
1307   0+ ab\x0acd   0+ ab\x0acd
# Line 2420  Need char = 's' Line 2408  Need char = 's'
2408  Capturing subpattern count = 2  Capturing subpattern count = 2
2409  Options: anchored  Options: anchored
2410  No first char  No first char
2411  Need char = 'a'  No need char
2412      aba      aba
2413   0: aba   0: aba
2414   1: a   1: a
# Line 2430  Need char = 'a' Line 2418  Need char = 'a'
2418  Capturing subpattern count = 2  Capturing subpattern count = 2
2419  Options: anchored  Options: anchored
2420  No first char  No first char
2421  Need char = 'a'  No need char
2422      aabbaa      aabbaa
2423   0: aabbaa   0: aabbaa
2424   1: aa   1: aa
# Line 2440  Need char = 'a' Line 2428  Need char = 'a'
2428  Capturing subpattern count = 2  Capturing subpattern count = 2
2429  Options: anchored  Options: anchored
2430  No first char  No first char
2431  Need char = 'a'  No need char
2432      aabbaa      aabbaa
2433   0: aabbaa   0: aabbaa
2434   1: aa   1: aa
# Line 2450  Need char = 'a' Line 2438  Need char = 'a'
2438  Capturing subpattern count = 2  Capturing subpattern count = 2
2439  Options: anchored  Options: anchored
2440  No first char  No first char
2441  Need char = 'a'  No need char
2442      aabbaa      aabbaa
2443   0: aabbaa   0: aabbaa
2444   1: aa   1: aa
# Line 2460  Need char = 'a' Line 2448  Need char = 'a'
2448  Capturing subpattern count = 1  Capturing subpattern count = 1
2449  Options: anchored  Options: anchored
2450  No first char  No first char
2451  Need char = 'a'  No need char
2452      aabbaa      aabbaa
2453   0: aabbaa   0: aabbaa
2454   1: bb   1: bb
# Line 2469  Need char = 'a' Line 2457  Need char = 'a'
2457  Capturing subpattern count = 3  Capturing subpattern count = 3
2458  Options: anchored  Options: anchored
2459  No first char  No first char
2460  Need char = 'a'  No need char
2461      aabbaa      aabbaa
2462   0: aabbaa   0: aabbaa
2463   1: aa   1: aa
# Line 2480  Need char = 'a' Line 2468  Need char = 'a'
2468  Capturing subpattern count = 2  Capturing subpattern count = 2
2469  Options: anchored  Options: anchored
2470  No first char  No first char
2471  Need char = 'a'  No need char
2472      aabbaa      aabbaa
2473   0: aabbaa   0: aabbaa
2474   1: bb   1: bb
# Line 2490  Need char = 'a' Line 2478  Need char = 'a'
2478  Capturing subpattern count = 1  Capturing subpattern count = 1
2479  Options: anchored  Options: anchored
2480  No first char  No first char
2481  Need char = 'a'  No need char
2482      aabbaa      aabbaa
2483   0: aabbaa   0: aabbaa
2484   1: bb   1: bb
# Line 2499  Need char = 'a' Line 2487  Need char = 'a'
2487  Capturing subpattern count = 1  Capturing subpattern count = 1
2488  Options: anchored  Options: anchored
2489  No first char  No first char
2490  Need char = 'a'  No need char
2491      aabbbaa      aabbbaa
2492   0: aabbbaa   0: aabbbaa
2493   1: bbb   1: bbb
# Line 2508  Need char = 'a' Line 2496  Need char = 'a'
2496  Capturing subpattern count = 1  Capturing subpattern count = 1
2497  Options: anchored  Options: anchored
2498  No first char  No first char
2499  Need char = 'a'  No need char
2500      aabbbaa      aabbbaa
2501   0: aabbbaa   0: aabbbaa
2502   1: bbb   1: bbb
# Line 2517  Need char = 'a' Line 2505  Need char = 'a'
2505  Capturing subpattern count = 1  Capturing subpattern count = 1
2506  Options: anchored  Options: anchored
2507  No first char  No first char
2508  Need char = 'a'  No need char
2509      aabbaa      aabbaa
2510   0: aabbaa   0: aabbaa
2511   1: b   1: b
# Line 2526  Need char = 'a' Line 2514  Need char = 'a'
2514  Capturing subpattern count = 1  Capturing subpattern count = 1
2515  Options: anchored  Options: anchored
2516  No first char  No first char
2517  Need char = 'a'  No need char
2518      aabbbaa      aabbbaa
2519   0: aabbbaa   0: aabbbaa
2520   1: bb   1: bb
# Line 2535  Need char = 'a' Line 2523  Need char = 'a'
2523  Capturing subpattern count = 3  Capturing subpattern count = 3
2524  Options: anchored  Options: anchored
2525  No first char  No first char
2526  Need char = 'a'  No need char
2527      aabbbaa      aabbbaa
2528   0: aabbbaa   0: aabbbaa
2529   1: aa   1: aa
# Line 2546  Need char = 'a' Line 2534  Need char = 'a'
2534  Capturing subpattern count = 3  Capturing subpattern count = 3
2535  Options: anchored  Options: anchored
2536  No first char  No first char
2537  Need char = 'a'  No need char
2538      aabbbbaa      aabbbbaa
2539   0: aabbbbaa   0: aabbbbaa
2540   1: aa   1: aa
# Line 3047  Need char = 'b' Line 3035  Need char = 'b'
3035  Capturing subpattern count = 5  Capturing subpattern count = 5
3036  Options: anchored  Options: anchored
3037  No first char  No first char
3038  Need char = 'a'  No need char
3039    
3040  /^x(?U)a+b/D  /^x(?U)a+b/D
3041  ------------------------------------------------------------------  ------------------------------------------------------------------
# Line 3378  Capturing subpattern count = 0 Line 3366  Capturing subpattern count = 0
3366  No options  No options
3367  No first char  No first char
3368  No need char  No need char
 Study size = 40  
3369  Starting character set: a b  Starting character set: a b
3370    
3371  /[^a]/I  /[^a]/I
# Line 3398  Capturing subpattern count = 0 Line 3385  Capturing subpattern count = 0
3385  No options  No options
3386  No first char  No first char
3387  Need char = '6'  Need char = '6'
 Study size = 40  
3388  Starting character set: 0 1 2 3 4 5 6 7 8 9  Starting character set: 0 1 2 3 4 5 6 7 8 9
3389    
3390  /a^b/I  /a^b/I
# Line 3432  Capturing subpattern count = 0 Line 3418  Capturing subpattern count = 0
3418  Options: caseless  Options: caseless
3419  No first char  No first char
3420  No need char  No need char
 Study size = 40  
3421  Starting character set: A B a b  Starting character set: A B a b
3422    
3423  /[ab](?i)cd/IS  /[ab](?i)cd/IS
# Line 3441  No options Line 3426  No options
3426  Case state changes  Case state changes
3427  No first char  No first char
3428  Need char = 'd' (caseless)  Need char = 'd' (caseless)
 Study size = 40  
3429  Starting character set: a b  Starting character set: a b
3430    
3431  /abc(?C)def/  /abc(?C)def/
# Line 3735  Need char = 'c' Line 3719  Need char = 'c'
3719  Capturing subpattern count = 0  Capturing subpattern count = 0
3720  Options: anchored  Options: anchored
3721  No first char  No first char
3722  Need char = 'c'  No need char
3723    
3724  /(?C)a|b/S  /(?C)a|b/S
3725  Capturing subpattern count = 0  Capturing subpattern count = 0
3726  No options  No options
3727  No first char  No first char
3728  No need char  No need char
 Study size = 40  
3729  Starting character set: a b  Starting character set: a b
3730    
3731  /(?R)/  /(?R)/
# Line 3917  No match Line 3900  No match
3900  Capturing subpattern count = 2  Capturing subpattern count = 2
3901  Options: anchored  Options: anchored
3902  No first char  No first char
3903  Need char = 'z'  No need char
3904      xyz      xyz
3905   0: xyz   0: xyz
3906   1: xyz   1: xyz
# Line 3977  Failed: reference to non-existent subpat Line 3960  Failed: reference to non-existent subpat
3960  Capturing subpattern count = 1  Capturing subpattern count = 1
3961  Options: anchored  Options: anchored
3962  No first char  No first char
3963  Need char = 'f'  No need char
3964      abcdefabc      abcdefabc
3965   0: abcdefabc   0: abcdefabc
3966   1: abc   1: abc
# Line 3986  Need char = 'f' Line 3969  Need char = 'f'
3969  Capturing subpattern count = 1  Capturing subpattern count = 1
3970  Options: anchored  Options: anchored
3971  No first char  No first char
3972  Need char = '='  No need char
3973      a=a      a=a
3974   0: a=a   0: a=a
3975   1: a   1: a
# Line 4001  Need char = '=' Line 3984  Need char = '='
3984  Capturing subpattern count = 2  Capturing subpattern count = 2
3985  Options: anchored  Options: anchored
3986  No first char  No first char
3987  Need char = '='  No need char
3988      a=a      a=a
3989   0: a=a   0: a=a
3990   1: a   1: a
# Line 4408  Need char = 'a' Line 4391  Need char = 'a'
4391   2: aa   2: aa
4392   2C aa (2)   2C aa (2)
4393    
4394    /(?P<x>eks)(?P<x>eccs)/
4395    Failed: two named groups have the same name at offset 16
4396    
4397    /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/
4398    Failed: two named groups have the same name at offset 31
4399    
4400    "\[((?P<elem>\d+)(,(?P>elem))*)\]"
4401    Capturing subpattern count = 3
4402    Named capturing subpatterns:
4403      elem   2
4404    No options
4405    First char = '['
4406    Need char = ']'
4407        [10,20,30,5,5,4,4,2,43,23,4234]
4408     0: [10,20,30,5,5,4,4,2,43,23,4234]
4409     1: 10,20,30,5,5,4,4,2,43,23,4234
4410     2: 10
4411     3: ,4234
4412        *** Failers
4413    No match
4414        []
4415    No match
4416    
4417    "\[((?P<elem>\d+)(,(?P>elem))*)?\]"
4418    Capturing subpattern count = 3
4419    Named capturing subpatterns:
4420      elem   2
4421    No options
4422    First char = '['
4423    Need char = ']'
4424        [10,20,30,5,5,4,4,2,43,23,4234]
4425     0: [10,20,30,5,5,4,4,2,43,23,4234]
4426     1: 10,20,30,5,5,4,4,2,43,23,4234
4427     2: 10
4428     3: ,4234
4429        []
4430     0: []
4431    
4432    /(a(b(?2)c))?/D
4433    ------------------------------------------------------------------
4434      0  28 Bra 0
4435      3     Brazero
4436      4  21 Bra 1
4437      7   1 a
4438     10  12 Bra 2
4439     13   1 b
4440     16  10 Recurse
4441     19   1 c
4442     22  12 Ket
4443     25  21 Ket
4444     28  28 Ket
4445     31     End
4446    ------------------------------------------------------------------
4447    Capturing subpattern count = 2
4448    No options
4449    No first char
4450    No need char
4451    
4452    /(a(b(?2)c))*/D
4453    ------------------------------------------------------------------
4454      0  28 Bra 0
4455      3     Brazero
4456      4  21 Bra 1
4457      7   1 a
4458     10  12 Bra 2
4459     13   1 b
4460     16  10 Recurse
4461     19   1 c
4462     22  12 Ket
4463     25  21 KetRmax
4464     28  28 Ket
4465     31     End
4466    ------------------------------------------------------------------
4467    Capturing subpattern count = 2
4468    No options
4469    No first char
4470    No need char
4471    
4472    /(a(b(?2)c)){0,2}/D
4473    ------------------------------------------------------------------
4474      0  59 Bra 0
4475      3     Brazero
4476      4  52 Bra 0
4477      7  21 Bra 1
4478     10   1 a
4479     13  12 Bra 2
4480     16   1 b
4481     19  13 Recurse
4482     22   1 c
4483     25  12 Ket
4484     28  21 Ket
4485     31     Brazero
4486     32  21 Bra 1
4487     35   1 a
4488     38  12 Bra 2
4489     41   1 b
4490     44  13 Recurse
4491     47   1 c
4492     50  12 Ket
4493     53  21 Ket
4494     56  52 Ket
4495     59  59 Ket
4496     62     End
4497    ------------------------------------------------------------------
4498    Capturing subpattern count = 2
4499    No options
4500    No first char
4501    No need char
4502    
4503    /[ab]{1}+/D
4504    ------------------------------------------------------------------
4505      0  47 Bra 0
4506      3  41 Once
4507      6     [a-b]{1,1}
4508     44  41 Ket
4509     47  47 Ket
4510     50     End
4511    ------------------------------------------------------------------
4512    Capturing subpattern count = 0
4513    No options
4514    No first char
4515    No need char
4516    
4517    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/i
4518    Capturing subpattern count = 3
4519    Options: caseless
4520    No first char
4521    Need char = 'g' (caseless)
4522         Baby Bjorn Active Carrier - With free SHIPPING!!
4523     0: Baby Bjorn Active Carrier - With free SHIPPING!!
4524     1: Baby Bjorn Active Carrier - With free SHIPPING!!
4525    
4526    /((w\/|-|with)*(free|immediate)*.*?shipping\s*[!.-]*)/iS
4527    Capturing subpattern count = 3
4528    Options: caseless
4529    No first char
4530    Need char = 'g' (caseless)
4531    Study returned NULL
4532         Baby Bjorn Active Carrier - With free SHIPPING!!
4533     0: Baby Bjorn Active Carrier - With free SHIPPING!!
4534     1: Baby Bjorn Active Carrier - With free SHIPPING!!
4535    
4536    /a*.*b/SD
4537    ------------------------------------------------------------------
4538      0  10 Bra 0
4539      3     a*
4540      5     Any*
4541      7   1 b
4542     10  10 Ket
4543     13     End
4544    ------------------------------------------------------------------
4545    Capturing subpattern count = 0
4546    No options
4547    No first char
4548    Need char = 'b'
4549    Study returned NULL
4550    
4551    /(a|b)*.?c/SD
4552    ------------------------------------------------------------------
4553      0  24 Bra 0
4554      3     Brazero
4555      4   6 Bra 1
4556      7   1 a
4557     10   6 Alt
4558     13   1 b
4559     16  12 KetRmax
4560     19     Any?
4561     21   1 c
4562     24  24 Ket
4563     27     End
4564    ------------------------------------------------------------------
4565    Capturing subpattern count = 1
4566    No options
4567    No first char
4568    Need char = 'c'
4569    Study returned NULL
4570    
4571  / End of testinput2 /  / End of testinput2 /
4572  Capturing subpattern count = 0  Capturing subpattern count = 0
4573  No options  No options
4574  First char = ' '  First char = ' '
4575  Need char = ' '  Need char = ' '
   

Legend:
Removed from v.63  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.5