/[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 65 by nigel, Sat Feb 24 21:40:08 2007 UTC revision 73 by nigel, Sat Feb 24 21:40:30 2007 UTC
# Line 1  Line 1 
1  PCRE version 4.1 12-Mar-2003  PCRE version 4.5 01-December-2003
2    
3  /(a)b|/  /(a)b|/
4  Capturing subpattern count = 1  Capturing subpattern count = 1
# 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 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 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 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 3742  Capturing subpattern count = 0 Line 3726  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 4414  Failed: two named groups have the same n Line 4397  Failed: two named groups have the same n
4397  /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/  /(?P<abc>abc(?P<def>def)(?P<abc>xyz))/
4398  Failed: two named groups have the same name at offset 31  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.65  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.5