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

Diff of /code/trunk/testdata/testoutput5

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

revision 51 by nigel, Sat Feb 24 21:39:37 2007 UTC revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC
# Line 1  Line 1 
1  PCRE version 3.4 22-Aug-2000  /\x{100}/8DM
2    Memory allocation (code space): 10
3    ------------------------------------------------------------------
4      0   6 Bra 0
5      3     \x{100}
6      6   6 Ket
7      9     End
8    ------------------------------------------------------------------
9    Capturing subpattern count = 0
10    Options: utf8
11    First char = 196
12    Need char = 128
13    
14    /\x{1000}/8DM
15    Memory allocation (code space): 11
16    ------------------------------------------------------------------
17      0   7 Bra 0
18      3     \x{1000}
19      7   7 Ket
20     10     End
21    ------------------------------------------------------------------
22    Capturing subpattern count = 0
23    Options: utf8
24    First char = 225
25    Need char = 128
26    
27    /\x{10000}/8DM
28    Memory allocation (code space): 12
29    ------------------------------------------------------------------
30      0   8 Bra 0
31      3     \x{10000}
32      8   8 Ket
33     11     End
34    ------------------------------------------------------------------
35    Capturing subpattern count = 0
36    Options: utf8
37    First char = 240
38    Need char = 128
39    
40    /\x{100000}/8DM
41    Memory allocation (code space): 12
42    ------------------------------------------------------------------
43      0   8 Bra 0
44      3     \x{100000}
45      8   8 Ket
46     11     End
47    ------------------------------------------------------------------
48    Capturing subpattern count = 0
49    Options: utf8
50    First char = 244
51    Need char = 128
52    
53    /\x{1000000}/8DM
54    Memory allocation (code space): 13
55    ------------------------------------------------------------------
56      0   9 Bra 0
57      3     \x{1000000}
58      9   9 Ket
59     12     End
60    ------------------------------------------------------------------
61    Capturing subpattern count = 0
62    Options: utf8
63    First char = 249
64    Need char = 128
65    
66    /\x{4000000}/8DM
67    Memory allocation (code space): 14
68    ------------------------------------------------------------------
69      0  10 Bra 0
70      3     \x{4000000}
71     10  10 Ket
72     13     End
73    ------------------------------------------------------------------
74    Capturing subpattern count = 0
75    Options: utf8
76    First char = 252
77    Need char = 128
78    
79    /\x{7fffFFFF}/8DM
80    Memory allocation (code space): 14
81    ------------------------------------------------------------------
82      0  10 Bra 0
83      3     \x{7fffffff}
84     10  10 Ket
85     13     End
86    ------------------------------------------------------------------
87    Capturing subpattern count = 0
88    Options: utf8
89    First char = 253
90    Need char = 191
91    
92    /[\x{ff}]/8DM
93    Memory allocation (code space): 10
94    ------------------------------------------------------------------
95      0   6 Bra 0
96      3     \x{ff}
97      6   6 Ket
98      9     End
99    ------------------------------------------------------------------
100    Capturing subpattern count = 0
101    Options: utf8
102    First char = 195
103    Need char = 191
104    
105    /[\x{100}]/8DM
106    Memory allocation (code space): 15
107    ------------------------------------------------------------------
108      0  11 Bra 0
109      3     [\x{100}]
110     11  11 Ket
111     14     End
112    ------------------------------------------------------------------
113    Capturing subpattern count = 0
114    Options: utf8
115    No first char
116    No need char
117    
118    /\x{ffffffff}/8
119    Failed: character value in \x{...} sequence is too large at offset 11
120    
121    /\x{100000000}/8
122    Failed: character value in \x{...} sequence is too large at offset 12
123    
124    /^\x{100}a\x{1234}/8
125        \x{100}a\x{1234}bcd
126     0: \x{100}a\x{1234}
127    
128    /\x80/8D
129    ------------------------------------------------------------------
130      0   6 Bra 0
131      3     \x{80}
132      6   6 Ket
133      9     End
134    ------------------------------------------------------------------
135    Capturing subpattern count = 0
136    Options: utf8
137    First char = 194
138    Need char = 128
139    
140    /\xff/8D
141    ------------------------------------------------------------------
142      0   6 Bra 0
143      3     \x{ff}
144      6   6 Ket
145      9     End
146    ------------------------------------------------------------------
147    Capturing subpattern count = 0
148    Options: utf8
149    First char = 195
150    Need char = 191
151    
152    /\x{0041}\x{2262}\x{0391}\x{002e}/D8
153    ------------------------------------------------------------------
154      0  14 Bra 0
155      3     A\x{2262}\x{391}.
156     14  14 Ket
157     17     End
158    ------------------------------------------------------------------
159    Capturing subpattern count = 0
160    Options: utf8
161    First char = 'A'
162    Need char = '.'
163        \x{0041}\x{2262}\x{0391}\x{002e}
164     0: A\x{2262}\x{391}.
165    
166    /\x{D55c}\x{ad6d}\x{C5B4}/D8
167    ------------------------------------------------------------------
168      0  15 Bra 0
169      3     \x{d55c}\x{ad6d}\x{c5b4}
170     15  15 Ket
171     18     End
172    ------------------------------------------------------------------
173    Capturing subpattern count = 0
174    Options: utf8
175    First char = 237
176    Need char = 180
177        \x{D55c}\x{ad6d}\x{C5B4}
178     0: \x{d55c}\x{ad6d}\x{c5b4}
179    
180    /\x{65e5}\x{672c}\x{8a9e}/D8
181    ------------------------------------------------------------------
182      0  15 Bra 0
183      3     \x{65e5}\x{672c}\x{8a9e}
184     15  15 Ket
185     18     End
186    ------------------------------------------------------------------
187    Capturing subpattern count = 0
188    Options: utf8
189    First char = 230
190    Need char = 158
191        \x{65e5}\x{672c}\x{8a9e}
192     0: \x{65e5}\x{672c}\x{8a9e}
193    
194    /\x{80}/D8
195    ------------------------------------------------------------------
196      0   6 Bra 0
197      3     \x{80}
198      6   6 Ket
199      9     End
200    ------------------------------------------------------------------
201    Capturing subpattern count = 0
202    Options: utf8
203    First char = 194
204    Need char = 128
205    
206    /\x{084}/D8
207    ------------------------------------------------------------------
208      0   6 Bra 0
209      3     \x{84}
210      6   6 Ket
211      9     End
212    ------------------------------------------------------------------
213    Capturing subpattern count = 0
214    Options: utf8
215    First char = 194
216    Need char = 132
217    
218    /\x{104}/D8
219    ------------------------------------------------------------------
220      0   6 Bra 0
221      3     \x{104}
222      6   6 Ket
223      9     End
224    ------------------------------------------------------------------
225    Capturing subpattern count = 0
226    Options: utf8
227    First char = 196
228    Need char = 132
229    
230    /\x{861}/D8
231    ------------------------------------------------------------------
232      0   7 Bra 0
233      3     \x{861}
234      7   7 Ket
235     10     End
236    ------------------------------------------------------------------
237    Capturing subpattern count = 0
238    Options: utf8
239    First char = 224
240    Need char = 161
241    
242    /\x{212ab}/D8
243    ------------------------------------------------------------------
244      0   8 Bra 0
245      3     \x{212ab}
246      8   8 Ket
247     11     End
248    ------------------------------------------------------------------
249    Capturing subpattern count = 0
250    Options: utf8
251    First char = 240
252    Need char = 171
253    
254    /.{3,5}X/D8
255    ------------------------------------------------------------------
256      0  13 Bra 0
257      3     Any{3}
258      7     Any{0,2}
259     11     X
260     13  13 Ket
261     16     End
262    ------------------------------------------------------------------
263    Capturing subpattern count = 0
264    Partial matching not supported
265    Options: utf8
266    No first char
267    Need char = 'X'
268        \x{212ab}\x{212ab}\x{212ab}\x{861}X
269     0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
270    
271    
272    /.{3,5}?/D8
273    ------------------------------------------------------------------
274      0  11 Bra 0
275      3     Any{3}
276      7     Any{0,2}?
277     11  11 Ket
278     14     End
279    ------------------------------------------------------------------
280    Capturing subpattern count = 0
281    Partial matching not supported
282    Options: utf8
283    No first char
284    No need char
285        \x{212ab}\x{212ab}\x{212ab}\x{861}
286     0: \x{212ab}\x{212ab}\x{212ab}
287    
288    /-- These tests are here rather than in testinput4 because Perl 5.6 has --/
289    /-- some problems with UTF-8 support, in the area of \x{..} where the   --/
290    No match
291    /-- value is < 255. It grumbles about invalid UTF-8 strings.            --/
292    No match
293    
294    /^[a\x{c0}]b/8
295        \x{c0}b
296     0: \x{c0}b
297    
298    /^([a\x{c0}]*?)aa/8
299        a\x{c0}aaaa/
300     0: a\x{c0}aa
301     1: a\x{c0}
302    
303    /^([a\x{c0}]*?)aa/8
304        a\x{c0}aaaa/
305     0: a\x{c0}aa
306     1: a\x{c0}
307        a\x{c0}a\x{c0}aaa/
308     0: a\x{c0}a\x{c0}aa
309     1: a\x{c0}a\x{c0}
310    
311    /^([a\x{c0}]*)aa/8
312        a\x{c0}aaaa/
313     0: a\x{c0}aaaa
314     1: a\x{c0}aa
315        a\x{c0}a\x{c0}aaa/
316     0: a\x{c0}a\x{c0}aaa
317     1: a\x{c0}a\x{c0}a
318    
319    /^([a\x{c0}]*)a\x{c0}/8
320        a\x{c0}aaaa/
321     0: a\x{c0}
322     1:
323        a\x{c0}a\x{c0}aaa/
324     0: a\x{c0}a\x{c0}
325     1: a\x{c0}
326    
327    /-- --/
328    
329    /(?<=\C)X/8
330    Failed: \C not allowed in lookbehind assertion at offset 6
331    
332  /-- Because of problems with Perl 5.6 in handling UTF-8 vs non UTF-8 --/  /-- This one is here not because it's different to Perl, but because the --/
333  /-- strings automatically, do not use the \x{} construct except with --/  /-- way the captured single-byte is displayed. (In Perl it becomes a --/
334  No match  No match
335  /-- patterns that have the /8 option set, and don't use them without! --/  /-- character, and you can't tell the difference.) --/
336  No match  No match
337    
338  /a.b/8  /X(\C)(.*)/8
339      acb      X\x{1234}
340   0: acb   0: X\x{1234}
341      a\x7fb   1: \xe1
342   0: a\x{7f}b   2: \x88\xb4
343      a\x{100}b      X\nabc
344   0: a\x{100}b   0: X\x{0a}abc
345     1: \x{0a}
346     2: abc
347    
348    /^[ab]/8D
349    ------------------------------------------------------------------
350      0  37 Bra 0
351      3     ^
352      4     [ab]
353     37  37 Ket
354     40     End
355    ------------------------------------------------------------------
356    Capturing subpattern count = 0
357    Options: anchored utf8
358    No first char
359    No need char
360        bar
361     0: b
362      *** Failers      *** Failers
363  No match  No match
364      a\nb      c
 No match  
   
 /a(.{3})b/8  
     a\x{4000}xyb  
  0: a\x{4000}xyb  
  1: \x{4000}xy  
     a\x{4000}\x7fyb  
  0: a\x{4000}\x{7f}yb  
  1: \x{4000}\x{7f}y  
     a\x{4000}\x{100}yb  
  0: a\x{4000}\x{100}yb  
  1: \x{4000}\x{100}y  
     *** Failers  
