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

Legend:
Removed from v.91  
changed lines
  Added in v.450

  ViewVC Help
Powered by ViewVC 1.1.5