/[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 69 by nigel, Sat Feb 24 21:40:18 2007 UTC revision 428 by ph10, Mon Aug 31 17:10:26 2009 UTC
# Line 1  Line 1 
1  PCRE version 4.3 21-May-2003  /\x{100}/8DZ
   
 /\x{100}/8DM  
 Memory allocation (code space): 11  
2  ------------------------------------------------------------------  ------------------------------------------------------------------
3    0   7 Bra 0          Bra
4    3   2 \x{100}          \x{100}
5    7   7 Ket          Ket
6   10     End          End
7  ------------------------------------------------------------------  ------------------------------------------------------------------
8  Capturing subpattern count = 0  Capturing subpattern count = 0
9  Options: utf8  Options: utf8
10  First char = 196  First char = 196
11  Need char = 128  Need char = 128
12    
13  /\x{1000}/8DM  /\x{1000}/8DZ
 Memory allocation (code space): 12  
14  ------------------------------------------------------------------  ------------------------------------------------------------------
15    0   8 Bra 0          Bra
16    3   3 \x{1000}          \x{1000}
17    8   8 Ket          Ket
18   11     End          End
19  ------------------------------------------------------------------  ------------------------------------------------------------------
20  Capturing subpattern count = 0  Capturing subpattern count = 0
21  Options: utf8  Options: utf8
22  First char = 225  First char = 225
23  Need char = 128  Need char = 128
24    
25  /\x{10000}/8DM  /\x{10000}/8DZ
 Memory allocation (code space): 13  
26  ------------------------------------------------------------------  ------------------------------------------------------------------
27    0   9 Bra 0          Bra
28    3   4 \x{10000}          \x{10000}
29    9   9 Ket          Ket
30   12     End          End
31  ------------------------------------------------------------------  ------------------------------------------------------------------
32  Capturing subpattern count = 0  Capturing subpattern count = 0
33  Options: utf8  Options: utf8
34  First char = 240  First char = 240
35  Need char = 128  Need char = 128
36    
37  /\x{100000}/8DM  /\x{100000}/8DZ
 Memory allocation (code space): 13  
38  ------------------------------------------------------------------  ------------------------------------------------------------------
39    0   9 Bra 0          Bra
40    3   4 \x{100000}          \x{100000}
41    9   9 Ket          Ket
42   12     End          End
43  ------------------------------------------------------------------  ------------------------------------------------------------------
44  Capturing subpattern count = 0  Capturing subpattern count = 0
45  Options: utf8  Options: utf8
46  First char = 244  First char = 244
47  Need char = 128  Need char = 128
48    
49  /\x{1000000}/8DM  /\x{1000000}/8DZ
 Memory allocation (code space): 14  
50  ------------------------------------------------------------------  ------------------------------------------------------------------
51    0  10 Bra 0          Bra
52    3   5 \x{1000000}          \x{1000000}
53   10  10 Ket          Ket
54   13     End          End
55  ------------------------------------------------------------------  ------------------------------------------------------------------
56  Capturing subpattern count = 0  Capturing subpattern count = 0
57  Options: utf8  Options: utf8
58  First char = 249  First char = 249
59  Need char = 128  Need char = 128
60    
61  /\x{4000000}/8DM  /\x{4000000}/8DZ
 Memory allocation (code space): 15  
62  ------------------------------------------------------------------  ------------------------------------------------------------------
63    0  11 Bra 0          Bra
64    3   6 \x{4000000}          \x{4000000}
65   11  11 Ket          Ket
66   14     End          End
67  ------------------------------------------------------------------  ------------------------------------------------------------------
68  Capturing subpattern count = 0  Capturing subpattern count = 0
69  Options: utf8  Options: utf8
70  First char = 252  First char = 252
71  Need char = 128  Need char = 128
72    
73  /\x{7fffFFFF}/8DM  /\x{7fffFFFF}/8DZ
 Memory allocation (code space): 15  
74  ------------------------------------------------------------------  ------------------------------------------------------------------
75    0  11 Bra 0          Bra
76    3   6 \x{7fffffff}          \x{7fffffff}
77   11  11 Ket          Ket
78   14     End          End
79  ------------------------------------------------------------------  ------------------------------------------------------------------
80  Capturing subpattern count = 0  Capturing subpattern count = 0
81  Options: utf8  Options: utf8
82  First char = 253  First char = 253
83  Need char = 191  Need char = 191
84    
85  /[\x{ff}]/8DM  /[\x{ff}]/8DZ
 Memory allocation (code space): 40  
86  ------------------------------------------------------------------  ------------------------------------------------------------------
87    0  36 Bra 0          Bra
88    3     [\xff]          \x{ff}
89   36  36 Ket          Ket
90   39     End          End
91  ------------------------------------------------------------------  ------------------------------------------------------------------
92  Capturing subpattern count = 0  Capturing subpattern count = 0
93  Options: utf8  Options: utf8
94  No first char  First char = 195
95  No need char  Need char = 191
96    
97  /[\x{100}]/8DM  /[\x{100}]/8DZ
 Memory allocation (code space): 47  
98  ------------------------------------------------------------------  ------------------------------------------------------------------
99    0  11 Bra 0          Bra
100    3     [\x{100}]          [\x{100}]
101   11  11 Ket          Ket
102   14     End          End
103  ------------------------------------------------------------------  ------------------------------------------------------------------
104  Capturing subpattern count = 0  Capturing subpattern count = 0
105  Options: utf8  Options: utf8
# Line 127  Failed: character value in \x{...} seque Line 116  Failed: character value in \x{...} seque
116      \x{100}a\x{1234}bcd      \x{100}a\x{1234}bcd
117   0: \x{100}a\x{1234}   0: \x{100}a\x{1234}
118    
119  /\x80/8D  /\x80/8DZ
120  ------------------------------------------------------------------  ------------------------------------------------------------------
121    0   7 Bra 0          Bra
122    3   2 \x{80}          \x{80}
123    7   7 Ket          Ket
124   10     End          End
125  ------------------------------------------------------------------  ------------------------------------------------------------------
126  Capturing subpattern count = 0  Capturing subpattern count = 0
127  Options: utf8  Options: utf8
128  First char = 194  First char = 194
129  Need char = 128  Need char = 128
130    
131  /\xff/8D  /\xff/8DZ
132  ------------------------------------------------------------------  ------------------------------------------------------------------
133    0   7 Bra 0          Bra
134    3   2 \x{ff}          \x{ff}
135    7   7 Ket          Ket
136   10     End          End
137  ------------------------------------------------------------------  ------------------------------------------------------------------
138  Capturing subpattern count = 0  Capturing subpattern count = 0
139  Options: utf8  Options: utf8
140  First char = 195  First char = 195
141  Need char = 191  Need char = 191
142    
143  /\x{0041}\x{2262}\x{0391}\x{002e}/D8  /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
144  ------------------------------------------------------------------  ------------------------------------------------------------------
145    0  12 Bra 0          Bra
146    3   7 A\x{2262}\x{391}.          A\x{2262}\x{391}.
147   12  12 Ket          Ket
148   15     End          End
149  ------------------------------------------------------------------  ------------------------------------------------------------------
150  Capturing subpattern count = 0  Capturing subpattern count = 0
151  Options: utf8  Options: utf8
# Line 165  Need char = '.' Line 154  Need char = '.'
154      \x{0041}\x{2262}\x{0391}\x{002e}      \x{0041}\x{2262}\x{0391}\x{002e}
155   0: A\x{2262}\x{391}.   0: A\x{2262}\x{391}.
156    
157  /\x{D55c}\x{ad6d}\x{C5B4}/D8  /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
158  ------------------------------------------------------------------  ------------------------------------------------------------------
159    0  14 Bra 0          Bra
160    3   9 \x{d55c}\x{ad6d}\x{c5b4}          \x{d55c}\x{ad6d}\x{c5b4}
161   14  14 Ket          Ket
162   17     End          End
163  ------------------------------------------------------------------  ------------------------------------------------------------------
164  Capturing subpattern count = 0  Capturing subpattern count = 0
165  Options: utf8  Options: utf8
# Line 179  Need char = 180 Line 168  Need char = 180
168      \x{D55c}\x{ad6d}\x{C5B4}      \x{D55c}\x{ad6d}\x{C5B4}
169   0: \x{d55c}\x{ad6d}\x{c5b4}   0: \x{d55c}\x{ad6d}\x{c5b4}
170    
171  /\x{65e5}\x{672c}\x{8a9e}/D8  /\x{65e5}\x{672c}\x{8a9e}/DZ8
172  ------------------------------------------------------------------  ------------------------------------------------------------------
173    0  14 Bra 0          Bra
174    3   9 \x{65e5}\x{672c}\x{8a9e}          \x{65e5}\x{672c}\x{8a9e}
175   14  14 Ket          Ket
176   17     End          End
177  ------------------------------------------------------------------  ------------------------------------------------------------------
178  Capturing subpattern count = 0  Capturing subpattern count = 0
179  Options: utf8  Options: utf8
# Line 193  Need char = 158 Line 182  Need char = 158
182      \x{65e5}\x{672c}\x{8a9e}      \x{65e5}\x{672c}\x{8a9e}
183   0: \x{65e5}\x{672c}\x{8a9e}   0: \x{65e5}\x{672c}\x{8a9e}
184    
185  /\x{80}/D8  /\x{80}/DZ8
186  ------------------------------------------------------------------  ------------------------------------------------------------------
187    0   7 Bra 0          Bra
188    3   2 \x{80}          \x{80}
189    7   7 Ket          Ket
190   10     End          End
191  ------------------------------------------------------------------  ------------------------------------------------------------------
192  Capturing subpattern count = 0  Capturing subpattern count = 0
193  Options: utf8  Options: utf8
194  First char = 194  First char = 194
195  Need char = 128  Need char = 128
196    
197  /\x{084}/D8  /\x{084}/DZ8
198  ------------------------------------------------------------------  ------------------------------------------------------------------
199    0   7 Bra 0          Bra
200    3   2 \x{84}          \x{84}
201    7   7 Ket          Ket
202   10     End          End
203  ------------------------------------------------------------------  ------------------------------------------------------------------
204  Capturing subpattern count = 0  Capturing subpattern count = 0
205  Options: utf8  Options: utf8
206  First char = 194  First char = 194
207  Need char = 132  Need char = 132
208    
209  /\x{104}/D8  /\x{104}/DZ8
210  ------------------------------------------------------------------  ------------------------------------------------------------------
211    0   7 Bra 0          Bra
212    3   2 \x{104}          \x{104}
213    7   7 Ket          Ket
214   10     End          End
215  ------------------------------------------------------------------  ------------------------------------------------------------------
216  Capturing subpattern count = 0  Capturing subpattern count = 0
217  Options: utf8  Options: utf8
218  First char = 196  First char = 196
219  Need char = 132  Need char = 132
220    
221  /\x{861}/D8  /\x{861}/DZ8
222  ------------------------------------------------------------------  ------------------------------------------------------------------
223    0   8 Bra 0          Bra
224    3   3 \x{861}          \x{861}
225    8   8 Ket          Ket
226   11     End          End
227  ------------------------------------------------------------------  ------------------------------------------------------------------
228  Capturing subpattern count = 0  Capturing subpattern count = 0
229  Options: utf8  Options: utf8
230  First char = 224  First char = 224
231  Need char = 161  Need char = 161
232    
233  /\x{212ab}/D8  /\x{212ab}/DZ8
234  ------------------------------------------------------------------  ------------------------------------------------------------------
235    0   9 Bra 0          Bra
236    3   4 \x{212ab}          \x{212ab}
237    9   9 Ket          Ket
238   12     End          End
239  ------------------------------------------------------------------  ------------------------------------------------------------------
240  Capturing subpattern count = 0  Capturing subpattern count = 0
241  Options: utf8  Options: utf8
242  First char = 240  First char = 240
243  Need char = 171  Need char = 171
244    
245  /.{3,5}X/D8  /.{3,5}X/DZ8
246  ------------------------------------------------------------------  ------------------------------------------------------------------
247    0  14 Bra 0          Bra
248    3     Any{3}          Any{3}
249    7     Any{0,2}          Any{0,2}
250   11   1 X          X
251   14  14 Ket          Ket
252   17     End          End
253  ------------------------------------------------------------------  ------------------------------------------------------------------
254  Capturing subpattern count = 0  Capturing subpattern count = 0
255  Options: utf8  Options: utf8
# Line 270  Need char = 'X' Line 259  Need char = 'X'
259   0: \x{212ab}\x{212ab}\x{212ab}\x{861}X   0: \x{212ab}\x{212ab}\x{212ab}\x{861}X
260    
261    
262  /.{3,5}?/D8  /.{3,5}?/DZ8
263  ------------------------------------------------------------------  ------------------------------------------------------------------
264    0  11 Bra 0          Bra
265    3     Any{3}          Any{3}
266    7     Any{0,2}?          Any{0,2}?
267   11  11 Ket          Ket
268   14     End          End
269  ------------------------------------------------------------------  ------------------------------------------------------------------
270  Capturing subpattern count = 0  Capturing subpattern count = 0
271  Options: utf8  Options: utf8
# Line 285  No need char Line 274  No need char
274      \x{212ab}\x{212ab}\x{212ab}\x{861}      \x{212ab}\x{212ab}\x{212ab}\x{861}
275   0: \x{212ab}\x{212ab}\x{212ab}   0: \x{212ab}\x{212ab}\x{212ab}
276    
277  /-- These tests are here rather than in testinput4 because Perl 5.6 has --/  /-- These tests are here rather than in testinput4 because Perl 5.6 has some
278  /-- some problems with UTF-8 support, in the area of \x{..} where the   --/  problems with UTF-8 support, in the area of \x{..} where the value is < 255.
279  No match  It grumbles about invalid UTF-8 strings. --/
 /-- value is < 255. It grumbles about invalid UTF-8 strings.            --/  
 No match  
280    
281  /^[a\x{c0}]b/8  /^[a\x{c0}]b/8
282      \x{c0}b      \x{c0}b
# Line 329  No match Line 316  No match
316  /(?<=\C)X/8  /(?<=\C)X/8
317  Failed: \C not allowed in lookbehind assertion at offset 6  Failed: \C not allowed in lookbehind assertion at offset 6
318    
319  /-- This one is here not because it's different to Perl, but because the --/  /-- This one is here not because it's different to Perl, but because the way
320  /-- way the captured single-byte is displayed. (In Perl it becomes a --/  the captured single-byte is displayed. (In Perl it becomes a character, and you
321  No match  can't tell the difference.) --/
 /-- character, and you can't tell the difference.) --/  
 No match  
322    
323  /X(\C)(.*)/8  /X(\C)(.*)/8
324      X\x{1234}      X\x{1234}
# Line 345  No match Line 330  No match
330   1: \x{0a}   1: \x{0a}
331   2: abc   2: abc
332    
333  /^[ab]/8D  /^[ab]/8DZ
334  ------------------------------------------------------------------  ------------------------------------------------------------------
335    0  37 Bra 0          Bra
336    3     ^          ^
337    4     [a-b]          [ab]
338   37  37 Ket          Ket
339   40     End          End
340  ------------------------------------------------------------------  ------------------------------------------------------------------
341  Capturing subpattern count = 0  Capturing subpattern count = 0
342  Options: anchored utf8  Options: anchored utf8
# Line 368  No match Line 353  No match
353      \x{100}      \x{100}
354  No match  No match
355    
356  /^[^ab]/8D  /^[^ab]/8DZ
357  ------------------------------------------------------------------  ------------------------------------------------------------------
358    0  37 Bra 0          Bra
359    3     ^          ^
360    4     [\x00-`c-\xff] (neg)          [\x00-`c-\xff] (neg)
361   37  37 Ket          Ket
362   40     End          End
363  ------------------------------------------------------------------  ------------------------------------------------------------------
364  Capturing subpattern count = 0  Capturing subpattern count = 0
365  Options: anchored utf8  Options: anchored utf8
# Line 391  No need char Line 376  No need char
376      aaa      aaa
377  No match  No match
378    
379  /[^ab\xC0-\xF0]/8SD  /[^ab\xC0-\xF0]/8SDZ
380  ------------------------------------------------------------------  ------------------------------------------------------------------
381    0  36 Bra 0          Bra
382    3     [\x00-`c-\xbf\xf1-\xff] (neg)          [\x00-`c-\xbf\xf1-\xff] (neg)
383   36  36 Ket          Ket
384   39     End          End
385  ------------------------------------------------------------------  ------------------------------------------------------------------
386  Capturing subpattern count = 0  Capturing subpattern count = 0
387  Options: utf8  Options: utf8
388  No first char  No first char
389  No need char  No need char
390  Study size = 40  Starting byte 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  
391    \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
392    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4    \x1a \x1b \x1c \x1d \x1e \x1f \x20 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4
393    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    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
394    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    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
395    \x80 \x81 \x82 \x83 \x84 \x85 \x86 \x87 \x88 \x89 \x8a \x8b \x8c \x8d \x8e    \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca \xcb \xcc \xcd \xce \xcf \xd0
396    \x8f \x90 \x91 \x92 \x93 \x94 \x95 \x96 \x97 \x98 \x99 \x9a \x9b \x9c \x9d    \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9 \xda \xdb \xdc \xdd \xde \xdf
397    \x9e \x9f \xa0 \xa1 \xa2 \xa3 \xa4 \xa5 \xa6 \xa7 \xa8 \xa9 \xaa \xab \xac    \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8 \xe9 \xea \xeb \xec \xed \xee
398    \xad \xae \xaf \xb0 \xb1 \xb2 \xb3 \xb4 \xb5 \xb6 \xb7 \xb8 \xb9 \xba \xbb    \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7 \xf8 \xf9 \xfa \xfb \xfc \xfd
399    \xbc \xbd \xbe \xbf \xc0 \xc1 \xc2 \xc3 \xc4 \xc5 \xc6 \xc7 \xc8 \xc9 \xca    \xfe \xff
   \xcb \xcc \xcd \xce \xcf \xd0 \xd1 \xd2 \xd3 \xd4 \xd5 \xd6 \xd7 \xd8 \xd9  
   \xda \xdb \xdc \xdd \xde \xdf \xe0 \xe1 \xe2 \xe3 \xe4 \xe5 \xe6 \xe7 \xe8  
   \xe9 \xea \xeb \xec \xed \xee \xef \xf0 \xf1 \xf2 \xf3 \xf4 \xf5 \xf6 \xf7  
   \xf8 \xf9 \xfa \xfb \xfc \xfd \xfe \xff  
400      \x{f1}      \x{f1}
401   0: \x{f1}   0: \x{f1}
402      \x{bf}      \x{bf}
# Line 432  No match Line 412  No match
412      \x{f0}      \x{f0}
413  No match  No match
414    
415  /Ā{3,4}/8SD  /Ā{3,4}/8SDZ
416  ------------------------------------------------------------------  ------------------------------------------------------------------
417    0  13 Bra 0          Bra
418    3     \x{100}{3}          \x{100}{3}
419    8     \x{100}{,1}          \x{100}?
420   13  13 Ket          Ket
421   16     End          End
422  ------------------------------------------------------------------  ------------------------------------------------------------------
423  Capturing subpattern count = 0  Capturing subpattern count = 0
424  Options: utf8  Options: utf8
# Line 448  Study returned NULL Line 428  Study returned NULL
428    \x{100}\x{100}\x{100}\x{100\x{100}    \x{100}\x{100}\x{100}\x{100\x{100}
429   0: \x{100}\x{100}\x{100}   0: \x{100}\x{100}\x{100}
430    
431  /(\x{100}+|x)/8SD  /(\x{100}+|x)/8SDZ
432  ------------------------------------------------------------------  ------------------------------------------------------------------
433    0  18 Bra 0          Bra
434    3   6 Bra 1          CBra 1
435    6     \x{100}+          \x{100}+
436    9   6 Alt          Alt
437   12   1 x          x
438   15  12 Ket          Ket
439   18  18 Ket          Ket
440   21     End          End
441  ------------------------------------------------------------------  ------------------------------------------------------------------
442  Capturing subpattern count = 1  Capturing subpattern count = 1
443  Options: utf8  Options: utf8
444  No first char  No first char
445  No need char  No need char
446  Study size = 40  Starting byte set: x \xc4
 Starting character set: x \xc4  
447    
448  /(\x{100}*a|x)/8SD  /(\x{100}*a|x)/8SDZ
449  ------------------------------------------------------------------  ------------------------------------------------------------------
450    0  21 Bra 0          Bra
451    3   9 Bra 1          CBra 1
452    6     \x{100}*          \x{100}*+
453    9   1 a          a
454   12   6 Alt          Alt
455   15   1 x          x
456   18  15 Ket          Ket
457   21  21 Ket          Ket
458   24     End          End
459  ------------------------------------------------------------------  ------------------------------------------------------------------
460  Capturing subpattern count = 1  Capturing subpattern count = 1
461  Options: utf8  Options: utf8
462  No first char  No first char
463  No need char  No need char
464  Study size = 40  Starting byte set: a x \xc4
 Starting character set: a x \xc4  
465    
466  /(\x{100}{0,2}a|x)/8SD  /(\x{100}{0,2}a|x)/8SDZ
467  ------------------------------------------------------------------  ------------------------------------------------------------------
468    0  23 Bra 0          Bra
469    3  11 Bra 1          CBra 1
470    6     \x{100}{,2}          \x{100}{0,2}
471   11   1 a          a
472   14   6 Alt          Alt
473   17   1 x          x
474   20  17 Ket          Ket
475   23  23 Ket          Ket
476   26     End          End
477  ------------------------------------------------------------------  ------------------------------------------------------------------
478  Capturing subpattern count = 1  Capturing subpattern count = 1
479  Options: utf8  Options: utf8
480  No first char  No first char
481  No need char  No need char
482  Study size = 40  Starting byte set: a x \xc4
 Starting character set: a x \xc4  
483    
484  /(\x{100}{1,2}a|x)/8SD  /(\x{100}{1,2}a|x)/8SDZ
485  ------------------------------------------------------------------  ------------------------------------------------------------------
486    0  27 Bra 0          Bra
487    3  15 Bra 1          CBra 1
488    6   2 \x{100}          \x{100}
489   10     \x{100}{,1}          \x{100}{0,1}
490   15   1 a          a
491   18   6 Alt          Alt
492   21   1 x          x
493   24  21 Ket          Ket
494   27  27 Ket          Ket
495   30     End          End
496  ------------------------------------------------------------------  ------------------------------------------------------------------
497  Capturing subpattern count = 1  Capturing subpattern count = 1
498  Options: utf8  Options: utf8
499  No first char  No first char
500  No need char  No need char
501  Study size = 40  Starting byte set: x \xc4
 Starting character set: x \xc4  
502    
503  /\x{100}*(\d+|"(?1)")/8  /\x{100}*(\d+|"(?1)")/8
504      1234      1234
# Line 548  No match Line 524  No match
524      \x{100}\x{100}abcd      \x{100}\x{100}abcd
525  No match  No match
526    
527  /\x{100}/8D  /\x{100}/8DZ
528  ------------------------------------------------------------------  ------------------------------------------------------------------
529    0   7 Bra 0          Bra
530    3   2 \x{100}          \x{100}
531    7   7 Ket          Ket
532   10     End          End
533  ------------------------------------------------------------------  ------------------------------------------------------------------
534  Capturing subpattern count = 0  Capturing subpattern count = 0
535  Options: utf8  Options: utf8
536  First char = 196  First char = 196
537  Need char = 128  Need char = 128
538    
539  /\x{100}*/8D  /\x{100}*/8DZ
540  ------------------------------------------------------------------  ------------------------------------------------------------------
541    0   6 Bra 0          Bra
542    3     \x{100}*          \x{100}*
543    6   6 Ket          Ket
544    9     End          End
545  ------------------------------------------------------------------  ------------------------------------------------------------------
546  Capturing subpattern count = 0  Capturing subpattern count = 0
547  Options: utf8  Options: utf8
548  No first char  No first char
549  No need char  No need char
550    
551  /a\x{100}*/8D  /a\x{100}*/8DZ
552  ------------------------------------------------------------------  ------------------------------------------------------------------
553    0   9 Bra 0          Bra
554    3   1 a          a
555    6     \x{100}*          \x{100}*
556    9   9 Ket          Ket
557   12     End          End
558  ------------------------------------------------------------------  ------------------------------------------------------------------
559  Capturing subpattern count = 0  Capturing subpattern count = 0
560  Options: utf8  Options: utf8
561  First char = 'a'  First char = 'a'
562  No need char  No need char
563    
564  /ab\x{100}*/8D  /ab\x{100}*/8DZ
565  ------------------------------------------------------------------  ------------------------------------------------------------------
566    0  10 Bra 0          Bra
567    3   2 ab          ab
568    7     \x{100}*          \x{100}*
569   10  10 Ket          Ket
570   13     End          End
571  ------------------------------------------------------------------  ------------------------------------------------------------------
572  Capturing subpattern count = 0  Capturing subpattern count = 0
573  Options: utf8  Options: utf8
574  First char = 'a'  First char = 'a'
575  Need char = 'b'  Need char = 'b'
576    
577  /a\x{100}\x{101}*/8D  /a\x{100}\x{101}*/8DZ
578  ------------------------------------------------------------------  ------------------------------------------------------------------
579    0  11 Bra 0          Bra
580    3   3 a\x{100}          a\x{100}
581    8     \x{101}*          \x{101}*
582   11  11 Ket          Ket
583   14     End          End
584  ------------------------------------------------------------------  ------------------------------------------------------------------
585  Capturing subpattern count = 0  Capturing subpattern count = 0
586  Options: utf8  Options: utf8
587  First char = 'a'  First char = 'a'
588  Need char = 128  Need char = 128
589    
590  /a\x{100}\x{101}+/8D  /a\x{100}\x{101}+/8DZ
591  ------------------------------------------------------------------  ------------------------------------------------------------------
592    0  11 Bra 0          Bra
593    3   3 a\x{100}          a\x{100}
594    8     \x{101}+          \x{101}+
595   11  11 Ket          Ket
596   14     End          End
597  ------------------------------------------------------------------  ------------------------------------------------------------------
598  Capturing subpattern count = 0  Capturing subpattern count = 0
599  Options: utf8  Options: utf8
600  First char = 'a'  First char = 'a'
601  Need char = 129  Need char = 129
602    
603  /\x{100}*A/8D  /\x{100}*A/8DZ
604  ------------------------------------------------------------------  ------------------------------------------------------------------
605    0   9 Bra 0          Bra
606    3     \x{100}*          \x{100}*+
607    6   1 A          A
608    9   9 Ket          Ket
609   12     End          End
610  ------------------------------------------------------------------  ------------------------------------------------------------------
611  Capturing subpattern count = 0  Capturing subpattern count = 0
612  Options: utf8  Options: utf8
# Line 639  Need char = 'A' Line 615  Need char = 'A'
615      A      A
616   0: A   0: A
617    
618  /\x{100}*\d(?R)/8D  /\x{100}*\d(?R)/8DZ
619  ------------------------------------------------------------------  ------------------------------------------------------------------
620    0  10 Bra 0          Bra
621    3     \x{100}*          \x{100}*+
622    6     \d          \d
623    7   0 Recurse          Once
624   10  10 Ket          Recurse
625   13     End          Ket
626            Ket
627            End
628  ------------------------------------------------------------------  ------------------------------------------------------------------
629  Capturing subpattern count = 0  Capturing subpattern count = 0
630  Options: utf8  Options: utf8
631  No first char  No first char
632  No need char  No need char
633    
634  /[^\x{c4}]/D  /[^\x{c4}]/DZ
635  ------------------------------------------------------------------  ------------------------------------------------------------------
636    0  36 Bra 0          Bra
637    3     [\x01-35-bd-z|~-\xff] (neg)          [^\xc4]
638   36  36 Ket          Ket
639   39     End          End
640  ------------------------------------------------------------------  ------------------------------------------------------------------
641  Capturing subpattern count = 0  Capturing subpattern count = 0
642  No options  No options
643  No first char  No first char
644  No need char  No need char
645    
646  /[^\x{c4}]/8D  /[^\x{c4}]/8DZ
647  ------------------------------------------------------------------  ------------------------------------------------------------------
648    0  36 Bra 0          Bra
649    3     [\x00-\xc3\xc5-\xff] (neg)          [\x00-\xc3\xc5-\xff] (neg)
650   36  36 Ket          Ket
651   39     End          End
652  ------------------------------------------------------------------  ------------------------------------------------------------------
653  Capturing subpattern count = 0  Capturing subpattern count = 0
654  Options: utf8  Options: utf8
655  No first char  No first char
656  No need char  No need char
657    
658  /[\x{100}]/8DM  /[\x{100}]/8DZ
 Memory allocation (code space): 47  
659  ------------------------------------------------------------------  ------------------------------------------------------------------
660    0  11 Bra 0          Bra
661    3     [\x{100}]          [\x{100}]
662   11  11 Ket          Ket
663   14     End          End
664  ------------------------------------------------------------------  ------------------------------------------------------------------
665  Capturing subpattern count = 0  Capturing subpattern count = 0
666  Options: utf8  Options: utf8
# Line 698  No need char Line 675  No need char
675      *** Failers      *** Failers
676  No match  No match
677    
678  /[Z\x{100}]/8DM  /[Z\x{100}]/8DZ
 Memory allocation (code space): 47  
679  ------------------------------------------------------------------  ------------------------------------------------------------------
680    0  43 Bra 0          Bra
681    3     [Z\x{100}]          [Z\x{100}]
682   43  43 Ket          Ket
683   46     End          End
684  ------------------------------------------------------------------  ------------------------------------------------------------------
685  Capturing subpattern count = 0  Capturing subpattern count = 0
686  Options: utf8  Options: utf8
# Line 734  No match Line 710  No match
710      \x{ff}      \x{ff}
711  No match  No match
712    
713  /[z-\x{100}]/8D  /[z-\x{100}]/8DZ
714  ------------------------------------------------------------------  ------------------------------------------------------------------
715    0  12 Bra 0          Bra
716    3     [z-\x{100}]          [z-\x{100}]
717   12  12 Ket          Ket
718   15     End          End
719  ------------------------------------------------------------------  ------------------------------------------------------------------
720  Capturing subpattern count = 0  Capturing subpattern count = 0
721  Options: utf8  Options: utf8
722  No first char  No first char
723  No need char  No need char
724    
725  /[z-\x{100}]/8Di  /[z\Qa-d]Ā\E]/8DZ
726  ------------------------------------------------------------------  ------------------------------------------------------------------
727    0  45 Bra 0          Bra
728    3     [Zz-\xff\x{100}-\x{100}]          [\-\]adz\x{100}]
729   45  45 Ket          Ket
730   48     End          End
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 No first char  
 No need char  
   
 /[z\Qa-d]Ā\E]/8D  
 ------------------------------------------------------------------  
   0  43 Bra 0  
   3     [\-\]adz\x{100}]  
  43  43 Ket  
  46     End  
731  ------------------------------------------------------------------  ------------------------------------------------------------------
732  Capturing subpattern count = 0  Capturing subpattern count = 0
733  Options: utf8  Options: utf8
# Line 774  No need char Line 738  No need char
738      Ā      Ā
739   0: \x{100}   0: \x{100}
740    
741  /[\xFF]/D  /[\xFF]/DZ
742  ------------------------------------------------------------------  ------------------------------------------------------------------
743    0   6 Bra 0          Bra
744    3   1 \xff          \xff
745    6   6 Ket          Ket
746    9     End          End
747  ------------------------------------------------------------------  ------------------------------------------------------------------
748  Capturing subpattern count = 0  Capturing subpattern count = 0
749  No options  No options
# Line 788  No need char Line 752  No need char
752      >\xff<      >\xff<
753   0: \xff   0: \xff
754    
755  /[\xff]/D8  /[\xff]/DZ8
756  ------------------------------------------------------------------  ------------------------------------------------------------------
757    0  36 Bra 0          Bra
758    3     [\xff]          \x{ff}
759   36  36 Ket          Ket
760   39     End          End
761  ------------------------------------------------------------------  ------------------------------------------------------------------
762  Capturing subpattern count = 0  Capturing subpattern count = 0
763  Options: utf8  Options: utf8
764  No first char  First char = 195
765  No need char  Need char = 191
766      >\x{ff}<      >\x{ff}<
767   0: \x{ff}   0: \x{ff}
768    
769  /[^\xFF]/D  /[^\xFF]/DZ
770  ------------------------------------------------------------------  ------------------------------------------------------------------
771    0   5 Bra 0          Bra
772    3     [^\xff]          [^\xff]
773    5   5 Ket          Ket
774    8     End          End
775  ------------------------------------------------------------------  ------------------------------------------------------------------
776  Capturing subpattern count = 0  Capturing subpattern count = 0
777  No options  No options
778  No first char  No first char
779  No need char  No need char
780    
781  /[^\xff]/8D  /[^\xff]/8DZ
782  ------------------------------------------------------------------  ------------------------------------------------------------------
783    0  36 Bra 0          Bra
784    3     [\x00-\xfe] (neg)          [\x00-\xfe] (neg)
785   36  36 Ket          Ket
786   39     End          End
787  ------------------------------------------------------------------  ------------------------------------------------------------------
788  Capturing subpattern count = 0  Capturing subpattern count = 0
789  Options: utf8  Options: utf8
790  No first char  No first char
791  No need char  No need char
792    
793  / End of testinput5 /  /[Ä-Ü]/8
794        Ö # Matches without Study
795     0: \x{d6}
796        \x{d6}
797     0: \x{d6}
798    
799    /[Ä-Ü]/8S
800        Ö <-- Same with Study
801     0: \x{d6}
802        \x{d6}
803     0: \x{d6}
804    
805    /[\x{c4}-\x{dc}]/8
806        Ö # Matches without Study
807     0: \x{d6}
808        \x{d6}
809     0: \x{d6}
810    
811    /[\x{c4}-\x{dc}]/8S
812        Ö <-- Same with Study
813     0: \x{d6}
814        \x{d6}
815     0: \x{d6}
816    
817    /[]/8
818    Failed: invalid UTF-8 string at offset 2
819    
820    //8
821    Failed: invalid UTF-8 string at offset 0
822    
823    /xxx/8
824    Failed: invalid UTF-8 string at offset 1
825    
826    /xxx/8?DZ
827    ------------------------------------------------------------------
828            Bra
829            \X{c0}\X{c0}\X{c0}xxx
830            Ket
831            End
832    ------------------------------------------------------------------
833    Capturing subpattern count = 0
834    Options: utf8 no_utf8_check
835    First char = 195
836    Need char = 'x'
837    
838    /abc/8
839        ]
840    Error -10
841        
842    Error -10
843        
844    Error -10
845        \?
846    No match
847    
848    /anything/8
849        \xc0\x80
850    Error -10
851        \xc1\x8f
852    Error -10
853        \xe0\x9f\x80
854    Error -10
855        \xf0\x8f\x80\x80
856    Error -10
857        \xf8\x87\x80\x80\x80
858    Error -10
859        \xfc\x83\x80\x80\x80\x80
860    Error -10
861        \xfe\x80\x80\x80\x80\x80
862    Error -10
863        \xff\x80\x80\x80\x80\x80
864    Error -10
865        \xc3\x8f
866    No match
867        \xe0\xaf\x80
868    No match
869        \xe1\x80\x80
870    No match
871        \xf0\x9f\x80\x80
872    No match
873        \xf1\x8f\x80\x80
874    No match
875        \xf8\x88\x80\x80\x80
876    Error -10
877        \xf9\x87\x80\x80\x80
878    Error -10
879        \xfc\x84\x80\x80\x80\x80
880    Error -10
881        \xfd\x83\x80\x80\x80\x80
882    Error -10
883        \?\xf8\x88\x80\x80\x80
884    No match
885        \?\xf9\x87\x80\x80\x80
886    No match
887        \?\xfc\x84\x80\x80\x80\x80
888    No match
889        \?\xfd\x83\x80\x80\x80\x80
890    No match
891    
892    /\x{100}abc(xyz(?1))/8DZ
893    ------------------------------------------------------------------
894            Bra
895            \x{100}abc
896            CBra 1
897            xyz
898            Once
899            Recurse
900            Ket
901            Ket
902            Ket
903            End
904    ------------------------------------------------------------------
905    Capturing subpattern count = 1
906    Options: utf8
907    First char = 196
908    Need char = 'z'
909    
910    /[^\x{100}]abc(xyz(?1))/8DZ
911    ------------------------------------------------------------------
912            Bra
913            [^\x{100}]
914            abc
915            CBra 1
916            xyz
917            Once
918            Recurse
919            Ket
920            Ket
921            Ket
922            End
923    ------------------------------------------------------------------
924    Capturing subpattern count = 1
925    Options: utf8
926    No first char
927    Need char = 'z'
928    
929    /[ab\x{100}]abc(xyz(?1))/8DZ
930    ------------------------------------------------------------------
931            Bra
932            [ab\x{100}]
933            abc
934            CBra 1
935            xyz
936            Once
937            Recurse
938            Ket
939            Ket
940            Ket
941            End
942    ------------------------------------------------------------------
943    Capturing subpattern count = 1
944    Options: utf8
945    No first char
946    Need char = 'z'
947    
948    /(\x{100}(b(?2)c))?/DZ8
949    ------------------------------------------------------------------
950            Bra
951            Brazero
952            CBra 1
953            \x{100}
954            CBra 2
955            b
956            Once
957            Recurse
958            Ket
959            c
960            Ket
961            Ket
962            Ket
963            End
964    ------------------------------------------------------------------
965    Capturing subpattern count = 2
966    Options: utf8
967    No first char
968    No need char
969    
970    /(\x{100}(b(?2)c)){0,2}/DZ8
971    ------------------------------------------------------------------
972            Bra
973            Brazero
974            Bra
975            CBra 1
976            \x{100}
977            CBra 2
978            b
979            Once
980            Recurse
981            Ket
982            c
983            Ket
984            Ket
985            Brazero
986            CBra 1
987            \x{100}
988            CBra 2
989            b
990            Once
991            Recurse
992            Ket
993            c
994            Ket
995            Ket
996            Ket
997            Ket
998            End
999    ------------------------------------------------------------------
1000    Capturing subpattern count = 2
1001    Options: utf8
1002    No first char
1003    No need char
1004    
1005    /(\x{100}(b(?1)c))?/DZ8
1006    ------------------------------------------------------------------
1007            Bra
1008            Brazero
1009            CBra 1
1010            \x{100}
1011            CBra 2
1012            b
1013            Once
1014            Recurse
1015            Ket
1016            c
1017            Ket
1018            Ket
1019            Ket
1020            End
1021    ------------------------------------------------------------------
1022    Capturing subpattern count = 2
1023    Options: utf8
1024    No first char
1025    No need char
1026    
1027    /(\x{100}(b(?1)c)){0,2}/DZ8
1028    ------------------------------------------------------------------
1029            Bra
1030            Brazero
1031            Bra
1032            CBra 1
1033            \x{100}
1034            CBra 2
1035            b
1036            Once
1037            Recurse
1038            Ket
1039            c
1040            Ket
1041            Ket
1042            Brazero
1043            CBra 1
1044            \x{100}
1045            CBra 2
1046            b
1047            Once
1048            Recurse
1049            Ket
1050            c
1051            Ket
1052            Ket
1053            Ket
1054            Ket
1055            End
1056    ------------------------------------------------------------------
1057    Capturing subpattern count = 2
1058    Options: utf8
1059    No first char
1060    No need char
1061    
1062    /\W/8
1063        A.B
1064     0: .
1065        A\x{100}B
1066     0: \x{100}
1067    
1068    /\w/8
1069        \x{100}X
1070     0: X
1071    
1072    /a\x{1234}b/P8
1073        a\x{1234}b
1074     0: a\x{1234}b
1075    
1076    /^\ሴ/8DZ
1077    ------------------------------------------------------------------
1078            Bra
1079            ^
1080            \x{1234}
1081            Ket
1082            End
1083    ------------------------------------------------------------------
1084    Capturing subpattern count = 0
1085    Options: anchored utf8
1086    No first char
1087    No need char
1088    
1089    /\777/I
1090    Failed: octal value is greater than \377 (not in UTF-8 mode) at offset 3
1091    
1092    /\777/8I
1093    Capturing subpattern count = 0
1094    Options: utf8
1095    First char = 199
1096    Need char = 191
1097      \x{1ff}
1098     0: \x{1ff}
1099      \777
1100     0: \x{1ff}
1101    
1102    /\x{100}*\d/8DZ
1103    ------------------------------------------------------------------
1104            Bra
1105            \x{100}*+
1106            \d
1107            Ket
1108            End
1109    ------------------------------------------------------------------
1110    Capturing subpattern count = 0
1111    Options: utf8
1112    No first char
1113    No need char
1114    
1115    /\x{100}*\s/8DZ
1116    ------------------------------------------------------------------
1117            Bra
1118            \x{100}*+
1119            \s
1120            Ket
1121            End
1122    ------------------------------------------------------------------
1123    Capturing subpattern count = 0
1124    Options: utf8
1125    No first char
1126    No need char
1127    
1128    /\x{100}*\w/8DZ
1129    ------------------------------------------------------------------
1130            Bra
1131            \x{100}*+
1132            \w
1133            Ket
1134            End
1135    ------------------------------------------------------------------
1136    Capturing subpattern count = 0
1137    Options: utf8
1138    No first char
1139    No need char
1140    
1141    /\x{100}*\D/8DZ
1142    ------------------------------------------------------------------
1143            Bra
1144            \x{100}*
1145            \D
1146            Ket
1147            End
1148    ------------------------------------------------------------------
1149    Capturing subpattern count = 0
1150    Options: utf8
1151    No first char
1152    No need char
1153    
1154    /\x{100}*\S/8DZ
1155    ------------------------------------------------------------------
1156            Bra
1157            \x{100}*
1158            \S
1159            Ket
1160            End
1161    ------------------------------------------------------------------
1162    Capturing subpattern count = 0
1163    Options: utf8
1164    No first char
1165    No need char
1166    
1167    /\x{100}*\W/8DZ
1168    ------------------------------------------------------------------
1169            Bra
1170            \x{100}*
1171            \W
1172            Ket
1173            End
1174    ------------------------------------------------------------------
1175    Capturing subpattern count = 0
1176    Options: utf8
1177    No first char
1178    No need char
1179    
1180    /\x{100}+\x{200}/8DZ
1181    ------------------------------------------------------------------
1182            Bra
1183            \x{100}++
1184            \x{200}
1185            Ket
1186            End
1187    ------------------------------------------------------------------
1188    Capturing subpattern count = 0
1189    Options: utf8
1190    First char = 196
1191    Need char = 128
1192    
1193    /\x{100}+X/8DZ
1194    ------------------------------------------------------------------
1195            Bra
1196            \x{100}++
1197            X
1198            Ket
1199            End
1200    ------------------------------------------------------------------
1201    Capturing subpattern count = 0
1202    Options: utf8
1203    First char = 196
1204    Need char = 'X'
1205    
1206    /X+\x{200}/8DZ
1207    ------------------------------------------------------------------
1208            Bra
1209            X++
1210            \x{200}
1211            Ket
1212            End
1213    ------------------------------------------------------------------
1214    Capturing subpattern count = 0
1215    Options: utf8
1216    First char = 'X'
1217    Need char = 128
1218    
1219    /()()()()()()()()()()
1220     ()()()()()()()()()()
1221     ()()()()()()()()()()
1222     ()()()()()()()()()()
1223     A (x) (?41) B/8x
1224        AxxB
1225    Matched, but too many substrings
1226     0: AxxB
1227     1:
1228     2:
1229     3:
1230     4:
1231     5:
1232     6:
1233     7:
1234     8:
1235     9:
1236    10:
1237    11:
1238    12:
1239    13:
1240    14:
1241    
1242    /^[\x{100}\E-\Q\E\x{150}]/BZ8
1243    ------------------------------------------------------------------
1244            Bra
1245            ^
1246            [\x{100}-\x{150}]
1247            Ket
1248            End
1249    ------------------------------------------------------------------
1250    
1251    /^[\QĀ\E-\QŐ\E]/BZ8
1252    ------------------------------------------------------------------
1253            Bra
1254            ^
1255            [\x{100}-\x{150}]
1256            Ket
1257            End
1258    ------------------------------------------------------------------
1259    
1260    /^[\QĀ\E-\QŐ\E/BZ8
1261    Failed: missing terminating ] for character class at offset 15
1262    
1263    /^abc./mgx8<any>
1264        abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
1265     0: abc1
1266     0: abc2
1267     0: abc3
1268     0: abc4
1269     0: abc5
1270     0: abc6
1271     0: abc7
1272     0: abc8
1273     0: abc9
1274    
1275    /abc.$/mgx8<any>
1276        abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
1277     0: abc1
1278     0: abc2
1279     0: abc3
1280     0: abc4
1281     0: abc5
1282     0: abc6
1283     0: abc7
1284     0: abc8
1285     0: abc9
1286    
1287    /^a\Rb/8<bsr_unicode>
1288        a\nb
1289     0: a\x{0a}b
1290        a\rb
1291     0: a\x{0d}b
1292        a\r\nb
1293     0: a\x{0d}\x{0a}b
1294        a\x0bb
1295     0: a\x{0b}b
1296        a\x0cb
1297     0: a\x{0c}b
1298        a\x{85}b
1299     0: a\x{85}b
1300        a\x{2028}b
1301     0: a\x{2028}b
1302        a\x{2029}b
1303     0: a\x{2029}b
1304        ** Failers
1305    No match
1306        a\n\rb
1307    No match
1308    
1309    /^a\R*b/8<bsr_unicode>
1310        ab
1311     0: ab
1312        a\nb
1313     0: a\x{0a}b
1314        a\rb
1315     0: a\x{0d}b
1316        a\r\nb
1317     0: a\x{0d}\x{0a}b
1318        a\x0bb
1319     0: a\x{0b}b
1320        a\x0c\x{2028}\x{2029}b
1321     0: a\x{0c}\x{2028}\x{2029}b
1322        a\x{85}b
1323     0: a\x{85}b
1324        a\n\rb
1325     0: a\x{0a}\x{0d}b
1326        a\n\r\x{85}\x0cb
1327     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1328    
1329    /^a\R+b/8<bsr_unicode>
1330        a\nb
1331     0: a\x{0a}b
1332        a\rb
1333     0: a\x{0d}b
1334        a\r\nb
1335     0: a\x{0d}\x{0a}b
1336        a\x0bb
1337     0: a\x{0b}b
1338        a\x0c\x{2028}\x{2029}b
1339     0: a\x{0c}\x{2028}\x{2029}b
1340        a\x{85}b
1341     0: a\x{85}b
1342        a\n\rb
1343     0: a\x{0a}\x{0d}b
1344        a\n\r\x{85}\x0cb
1345     0: a\x{0a}\x{0d}\x{85}\x{0c}b
1346        ** Failers
1347    No match
1348        ab
1349    No match
1350    
1351    /^a\R{1,3}b/8<bsr_unicode>
1352        a\nb
1353     0: a\x{0a}b
1354        a\n\rb
1355     0: a\x{0a}\x{0d}b
1356        a\n\r\x{85}b
1357     0: a\x{0a}\x{0d}\x{85}b
1358        a\r\n\r\nb
1359     0: a\x{0d}\x{0a}\x{0d}\x{0a}b
1360        a\r\n\r\n\r\nb
1361     0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b
1362        a\n\r\n\rb
1363     0: a\x{0a}\x{0d}\x{0a}\x{0d}b
1364        a\n\n\r\nb
1365     0: a\x{0a}\x{0a}\x{0d}\x{0a}b
1366        ** Failers
1367    No match
1368        a\n\n\n\rb
1369    No match
1370        a\r
1371    No match
1372    
1373    /\H\h\V\v/8
1374        X X\x0a
1375     0: X X\x{0a}
1376        X\x09X\x0b
1377     0: X\x{09}X\x{0b}
1378        ** Failers
1379    No match
1380        \x{a0} X\x0a
1381    No match
1382    
1383    /\H*\h+\V?\v{3,4}/8
1384        \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
1385     0: \x{09} \x{a0}X\x{0a}\x{0b}\x{0c}\x{0d}
1386        \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
1387     0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}\x{0d}
1388        \x09\x20\x{a0}\x0a\x0b\x0c
1389     0: \x{09} \x{a0}\x{0a}\x{0b}\x{0c}
1390        ** Failers
1391    No match
1392        \x09\x20\x{a0}\x0a\x0b
1393    No match
1394    
1395    /\H\h\V\v/8
1396        \x{3001}\x{3000}\x{2030}\x{2028}
1397     0: \x{3001}\x{3000}\x{2030}\x{2028}
1398        X\x{180e}X\x{85}
1399     0: X\x{180e}X\x{85}
1400        ** Failers
1401    No match
1402        \x{2009} X\x0a
1403    No match
1404    
1405    /\H*\h+\V?\v{3,4}/8
1406        \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
1407     0: \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x{0c}\x{0d}
1408        \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
1409     0: \x{09}\x{205f}\x{a0}\x{0a}\x{2029}\x{0c}\x{2028}
1410        \x09\x20\x{202f}\x0a\x0b\x0c
1411     0: \x{09} \x{202f}\x{0a}\x{0b}\x{0c}
1412        ** Failers
1413    No match
1414        \x09\x{200a}\x{a0}\x{2028}\x0b
1415    No match
1416    
1417    /[\h]/8BZ
1418    ------------------------------------------------------------------
1419            Bra
1420            [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]
1421            Ket
1422            End
1423    ------------------------------------------------------------------
1424        >\x{1680}
1425     0: \x{1680}
1426    
1427    /[\h]{3,}/8BZ
1428    ------------------------------------------------------------------
1429            Bra
1430            [\x09 \xa0\x{1680}\x{180e}\x{2000}-\x{200a}\x{202f}\x{205f}\x{3000}]{3,}
1431            Ket
1432            End
1433    ------------------------------------------------------------------
1434        >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
1435     0: \x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}
1436    
1437    /[\v]/8BZ
1438    ------------------------------------------------------------------
1439            Bra
1440            [\x0a-\x0d\x85\x{2028}-\x{2029}]
1441            Ket
1442            End
1443    ------------------------------------------------------------------
1444    
1445    /[\H]/8BZ
1446    ------------------------------------------------------------------
1447            Bra
1448            [\x00-\x08\x0a-\x1f!-\x9f\xa1-\xff\x{100}-\x{167f}\x{1681}-\x{180d}\x{180f}-\x{1fff}\x{200b}-\x{202e}\x{2030}-\x{205e}\x{2060}-\x{2fff}\x{3001}-\x{7fffffff}]
1449            Ket
1450            End
1451    ------------------------------------------------------------------
1452    
1453    /[\V]/8BZ
1454    ------------------------------------------------------------------
1455            Bra
1456            [\x00-\x09\x0e-\x84\x86-\xff\x{100}-\x{2027}\x{2029}-\x{7fffffff}]
1457            Ket
1458            End
1459    ------------------------------------------------------------------
1460    
1461    /.*$/8<any>
1462        \x{1ec5}
1463     0: \x{1ec5}
1464    
1465    /-- This tests the stricter UTF-8 check according to RFC 3629. --/
1466    
1467    /X/8
1468        \x{0}\x{d7ff}\x{e000}\x{10ffff}
1469    No match
1470        \x{d800}
1471    Error -10
1472        \x{d800}\?
1473    No match
1474        \x{da00}
1475    Error -10
1476        \x{da00}\?
1477    No match
1478        \x{dfff}
1479    Error -10
1480        \x{dfff}\?
1481    No match
1482        \x{110000}
1483    Error -10
1484        \x{110000}\?
1485    No match
1486        \x{2000000}
1487    Error -10
1488        \x{2000000}\?
1489    No match
1490        \x{7fffffff}
1491    Error -10
1492        \x{7fffffff}\?
1493    No match
1494    
1495    /a\Rb/I8<bsr_anycrlf>
1496    Capturing subpattern count = 0
1497    Options: bsr_anycrlf utf8
1498    First char = 'a'
1499    Need char = 'b'
1500        a\rb
1501     0: a\x{0d}b
1502        a\nb
1503     0: a\x{0a}b
1504        a\r\nb
1505     0: a\x{0d}\x{0a}b
1506        ** Failers
1507    No match
1508        a\x{85}b
1509    No match
1510        a\x0bb
1511    No match
1512    
1513    /a\Rb/I8<bsr_unicode>
1514    Capturing subpattern count = 0
1515    Options: bsr_unicode utf8
1516    First char = 'a'
1517    Need char = 'b'
1518        a\rb
1519     0: a\x{0d}b
1520        a\nb
1521     0: a\x{0a}b
1522        a\r\nb
1523     0: a\x{0d}\x{0a}b
1524        a\x{85}b
1525     0: a\x{85}b
1526        a\x0bb
1527     0: a\x{0b}b
1528        ** Failers
1529    No match
1530        a\x{85}b\<bsr_anycrlf>
1531    No match
1532        a\x0bb\<bsr_anycrlf>
1533    No match
1534    
1535    /a\R?b/I8<bsr_anycrlf>
1536    Capturing subpattern count = 0
1537    Options: bsr_anycrlf utf8
1538    First char = 'a'
1539    Need char = 'b'
1540        a\rb
1541     0: a\x{0d}b
1542        a\nb
1543     0: a\x{0a}b
1544        a\r\nb
1545     0: a\x{0d}\x{0a}b
1546        ** Failers
1547    No match
1548        a\x{85}b
1549    No match
1550        a\x0bb
1551    No match
1552    
1553    /a\R?b/I8<bsr_unicode>
1554    Capturing subpattern count = 0
1555    Options: bsr_unicode utf8
1556    First char = 'a'
1557    Need char = 'b'
1558        a\rb
1559     0: a\x{0d}b
1560        a\nb
1561     0: a\x{0a}b
1562        a\r\nb
1563     0: a\x{0d}\x{0a}b
1564        a\x{85}b
1565     0: a\x{85}b
1566        a\x0bb
1567     0: a\x{0b}b
1568        ** Failers
1569    No match
1570        a\x{85}b\<bsr_anycrlf>
1571    No match
1572        a\x0bb\<bsr_anycrlf>
1573    No match
1574    
1575    /.*a.*=.b.*/8<ANY>
1576        QQQ\x{2029}ABCaXYZ=!bPQR
1577     0: ABCaXYZ=!bPQR
1578        ** Failers
1579    No match
1580        a\x{2029}b
1581    No match
1582        \x61\xe2\x80\xa9\x62
1583    No match
1584    
1585    /[[:a\x{100}b:]]/8
1586    Failed: unknown POSIX class name at offset 3
1587    
1588    /a[^]b/<JS>8
1589        a\x{1234}b
1590     0: a\x{1234}b
1591        a\nb
1592     0: a\x{0a}b
1593        ** Failers
1594    No match
1595        ab
1596    No match
1597    
1598    /a[^]+b/<JS>8
1599        aXb
1600     0: aXb
1601        a\nX\nX\x{1234}b
1602     0: a\x{0a}X\x{0a}X\x{1234}b
1603        ** Failers
1604    No match
1605        ab
1606    No match
1607    
1608    /(\x{de})\1/
1609        \x{de}\x{de}
1610     0: \xde\xde
1611     1: \xde
1612        \x{123}
1613    ** Character \x{123} is greater than 255 and UTF-8 mode is not enabled.
1614    ** Truncation will probably give the wrong result.
1615    No match
1616    
1617    /X/8f<any>
1618        A\x{1ec5}ABCXYZ
1619     0: X
1620    
1621    /(*UTF8)\x{1234}/
1622      abcd\x{1234}pqr
1623     0: \x{1234}
1624    
1625    /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
1626    Capturing subpattern count = 0
1627    Options: bsr_unicode utf8
1628    Forced newline sequence: CRLF
1629    First char = 'a'
1630    Need char = 'b'
1631    
1632    /Xa{2,4}b/8
1633        X\P
1634    Partial match: X
1635        Xa\P
1636    Partial match: Xa
1637        Xaa\P
1638    Partial match: Xaa
1639        Xaaa\P
1640    Partial match: Xaaa
1641        Xaaaa\P
1642    Partial match: Xaaaa
1643    
1644    /Xa{2,4}?b/8
1645        X\P
1646    Partial match: X
1647        Xa\P
1648    Partial match: Xa
1649        Xaa\P
1650    Partial match: Xaa
1651        Xaaa\P
1652    Partial match: Xaaa
1653        Xaaaa\P
1654    Partial match: Xaaaa
1655    
1656    /Xa{2,4}+b/8
1657        X\P
1658    Partial match: X
1659        Xa\P
1660    Partial match: Xa
1661        Xaa\P
1662    Partial match: Xaa
1663        Xaaa\P
1664    Partial match: Xaaa
1665        Xaaaa\P
1666    Partial match: Xaaaa
1667    
1668    /X\x{123}{2,4}b/8
1669        X\P
1670    Partial match: X
1671        X\x{123}\P
1672    Partial match: X\x{123}
1673        X\x{123}\x{123}\P
1674    Partial match: X\x{123}\x{123}
1675        X\x{123}\x{123}\x{123}\P
1676    Partial match: X\x{123}\x{123}\x{123}
1677        X\x{123}\x{123}\x{123}\x{123}\P
1678    Partial match: X\x{123}\x{123}\x{123}\x{123}
1679    
1680    /X\x{123}{2,4}?b/8
1681        X\P
1682    Partial match: X
1683        X\x{123}\P
1684    Partial match: X\x{123}
1685        X\x{123}\x{123}\P
1686    Partial match: X\x{123}\x{123}
1687        X\x{123}\x{123}\x{123}\P
1688    Partial match: X\x{123}\x{123}\x{123}
1689        X\x{123}\x{123}\x{123}\x{123}\P
1690    Partial match: X\x{123}\x{123}\x{123}\x{123}
1691    
1692    /X\x{123}{2,4}+b/8
1693        X\P
1694    Partial match: X
1695        X\x{123}\P
1696    Partial match: X\x{123}
1697        X\x{123}\x{123}\P
1698    Partial match: X\x{123}\x{123}
1699        X\x{123}\x{123}\x{123}\P
1700    Partial match: X\x{123}\x{123}\x{123}
1701        X\x{123}\x{123}\x{123}\x{123}\P
1702    Partial match: X\x{123}\x{123}\x{123}\x{123}
1703    
1704    /X\x{123}{2,4}b/8
1705        Xx\P
1706    No match
1707        X\x{123}x\P
1708    No match
1709        X\x{123}\x{123}x\P
1710    No match
1711        X\x{123}\x{123}\x{123}x\P
1712    No match
1713        X\x{123}\x{123}\x{123}\x{123}x\P
1714    No match
1715    
1716    /X\x{123}{2,4}?b/8
1717        Xx\P
1718    No match
1719        X\x{123}x\P
1720    No match
1721        X\x{123}\x{123}x\P
1722    No match
1723        X\x{123}\x{123}\x{123}x\P
1724    No match
1725        X\x{123}\x{123}\x{123}\x{123}x\P
1726    No match
1727    
1728    /X\x{123}{2,4}+b/8
1729        Xx\P
1730    No match
1731        X\x{123}x\P
1732    No match
1733        X\x{123}\x{123}x\P
1734    No match
1735        X\x{123}\x{123}\x{123}x\P
1736    No match
1737        X\x{123}\x{123}\x{123}\x{123}x\P
1738    No match
1739    
1740    /X\d{2,4}b/8
1741        X\P
1742    Partial match: X
1743        X3\P
1744    Partial match: X3
1745        X33\P
1746    Partial match: X33
1747        X333\P
1748    Partial match: X333
1749        X3333\P
1750    Partial match: X3333
1751    
1752    /X\d{2,4}?b/8
1753        X\P
1754    Partial match: X
1755        X3\P
1756    Partial match: X3
1757        X33\P
1758    Partial match: X33
1759        X333\P
1760    Partial match: X333
1761        X3333\P
1762    Partial match: X3333
1763    
1764    /X\d{2,4}+b/8
1765        X\P
1766    Partial match: X
1767        X3\P
1768    Partial match: X3
1769        X33\P
1770    Partial match: X33
1771        X333\P
1772    Partial match: X333
1773        X3333\P
1774    Partial match: X3333
1775    
1776    /X\D{2,4}b/8
1777        X\P
1778    Partial match: X
1779        Xa\P
1780    Partial match: Xa
1781        Xaa\P
1782    Partial match: Xaa
1783        Xaaa\P
1784    Partial match: Xaaa
1785        Xaaaa\P
1786    Partial match: Xaaaa
1787    
1788    /X\D{2,4}?b/8
1789        X\P
1790    Partial match: X
1791        Xa\P
1792    Partial match: Xa
1793        Xaa\P
1794    Partial match: Xaa
1795        Xaaa\P
1796    Partial match: Xaaa
1797        Xaaaa\P
1798    Partial match: Xaaaa
1799    
1800    /X\D{2,4}+b/8
1801        X\P
1802    Partial match: X
1803        Xa\P
1804    Partial match: Xa
1805        Xaa\P
1806    Partial match: Xaa
1807        Xaaa\P
1808    Partial match: Xaaa
1809        Xaaaa\P
1810    Partial match: Xaaaa
1811    
1812    /X\D{2,4}b/8
1813        X\P
1814    Partial match: X
1815        X\x{123}\P
1816    Partial match: X\x{123}
1817        X\x{123}\x{123}\P
1818    Partial match: X\x{123}\x{123}
1819        X\x{123}\x{123}\x{123}\P
1820    Partial match: X\x{123}\x{123}\x{123}
1821        X\x{123}\x{123}\x{123}\x{123}\P
1822    Partial match: X\x{123}\x{123}\x{123}\x{123}
1823    
1824    /X\D{2,4}?b/8
1825        X\P
1826    Partial match: X
1827        X\x{123}\P
1828    Partial match: X\x{123}
1829        X\x{123}\x{123}\P
1830    Partial match: X\x{123}\x{123}
1831        X\x{123}\x{123}\x{123}\P
1832    Partial match: X\x{123}\x{123}\x{123}
1833        X\x{123}\x{123}\x{123}\x{123}\P
1834    Partial match: X\x{123}\x{123}\x{123}\x{123}
1835    
1836    /X\D{2,4}+b/8
1837        X\P
1838    Partial match: X
1839        X\x{123}\P
1840    Partial match: X\x{123}
1841        X\x{123}\x{123}\P
1842    Partial match: X\x{123}\x{123}
1843        X\x{123}\x{123}\x{123}\P
1844    Partial match: X\x{123}\x{123}\x{123}
1845        X\x{123}\x{123}\x{123}\x{123}\P
1846    Partial match: X\x{123}\x{123}\x{123}\x{123}
1847    
1848    /X[abc]{2,4}b/8
1849        X\P
1850    Partial match: X
1851        Xa\P
1852    Partial match: Xa
1853        Xaa\P
1854    Partial match: Xaa
1855        Xaaa\P
1856    Partial match: Xaaa
1857        Xaaaa\P
1858    Partial match: Xaaaa
1859    
1860    /X[abc]{2,4}?b/8
1861        X\P
1862    Partial match: X
1863        Xa\P
1864    Partial match: Xa
1865        Xaa\P
1866    Partial match: Xaa
1867        Xaaa\P
1868    Partial match: Xaaa
1869        Xaaaa\P
1870    Partial match: Xaaaa
1871    
1872    /X[abc]{2,4}+b/8
1873        X\P
1874    Partial match: X
1875        Xa\P
1876    Partial match: Xa
1877        Xaa\P
1878    Partial match: Xaa
1879        Xaaa\P
1880    Partial match: Xaaa
1881        Xaaaa\P
1882    Partial match: Xaaaa
1883    
1884    /X[abc\x{123}]{2,4}b/8
1885        X\P
1886    Partial match: X
1887        X\x{123}\P
1888    Partial match: X\x{123}
1889        X\x{123}\x{123}\P
1890    Partial match: X\x{123}\x{123}
1891        X\x{123}\x{123}\x{123}\P
1892    Partial match: X\x{123}\x{123}\x{123}
1893        X\x{123}\x{123}\x{123}\x{123}\P
1894    Partial match: X\x{123}\x{123}\x{123}\x{123}
1895    
1896    /X[abc\x{123}]{2,4}?b/8
1897        X\P
1898    Partial match: X
1899        X\x{123}\P
1900    Partial match: X\x{123}
1901        X\x{123}\x{123}\P
1902    Partial match: X\x{123}\x{123}
1903        X\x{123}\x{123}\x{123}\P
1904    Partial match: X\x{123}\x{123}\x{123}
1905        X\x{123}\x{123}\x{123}\x{123}\P
1906    Partial match: X\x{123}\x{123}\x{123}\x{123}
1907    
1908    /X[abc\x{123}]{2,4}+b/8
1909        X\P
1910    Partial match: X
1911        X\x{123}\P
1912    Partial match: X\x{123}
1913        X\x{123}\x{123}\P
1914    Partial match: X\x{123}\x{123}
1915        X\x{123}\x{123}\x{123}\P
1916    Partial match: X\x{123}\x{123}\x{123}
1917        X\x{123}\x{123}\x{123}\x{123}\P
1918    Partial match: X\x{123}\x{123}\x{123}\x{123}
1919    
1920    /X[^a]{2,4}b/8
1921        X\P
1922    Partial match: X
1923        Xz\P
1924    Partial match: Xz
1925        Xzz\P
1926    Partial match: Xzz
1927        Xzzz\P
1928    Partial match: Xzzz
1929        Xzzzz\P
1930    Partial match: Xzzzz
1931    
1932    /X[^a]{2,4}?b/8
1933        X\P
1934    Partial match: X
1935        Xz\P
1936    Partial match: Xz
1937        Xzz\P
1938    Partial match: Xzz
1939        Xzzz\P
1940    Partial match: Xzzz
1941        Xzzzz\P
1942    Partial match: Xzzzz
1943    
1944    /X[^a]{2,4}+b/8
1945        X\P
1946    Partial match: X
1947        Xz\P
1948    Partial match: Xz
1949        Xzz\P
1950    Partial match: Xzz
1951        Xzzz\P
1952    Partial match: Xzzz
1953        Xzzzz\P
1954    Partial match: Xzzzz
1955    
1956    /X[^a]{2,4}b/8
1957        X\P
1958    Partial match: X
1959        X\x{123}\P
1960    Partial match: X\x{123}
1961        X\x{123}\x{123}\P
1962    Partial match: X\x{123}\x{123}
1963        X\x{123}\x{123}\x{123}\P
1964    Partial match: X\x{123}\x{123}\x{123}
1965        X\x{123}\x{123}\x{123}\x{123}\P
1966    Partial match: X\x{123}\x{123}\x{123}\x{123}
1967    
1968    /X[^a]{2,4}?b/8
1969        X\P
1970    Partial match: X
1971        X\x{123}\P
1972    Partial match: X\x{123}
1973        X\x{123}\x{123}\P
1974    Partial match: X\x{123}\x{123}
1975        X\x{123}\x{123}\x{123}\P
1976    Partial match: X\x{123}\x{123}\x{123}
1977        X\x{123}\x{123}\x{123}\x{123}\P
1978    Partial match: X\x{123}\x{123}\x{123}\x{123}
1979    
1980    /X[^a]{2,4}+b/8
1981        X\P
1982    Partial match: X
1983        X\x{123}\P
1984    Partial match: X\x{123}
1985        X\x{123}\x{123}\P
1986    Partial match: X\x{123}\x{123}
1987        X\x{123}\x{123}\x{123}\P
1988    Partial match: X\x{123}\x{123}\x{123}
1989        X\x{123}\x{123}\x{123}\x{123}\P
1990    Partial match: X\x{123}\x{123}\x{123}\x{123}
1991    
1992    /(Y)X\1{2,4}b/8
1993        YX\P
1994    Partial match: YX
1995        YXY\P
1996    Partial match: YXY
1997        YXYY\P
1998    Partial match: YXYY
1999        YXYYY\P
2000    Partial match: YXYYY
2001        YXYYYY\P
2002    Partial match: YXYYYY
2003    
2004    /(Y)X\1{2,4}?b/8
2005        YX\P
2006    Partial match: YX
2007        YXY\P
2008    Partial match: YXY
2009        YXYY\P
2010    Partial match: YXYY
2011        YXYYY\P
2012    Partial match: YXYYY
2013        YXYYYY\P
2014    Partial match: YXYYYY
2015    
2016    /(Y)X\1{2,4}+b/8
2017        YX\P
2018    Partial match: YX
2019        YXY\P
2020    Partial match: YXY
2021        YXYY\P
2022    Partial match: YXYY
2023        YXYYY\P
2024    Partial match: YXYYY
2025        YXYYYY\P
2026    Partial match: YXYYYY
2027    
2028    /(\x{123})X\1{2,4}b/8
2029        \x{123}X\P
2030    Partial match: \x{123}X
2031        \x{123}X\x{123}\P
2032    Partial match: \x{123}X\x{123}
2033        \x{123}X\x{123}\x{123}\P
2034    Partial match: \x{123}X\x{123}\x{123}
2035        \x{123}X\x{123}\x{123}\x{123}\P
2036    Partial match: \x{123}X\x{123}\x{123}\x{123}
2037        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2038    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2039    
2040    /(\x{123})X\1{2,4}?b/8
2041        \x{123}X\P
2042    Partial match: \x{123}X
2043        \x{123}X\x{123}\P
2044    Partial match: \x{123}X\x{123}
2045        \x{123}X\x{123}\x{123}\P
2046    Partial match: \x{123}X\x{123}\x{123}
2047        \x{123}X\x{123}\x{123}\x{123}\P
2048    Partial match: \x{123}X\x{123}\x{123}\x{123}
2049        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2050    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2051    
2052    /(\x{123})X\1{2,4}+b/8
2053        \x{123}X\P
2054    Partial match: \x{123}X
2055        \x{123}X\x{123}\P
2056    Partial match: \x{123}X\x{123}
2057        \x{123}X\x{123}\x{123}\P
2058    Partial match: \x{123}X\x{123}\x{123}
2059        \x{123}X\x{123}\x{123}\x{123}\P
2060    Partial match: \x{123}X\x{123}\x{123}\x{123}
2061        \x{123}X\x{123}\x{123}\x{123}\x{123}\P
2062    Partial match: \x{123}X\x{123}\x{123}\x{123}\x{123}
2063    
2064    /\bthe cat\b/8
2065        the cat\P
2066     0: the cat
2067        the cat\P\P
2068    Partial match: the cat
2069    
2070    / End of testinput5 /

Legend:
Removed from v.69  
changed lines
  Added in v.428

  ViewVC Help
Powered by ViewVC 1.1.5