365  No match  No match
366      a\x{4000}b      \x{ff}
367  No match  No match
368      ac\ncb      \x{100}
369  No match  No match
370    
371  /a(.*?)(.)/  /^[^ab]/8D
372      a\xc0\x88b  ------------------------------------------------------------------
373   0: a\xc0    0  37 Bra 0
374   1:    3     ^
375   2: \xc0    4     [\x00-`c-\xff] (neg)
376     37  37 Ket
377  /a(.*?)(.)/8   40     End
378      a\x{100}b  ------------------------------------------------------------------
379   0: a\x{100}  Capturing subpattern count = 0
380   1:  Options: anchored utf8
381   2: \x{100}  No first char
382    No need char
383  /a(.*)(.)/      c
384      a\xc0\x88b   0: c
385   0: a\xc0\x88b      \x{ff}
386   1: \xc0\x88   0: \x{ff}
387   2: b      \x{100}
388     0: \x{100}
389  /a(.*)(.)/8      *** Failers
390      a\x{100}b   0: *
391   0: a\x{100}b      aaa
  1: \x{100}  
  2: b  
   
 /a(.)(.)/  
     a\xc0\x92bcd  
  0: a\xc0\x92  
  1: \xc0  
  2: \x92  
   
 /a(.)(.)/8  
     a\x{240}bcd  
  0: a\x{240}b  
  1: \x{240}  
  2: b  
   
 /a(.?)(.)/  
     a\xc0\x92bcd  
  0: a\xc0\x92  
  1: \xc0  
  2: \x92  
   
 /a(.?)(.)/8  
     a\x{240}bcd  
  0: a\x{240}b  
  1: \x{240}  
  2: b  
   
 /a(.??)(.)/  
     a\xc0\x92bcd  
  0: a\xc0  
  1:  
  2: \xc0  
   
 /a(.??)(.)/8  
     a\x{240}bcd  
  0: a\x{240}  
  1:  
  2: \x{240}  
   
 /a(.{3})b/8  
     a\x{1234}xyb  
  0: a\x{1234}xyb  
  1: \x{1234}xy  
     a\x{1234}\x{4321}yb  
  0: a\x{1234}\x{4321}yb  
  1: \x{1234}\x{4321}y  
     a\x{1234}\x{4321}\x{3412}b  
  0: a\x{1234}\x{4321}\x{3412}b  
  1: \x{1234}\x{4321}\x{3412}  
     *** Failers  
 No match  
     a\x{1234}b  
 No match  
     ac\ncb  
392  No match  No match
393    
394  /a(.{3,})b/8  /[^ab\xC0-\xF0]/8SD
395      a\x{1234}xyb  ------------------------------------------------------------------
396   0: a\x{1234}xyb    0  36 Bra 0
397   1: \x{1234}xy    3     [\x00-`c-\xbf\xf1-\xff] (neg)
398      a\x{1234}\x{4321}yb   36  36 Ket
399   0: a\x{1234}\x{4321}yb   39     End
400   1: \x{1234}\x{4321}y  ------------------------------------------------------------------
401      a\x{1234}\x{4321}\x{3412}b  Capturing subpattern count = 0
402   0: a\x{1234}\x{4321}\x{3412}b  Options: utf8
403   1: \x{1234}\x{4321}\x{3412}  No first char
404      axxxxbcdefghijb  No need char
405   0: axxxxbcdefghijb  Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x09 \x0a
406   1: xxxxbcdefghij    \x0b \x0c \x0d \x0e \x0f \x10 \x11 \x12 \x13 \x14 \x15 \x16 \x17 \x18 \x19
407      a\x{1234}\x{4321}\x{3412}\x{3421}b    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
408   0: a\x{1234}\x{4321}\x{3412}\x{3421}b    5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y
409   1: \x{1234}\x{4321}\x{3412}\x{3421}    Z [ \ ] ^ _ ` c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f
410      \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
411      \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
412      \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
413      \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
414      \xfe \xff
415        \x{f1}
416     0: \x{f1}
417        \x{bf}
418     0: \x{bf}
419        \x{100}
420     0: \x{100}
421        \x{1000}
422     0: \x{1000}
423      *** Failers      *** Failers
424     0: *
425        \x{c0}
426  No match  No match
427      a\x{1234}b      \x{f0}
428  No match  No match
429    
430  /a(.{3,}?)b/8  /Ā{3,4}/8SD
431      a\x{1234}xyb  ------------------------------------------------------------------
432   0: a\x{1234}xyb    0  11 Bra 0
433   1: \x{1234}xy    3     \x{100}{3}
434      a\x{1234}\x{4321}yb    8     \x{100}?
435   0: a\x{1234}\x{4321}yb   11  11 Ket
436   1: \x{1234}\x{4321}y   14     End
437      a\x{1234}\x{4321}\x{3412}b  ------------------------------------------------------------------
438   0: a\x{1234}\x{4321}\x{3412}b  Capturing subpattern count = 0
439   1: \x{1234}\x{4321}\x{3412}  Partial matching not supported
440      axxxxbcdefghijb  Options: utf8
441   0: axxxxb  First char = 196
442   1: xxxx  Need char = 128
443      a\x{1234}\x{4321}\x{3412}\x{3421}b  Study returned NULL
444   0: a\x{1234}\x{4321}\x{3412}\x{3421}b    \x{100}\x{100}\x{100}\x{100\x{100}
445   1: \x{1234}\x{4321}\x{3412}\x{3421}   0: \x{100}\x{100}\x{100}
446      *** Failers  
447    /(\x{100}+|x)/8SD
448    ------------------------------------------------------------------
449      0  19 Bra 0
450      3   8 Bra 1
451      8     \x{100}+
452     11   5 Alt
453     14     x
454     16  13 Ket
455     19  19 Ket
456     22     End
457    ------------------------------------------------------------------
458    Capturing subpattern count = 1
459    Partial matching not supported
460    Options: utf8
461    No first char
462    No need char
463    Starting byte set: x \xc4
464    
465    /(\x{100}*a|x)/8SD
466    ------------------------------------------------------------------
467      0  21 Bra 0
468      3  10 Bra 1
469      8     \x{100}*+
470     11     a
471     13   5 Alt
472     16     x
473     18  15 Ket
474     21  21 Ket
475     24     End
476    ------------------------------------------------------------------
477    Capturing subpattern count = 1
478    Partial matching not supported
479    Options: utf8
480    No first char
481    No need char
482    Starting byte set: a x \xc4
483    
484    /(\x{100}{0,2}a|x)/8SD
485    ------------------------------------------------------------------
486      0  23 Bra 0
487      3  12 Bra 1
488      8     \x{100}{0,2}
489     13     a
490     15   5 Alt
491     18     x
492     20  17 Ket
493     23  23 Ket
494     26     End
495    ------------------------------------------------------------------
496    Capturing subpattern count = 1
497    Partial matching not supported
498    Options: utf8
499    No first char
500    No need char
501    Starting byte set: a x \xc4
502    
503    /(\x{100}{1,2}a|x)/8SD
504    ------------------------------------------------------------------
505      0  26 Bra 0
506      3  15 Bra 1
507      8     \x{100}
508     11     \x{100}{0,1}
509     16     a
510     18   5 Alt
511     21     x
512     23  20 Ket
513     26  26 Ket
514     29     End
515    ------------------------------------------------------------------
516    Capturing subpattern count = 1
517    Partial matching not supported
518    Options: utf8
519    No first char
520    No need char
521    Starting byte set: x \xc4
522    
523    /\x{100}*(\d+|"(?1)")/8
524        1234
525     0: 1234
526     1: 1234
527        "1234"
528     0: "1234"
529     1: "1234"
530        \x{100}1234
531     0: \x{100}1234
532     1: 1234
533        "\x{100}1234"
534     0: \x{100}1234
535     1: 1234
536        \x{100}\x{100}12ab
537     0: \x{100}\x{100}12
538     1: 12
539        \x{100}\x{100}"12"
540     0: \x{100}\x{100}"12"
541     1: "12"
542        *** Failers
543  No match  No match
544      a\x{1234}b      \x{100}\x{100}abcd
545  No match  No match
546    
547  /a(.{3,5})b/8  /\x{100}/8D
548      a\x{1234}xyb  ------------------------------------------------------------------
549   0: a\x{1234}xyb    0   6 Bra 0
550   1: \x{1234}xy    3     \x{100}
551      a\x{1234}\x{4321}yb    6   6 Ket
552   0: a\x{1234}\x{4321}yb    9     End
553   1: \x{1234}\x{4321}y  ------------------------------------------------------------------
554      a\x{1234}\x{4321}\x{3412}b  Capturing subpattern count = 0
555   0: a\x{1234}\x{4321}\x{3412}b  Options: utf8
556   1: \x{1234}\x{4321}\x{3412}  First char = 196
557      axxxxbcdefghijb  Need char = 128
558   0: axxxxb  
559   1: xxxx  /\x{100}*/8D
560      a\x{1234}\x{4321}\x{3412}\x{3421}b  ------------------------------------------------------------------
561   0: a\x{1234}\x{4321}\x{3412}\x{3421}b    0   6 Bra 0
562   1: \x{1234}\x{4321}\x{3412}\x{3421}    3     \x{100}*
563      axbxxbcdefghijb    6   6 Ket
564   0: axbxxb    9     End
565   1: xbxx  ------------------------------------------------------------------
566      axxxxxbcdefghijb  Capturing subpattern count = 0
567   0: axxxxxb  Partial matching not supported
568   1: xxxxx  Options: utf8
569      *** Failers  No first char
570  No match  No need char
571      a\x{1234}b  
572    /a\x{100}*/8D
573    ------------------------------------------------------------------
574      0   8 Bra 0
575      3     a
576      5     \x{100}*
577      8   8 Ket
578     11     End
579    ------------------------------------------------------------------
580    Capturing subpattern count = 0
581    Partial matching not supported
582    Options: utf8
583    First char = 'a'
584    No need char
585    
586    /ab\x{100}*/8D
587    ------------------------------------------------------------------
588      0  10 Bra 0
589      3     ab
590      7     \x{100}*
591     10  10 Ket
592     13     End
593    ------------------------------------------------------------------
594    Capturing subpattern count = 0
595    Partial matching not supported
596    Options: utf8
597    First char = 'a'
598    Need char = 'b'
599    
600    /a\x{100}\x{101}*/8D
601    ------------------------------------------------------------------
602      0  11 Bra 0
603      3     a\x{100}
604      8     \x{101}*
605     11  11 Ket
606     14     End
607    ------------------------------------------------------------------
608    Capturing subpattern count = 0
609    Partial matching not supported
610    Options: utf8
611    First char = 'a'
612    Need char = 128
613    
614    /a\x{100}\x{101}+/8D
615    ------------------------------------------------------------------
616      0  11 Bra 0
617      3     a\x{100}
618      8     \x{101}+
619     11  11 Ket
620     14     End
621    ------------------------------------------------------------------
622    Capturing subpattern count = 0
623    Partial matching not supported
624    Options: utf8
625    First char = 'a'
626    Need char = 129
627    
628    /\x{100}*A/8D
629    ------------------------------------------------------------------
630      0   8 Bra 0
631      3     \x{100}*+
632      6     A
633      8   8 Ket
634     11     End
635    ------------------------------------------------------------------
636    Capturing subpattern count = 0
637    Partial matching not supported
638    Options: utf8
639    No first char
640    Need char = 'A'
641        A
642     0: A
643    
644    /\x{100}*\d(?R)/8D
645    ------------------------------------------------------------------
646      0  16 Bra 0
647      3     \x{100}*+
648      6     \d
649      7   6 Once
650     10   0 Recurse
651     13   6 Ket
652     16  16 Ket
653     19     End
654    ------------------------------------------------------------------
655    Capturing subpattern count = 0
656    Partial matching not supported
657    Options: utf8
658    No first char
659    No need char
660    
661    /[^\x{c4}]/D
662    ------------------------------------------------------------------
663      0   5 Bra 0
664      3     [^\xc4]
665      5   5 Ket
666      8     End
667    ------------------------------------------------------------------
668    Capturing subpattern count = 0
669    No options
670    No first char
671    No need char
672    
673    /[^\x{c4}]/8D
674    ------------------------------------------------------------------
675      0  36 Bra 0
676      3     [\x00-\xc3\xc5-\xff] (neg)
677     36  36 Ket
678     39     End
679    ------------------------------------------------------------------
680    Capturing subpattern count = 0
681    Options: utf8
682    No first char
683    No need char
684    
685    /[\x{100}]/8DM
686    Memory allocation (code space): 15
687    ------------------------------------------------------------------
688      0  11 Bra 0
689      3     [\x{100}]
690     11  11 Ket
691     14     End
692    ------------------------------------------------------------------
693    Capturing subpattern count = 0
694    Options: utf8
695    No first char
696    No need char
697        \x{100}
698     0: \x{100}
699        Z\x{100}
700     0: \x{100}
701        \x{100}Z
702     0: \x{100}
703        *** Failers
704  No match  No match
705      axxxxxxbcdefghijb  
706    /[Z\x{100}]/8DM
707    Memory allocation (code space): 47
708    ------------------------------------------------------------------
709      0  43 Bra 0
710      3     [Z\x{100}]
711     43  43 Ket
712     46     End
713    ------------------------------------------------------------------
714    Capturing subpattern count = 0
715    Options: utf8
716    No first char
717    No need char
718        Z\x{100}
719     0: Z
720        \x{100}
721     0: \x{100}
722        \x{100}Z
723     0: \x{100}
724        *** Failers
725  No match  No match
726    
727  /a(.{3,5}?)b/8  /[\x{200}-\x{100}]/8
728      a\x{1234}xyb  Failed: range out of order in character class at offset 15
729   0: a\x{1234}xyb  
730   1: \x{1234}xy  /[Ā-Ą]/8
731      a\x{1234}\x{4321}yb      \x{100}
732   0: a\x{1234}\x{4321}yb   0: \x{100}
733   1: \x{1234}\x{4321}y      \x{104}
734      a\x{1234}\x{4321}\x{3412}b   0: \x{104}
  0: a\x{1234}\x{4321}\x{3412}b  
  1: \x{1234}\x{4321}\x{3412}  
     axxxxbcdefghijb  
  0: axxxxb  
  1: xxxx  
     a\x{1234}\x{4321}\x{3412}\x{3421}b  
  0: a\x{1234}\x{4321}\x{3412}\x{3421}b  
  1: \x{1234}\x{4321}\x{3412}\x{3421}  
     axbxxbcdefghijb  
  0: axbxxb  
  1: xbxx  
     axxxxxbcdefghijb  
  0: axxxxxb  
  1: xxxxx  
735      *** Failers      *** Failers
736  No match  No match
737      a\x{1234}b      \x{105}
738  No match  No match
739      axxxxxxbcdefghijb      \x{ff}
740  No match  No match
741    
742  /^[a\x{c0}]/8  /[z-\x{100}]/8D
743      *** Failers  ------------------------------------------------------------------
744  No match    0  12 Bra 0
745      3     [z-\x{100}]
746     12  12 Ket
747     15     End
748    ------------------------------------------------------------------
749    Capturing subpattern count = 0
750    Options: utf8
751    No first char
752    No need char
753    
754    /[z\Qa-d]Ā\E]/8D
755    ------------------------------------------------------------------
756      0  43 Bra 0
757      3     [\-\]adz\x{100}]
758     43  43 Ket
759     46     End
760    ------------------------------------------------------------------
761    Capturing subpattern count = 0
762    Options: utf8
763    No first char
764    No need char
765      \x{100}      \x{100}
766     0: \x{100}
767        Ā
768     0: \x{100}
769    
770    /[\xFF]/D
771    ------------------------------------------------------------------
772      0   5 Bra 0
773      3     \xff
774      5   5 Ket
775      8     End
776    ------------------------------------------------------------------
777    Capturing subpattern count = 0
778    No options
779    First char = 255
780    No need char
781        >\xff<
782     0: \xff
783    
784    /[\xff]/D8
785    ------------------------------------------------------------------
786      0   6 Bra 0
787      3     \x{ff}
788      6   6 Ket
789      9     End
790    ------------------------------------------------------------------
791    Capturing subpattern count = 0
792    Options: utf8
793    First char = 195
794    Need char = 191
795        >\x{ff}<
796     0: \x{ff}
797    
798    /[^\xFF]/D
799    ------------------------------------------------------------------
800      0   5 Bra 0
801      3     [^\xff]
802      5   5 Ket
803      8     End
804    ------------------------------------------------------------------
805    Capturing subpattern count = 0
806    No options
807    No first char
808    No need char
809    
810    /[^\xff]/8D
811    ------------------------------------------------------------------
812      0  36 Bra 0
813      3     [\x00-\xfe] (neg)
814     36  36 Ket
815     39     End
816    ------------------------------------------------------------------
817    Capturing subpattern count = 0
818    Options: utf8
819    No first char
820    No need char
821    
822    /[Ä-Ü]/8
823        Ö # Matches without Study
824     0: \x{d6}
825        \x{d6}
826     0: \x{d6}
827    
828    /[Ä-Ü]/8S
829        Ö <-- Same with Study
830     0: \x{d6}
831        \x{d6}
832     0: \x{d6}
833    
834    /[\x{c4}-\x{dc}]/8
835        Ö # Matches without Study
836     0: \x{d6}
837        \x{d6}
838     0: \x{d6}
839    
840    /[\x{c4}-\x{dc}]/8S
841        Ö <-- Same with Study
842     0: \x{d6}
843        \x{d6}
844     0: \x{d6}
845    
846    /[]/8
847    Failed: invalid UTF-8 string at offset 2
848    
849    //8
850    Failed: invalid UTF-8 string at offset 0
851    
852    /xxx/8
853    Failed: invalid UTF-8 string at offset 1
854    
855    /xxx/8?D
856    ------------------------------------------------------------------
857      0  15 Bra 0
858      3     \X{c0}\X{c0}\X{c0}xxx
859     15  15 Ket
860     18     End
861    ------------------------------------------------------------------
862    Capturing subpattern count = 0
863    Options: utf8 no_utf8_check
864    First char = 195
865    Need char = 'x'
866    
867    /abc/8
868        ]
869    Error -10
870        
871    Error -10
872        
873    Error -10
874        \?
875    No match
876    
877    /anything/8
878        \xc0\x80
879    Error -10
880        \xc1\x8f
881    Error -10
882        \xe0\x9f\x80
883    Error -10
884        \xf0\x8f\x80\x80
885    Error -10
886        \xf8\x87\x80\x80\x80
887    Error -10
888        \xfc\x83\x80\x80\x80\x80
889    Error -10
890        \xfe\x80\x80\x80\x80\x80
891    Error -10
892        \xff\x80\x80\x80\x80\x80
893    Error -10
894        \xc3\x8f
895    No match
896        \xe0\xaf\x80
897    No match
898        \xe1\x80\x80
899    No match
900        \xf0\x9f\x80\x80
901    No match
902        \xf1\x8f\x80\x80
903    No match
904        \xf8\x88\x80\x80\x80
905    No match
906        \xf9\x87\x80\x80\x80
907    No match
908        \xfc\x84\x80\x80\x80\x80
909    No match
910        \xfd\x83\x80\x80\x80\x80
911    No match
912    
913    /\x{100}abc(xyz(?1))/8D
914    ------------------------------------------------------------------
915      0  35 Bra 0
916      3     \x{100}abc
917     12  20 Bra 1
918     17     xyz
919     23   6 Once
920     26  12 Recurse
921     29   6 Ket
922     32  20 Ket
923     35  35 Ket
924     38     End
925    ------------------------------------------------------------------
926    Capturing subpattern count = 1
927    Options: utf8
928    First char = 196
929    Need char = 'z'
930    
931    /[^\x{100}]abc(xyz(?1))/8D
932    ------------------------------------------------------------------
933      0  40 Bra 0
934      3     [^\x{100}]
935     11     abc
936     17  20 Bra 1
937     22     xyz
938     28   6 Once
939     31  17 Recurse
940     34   6 Ket
941     37  20 Ket
942     40  40 Ket
943     43     End
944    ------------------------------------------------------------------
945    Capturing subpattern count = 1
946    Options: utf8
947    No first char
948    Need char = 'z'
949    
950    /[ab\x{100}]abc(xyz(?1))/8D
951    ------------------------------------------------------------------
952      0  72 Bra 0
953      3     [ab\x{100}]
954     43     abc
955     49  20 Bra 1
956     54     xyz
957     60   6 Once
958     63  49 Recurse
959     66   6 Ket
960     69  20 Ket
961     72  72 Ket
962     75     End
963    ------------------------------------------------------------------
964    Capturing subpattern count = 1
965    Options: utf8
966    No first char
967    Need char = 'z'
968    
969    /(\x{100}(b(?2)c))?/D8
970    ------------------------------------------------------------------
971      0  36 Bra 0
972      3     Brazero
973      4  29 Bra 1
974      9     \x{100}
975     12  18 Bra 2
976     17     b
977     19   6 Once
978     22  12 Recurse
979     25   6 Ket
980     28     c
981     30  18 Ket
982     33  29 Ket
983     36  36 Ket
984     39     End
985    ------------------------------------------------------------------
986    Capturing subpattern count = 2
987    Options: utf8
988    No first char
989    No need char
990    
991    /(\x{100}(b(?2)c)){0,2}/D8
992    ------------------------------------------------------------------
993      0  75 Bra 0
994      3     Brazero
995      4  68 Bra 0
996      7  29 Bra 1
997     12     \x{100}
998     15  18 Bra 2
999     20     b
1000     22   6 Once
1001     25  15 Recurse
1002     28   6 Ket
1003     31     c
1004     33  18 Ket
1005     36  29 Ket
1006     39     Brazero
1007     40  29 Bra 1
1008     45     \x{100}
1009     48  18 Bra 2
1010     53     b
1011     55   6 Once
1012     58  15 Recurse
1013     61   6 Ket
1014     64     c
1015     66  18 Ket
1016     69  29 Ket
1017     72  68 Ket
1018     75  75 Ket
1019     78     End
1020    ------------------------------------------------------------------
1021    Capturing subpattern count = 2
1022    Options: utf8
1023    No first char
1024    No need char
1025    
1026    /(\x{100}(b(?1)c))?/D8
1027    ------------------------------------------------------------------
1028      0  36 Bra 0
1029      3     Brazero
1030      4  29 Bra 1
1031      9     \x{100}
1032     12  18 Bra 2
1033     17     b
1034     19   6 Once
1035     22   4 Recurse
1036     25   6 Ket
1037     28     c
1038     30  18 Ket
1039     33  29 Ket
1040     36  36 Ket
1041     39     End
1042    ------------------------------------------------------------------
1043    Capturing subpattern count = 2
1044    Options: utf8
1045    No first char
1046    No need char
1047    
1048    /(\x{100}(b(?1)c)){0,2}/D8
1049    ------------------------------------------------------------------
1050      0  75 Bra 0
1051      3     Brazero
1052      4  68 Bra 0
1053      7  29 Bra 1
1054     12     \x{100}
1055     15  18 Bra 2
1056     20     b
1057     22   6 Once
1058     25   7 Recurse
1059     28   6 Ket
1060     31     c
1061     33  18 Ket
1062     36  29 Ket
1063     39     Brazero
1064     40  29 Bra 1
1065     45     \x{100}
1066     48  18 Bra 2
1067     53     b
1068     55   6 Once
1069     58   7 Recurse
1070     61   6 Ket
1071     64     c
1072     66  18 Ket
1073     69  29 Ket
1074     72  68 Ket
1075     75  75 Ket
1076     78     End
1077    ------------------------------------------------------------------
1078    Capturing subpattern count = 2
1079    Options: utf8
1080    No first char
1081    No need char
1082    
1083    /\W/8
1084        A.B
1085     0: .
1086        A\x{100}B
1087     0: \x{100}
1088    
1089    /\w/8
1090        \x{100}X
1091     0: X
1092    
1093    /a\x{1234}b/P8
1094        a\x{1234}b
1095     0: a\x{1234}b
1096    
1097    /^\ሴ/8D
1098    ------------------------------------------------------------------
1099      0   8 Bra 0
1100      3     ^
1101      4     \x{1234}
1102      8   8 Ket
1103     11     End
1104    ------------------------------------------------------------------
1105    Capturing subpattern count = 0
1106    Options: anchored utf8
1107    No first char
1108    No need char
1109    
1110    /\777/I
1111    Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1112    
1113    /\777/8I
1114    Capturing subpattern count = 0
1115    Options: utf8
1116    First char = 199
1117    Need char = 191
1118      \x{1ff}
1119     0: \x{1ff}
1120      \777
1121     0: \x{1ff}
1122    
1123    /\x{100}*\d/8D
1124    ------------------------------------------------------------------
1125      0   7 Bra 0
1126      3     \x{100}*+
1127      6     \d
1128      7   7 Ket
1129     10     End
1130    ------------------------------------------------------------------
1131    Capturing subpattern count = 0
1132    Partial matching not supported
1133    Options: utf8
1134    No first char
1135    No need char
1136    
1137    /\x{100}*\s/8D
1138    ------------------------------------------------------------------
1139      0   7 Bra 0
1140      3     \x{100}*+
1141      6     \s
1142      7   7 Ket
1143     10     End
1144    ------------------------------------------------------------------
1145    Capturing subpattern count = 0
1146    Partial matching not supported
1147    Options: utf8
1148    No first char
1149    No need char
1150    
1151    /\x{100}*\w/8D
1152    ------------------------------------------------------------------
1153      0   7 Bra 0
1154      3     \x{100}*+
1155      6     \w
1156      7   7 Ket
1157     10     End
1158    ------------------------------------------------------------------
1159    Capturing subpattern count = 0
1160    Partial matching not supported
1161    Options: utf8
1162    No first char
1163    No need char
1164    
1165    /\x{100}*\D/8D
1166    ------------------------------------------------------------------
1167      0   7 Bra 0
1168      3     \x{100}*
1169      6     \D
1170      7   7 Ket
1171     10     End
1172    ------------------------------------------------------------------
1173    Capturing subpattern count = 0
1174    Partial matching not supported
1175    Options: utf8
1176    No first char
1177    No need char
1178    
1179    /\x{100}*\S/8D
1180    ------------------------------------------------------------------
1181      0   7 Bra 0
1182      3     \x{100}*
1183      6     \S
1184      7   7 Ket
1185     10     End
1186    ------------------------------------------------------------------
1187    Capturing subpattern count = 0
1188    Partial matching not supported
1189    Options: utf8
1190    No first char
1191    No need char
1192    
1193    /\x{100}*\W/8D
1194    ------------------------------------------------------------------
1195      0   7 Bra 0
1196      3     \x{100}*
1197      6     \W
1198      7   7 Ket
1199     10     End
1200    ------------------------------------------------------------------
1201    Capturing subpattern count = 0
1202    Partial matching not supported
1203    Options: utf8
1204    No first char
1205    No need char
1206    
1207    /\x{100}+\x{200}/8D
1208    ------------------------------------------------------------------
1209      0   9 Bra 0
1210      3     \x{100}++
1211      6     \x{200}
1212      9   9 Ket
1213     12     End
1214    ------------------------------------------------------------------
1215    Capturing subpattern count = 0
1216    Partial matching not supported
1217    Options: utf8
1218    First char = 196
1219    Need char = 128
1220    
1221    /\x{100}+X/8D
1222    ------------------------------------------------------------------
1223      0   8 Bra 0
1224      3     \x{100}++
1225      6     X
1226      8   8 Ket
1227     11     End
1228    ------------------------------------------------------------------
1229    Capturing subpattern count = 0
1230    Partial matching not supported
1231    Options: utf8
1232    First char = 196
1233    Need char = 'X'
1234    
1235    /X+\x{200}/8D
1236    ------------------------------------------------------------------
1237      0   8 Bra 0
1238      3     X++
1239      5     \x{200}
1240      8   8 Ket
1241     11     End
1242    ------------------------------------------------------------------
1243    Capturing subpattern count = 0
1244    Partial matching not supported
1245    Options: utf8
1246    First char = 'X'
1247    Need char = 128
1248    
1249    /()()()()()()()()()()
1250     ()()()()()()()()()()
1251     ()()()()()()()()()()
1252     ()()()()()()()()()()
1253     A (x) (?41) B/8x
1254        AxxB
1255    Matched, but too many substrings
1256     0: AxxB
1257     1:
1258     2:
1259     3:
1260     4:
1261     5:
1262     6:
1263     7:
1264     8:
1265     9:
1266    10:
1267    11:
1268    12:
1269    13:
1270    14:
1271    
1272    /^[\x{100}\E-\Q\E\x{150}]/B8
1273    ------------------------------------------------------------------
1274      0  14 Bra 0
1275      3     ^
1276      4     [\x{100}-\x{150}]
1277     14  14 Ket
1278     17     End
1279    ------------------------------------------------------------------
1280    
1281    /^[\QĀ\E-\QŐ\E]/B8
1282    ------------------------------------------------------------------
1283      0  14 Bra 0
1284      3     ^
1285      4     [\x{100}-\x{150}]
1286     14  14 Ket
1287     17     End
1288    ------------------------------------------------------------------
1289    
1290    /^[\QĀ\E-\QŐ\E/B8
1291    Failed: missing terminating ] for character class at offset 15
1292    
1293    /^abc./mgx8<any>
1294        abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1295     0: abc1
1296     0: abc2
1297     0: abc3
1298     0: abc4
1299     0: abc5
1300     0: abc6
1301     0: abc7
1302     0: abc8
1303     0: abc9
1304    
1305    /abc.$/mgx8<any>
1306        abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1307     0: abc1
1308     0: abc2
1309     0: abc3
1310     0: abc4
1311     0: abc5
1312     0: abc6
1313     0: abc7
1314     0: abc8
1315     0: abc9
1316    
1317    /^a\Rb/8
1318        a\nb
1319     0: a\x{0a}b
1320        a\rb
1321     0: a\x{0d}b
1322        a\r\nb
1323     0: a\x{0d}\x{0a}b
1324        a\x0bb
1325     0: a\x{0b}b
1326        a\x0cb
1327     0: a\x{0c}b
1328        a\x{85}b
1329     0: a\x{85}b
1330        a\x{2028}b
1331     0: a\x{2028}b
1332        a\x{2029}b
1333     0: a\x{2029}b
1334        ** Failers
1335    No match
1336        a\n\rb
1337    No match
1338    
1339    /^a\R*b/8
1340        ab
1341     0: ab
1342        a\nb
1343     0: a\x{0a}b
1344        a\rb
1345     0: a\x{0d}b
1346        a\r\nb
1347     0: a\x{0d}\x{0a}b
1348        a\x0bb
1349     0: a\x{0b}b
1350        a\x0c\x{2028}\x{2029}b
1351     0: a\x{0c}\x{2028}\x{2029}b
1352        a\x{85}b
1353     0: a\x{85}b
1354        a\n\rb
1355     0: a\x{0a}\x{0d}b
1356        a\n\r\x{85}\x0cb
1357     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1358    
1359    /^a\R+b/8
1360        a\nb
1361     0: a\x{0a}b
1362        a\rb
1363     0: a\x{0d}b
1364        a\r\nb
1365     0: a\x{0d}\x{0a}b
1366        a\x0bb
1367     0: a\x{0b}b
1368        a\x0c\x{2028}\x{2029}b
1369     0: a\x{0c}\x{2028}\x{2029}b
1370        a\x{85}b
1371     0: a\x{85}b
1372        a\n\rb
1373     0: a\x{0a}\x{0d}b
1374        a\n\r\x{85}\x0cb
1375     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1376        ** Failers
1377    No match
1378        ab
1379    No match
1380    
1381    /^a\R{1,3}b/8
1382        a\nb
1383     0: a\x{0a}b
1384        a\n\rb
1385     0: a\x{0a}\x{0d}b
1386        a\n\r\x{85}b
1387     0: a\x{0a}\x{0d}\x{85}b
1388        a\r\n\r\nb
1389     0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1390        a\r\n\r\n\r\nb
1391     0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1392        a\n\r\n\rb
1393     0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1394        a\n\n\r\nb
1395     0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1396        ** Failers
1397  No match  No match
1398        a\n\n\n\rb
 /(?<=aXb)cd/8  
     aXbcd  
  0: cd  
   
 /(?<=a\x{100}b)cd/8  
     a\x{100}bcd  
  0: cd  
   
 /(?<=a\x{100000}b)cd/8  
     a\x{100000}bcd  
  0: cd  
   
 /(?:\x{100}){3}b/8  
     \x{100}\x{100}\x{100}b  
  0: \x{100}\x{100}\x{100}b  
     *** Failers  
1399  No match  No match
1400      \x{100}\x{100}b      a\r
1401  No match  No match
1402    
1403  / End of testinput5 /  / End of testinput5 /
   

Legend:
Removed from v.51  
changed lines
  Added in v.96

  ViewVC Help
Powered by ViewVC 1.1.5