/[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 71 by nigel, Sat Feb 24 21:40:24 2007 UTC revision 73 by nigel, Sat Feb 24 21:40:30 2007 UTC
# Line 1  Line 1 
1  PCRE version 4.4 21-August-2003  PCRE version 4.5 01-December-2003
2    
3  /(a)b|/  /(a)b|/
4  Capturing subpattern count = 1  Capturing subpattern count = 1
# Line 4397  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.71  
changed lines
  Added in v.73

  ViewVC Help
Powered by ViewVC 1.1.5