1 |
/-- Do not use the \x{} construct except with patterns that have the --/
|
2 |
/-- /8 option set, because PCRE doesn't recognize them as UTF-8 unless --/
|
3 |
/-- that option is set. However, the latest Perls recognize them always. --/
|
4 |
|
5 |
/a.b/8
|
6 |
acb
|
7 |
a\x7fb
|
8 |
a\x{100}b
|
9 |
*** Failers
|
10 |
a\nb
|
11 |
|
12 |
/a(.{3})b/8
|
13 |
a\x{4000}xyb
|
14 |
a\x{4000}\x7fyb
|
15 |
a\x{4000}\x{100}yb
|
16 |
*** Failers
|
17 |
a\x{4000}b
|
18 |
ac\ncb
|
19 |
|
20 |
/a(.*?)(.)/
|
21 |
a\xc0\x88b
|
22 |
|
23 |
/a(.*?)(.)/8
|
24 |
a\x{100}b
|
25 |
|
26 |
/a(.*)(.)/
|
27 |
a\xc0\x88b
|
28 |
|
29 |
/a(.*)(.)/8
|
30 |
a\x{100}b
|
31 |
|
32 |
/a(.)(.)/
|
33 |
a\xc0\x92bcd
|
34 |
|
35 |
/a(.)(.)/8
|
36 |
a\x{240}bcd
|
37 |
|
38 |
/a(.?)(.)/
|
39 |
a\xc0\x92bcd
|
40 |
|
41 |
/a(.?)(.)/8
|
42 |
a\x{240}bcd
|
43 |
|
44 |
/a(.??)(.)/
|
45 |
a\xc0\x92bcd
|
46 |
|
47 |
/a(.??)(.)/8
|
48 |
a\x{240}bcd
|
49 |
|
50 |
/a(.{3})b/8
|
51 |
a\x{1234}xyb
|
52 |
a\x{1234}\x{4321}yb
|
53 |
a\x{1234}\x{4321}\x{3412}b
|
54 |
*** Failers
|
55 |
a\x{1234}b
|
56 |
ac\ncb
|
57 |
|
58 |
/a(.{3,})b/8
|
59 |
a\x{1234}xyb
|
60 |
a\x{1234}\x{4321}yb
|
61 |
a\x{1234}\x{4321}\x{3412}b
|
62 |
axxxxbcdefghijb
|
63 |
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
64 |
*** Failers
|
65 |
a\x{1234}b
|
66 |
|
67 |
/a(.{3,}?)b/8
|
68 |
a\x{1234}xyb
|
69 |
a\x{1234}\x{4321}yb
|
70 |
a\x{1234}\x{4321}\x{3412}b
|
71 |
axxxxbcdefghijb
|
72 |
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
73 |
*** Failers
|
74 |
a\x{1234}b
|
75 |
|
76 |
/a(.{3,5})b/8
|
77 |
a\x{1234}xyb
|
78 |
a\x{1234}\x{4321}yb
|
79 |
a\x{1234}\x{4321}\x{3412}b
|
80 |
axxxxbcdefghijb
|
81 |
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
82 |
axbxxbcdefghijb
|
83 |
axxxxxbcdefghijb
|
84 |
*** Failers
|
85 |
a\x{1234}b
|
86 |
axxxxxxbcdefghijb
|
87 |
|
88 |
/a(.{3,5}?)b/8
|
89 |
a\x{1234}xyb
|
90 |
a\x{1234}\x{4321}yb
|
91 |
a\x{1234}\x{4321}\x{3412}b
|
92 |
axxxxbcdefghijb
|
93 |
a\x{1234}\x{4321}\x{3412}\x{3421}b
|
94 |
axbxxbcdefghijb
|
95 |
axxxxxbcdefghijb
|
96 |
*** Failers
|
97 |
a\x{1234}b
|
98 |
axxxxxxbcdefghijb
|
99 |
|
100 |
/^[a\x{c0}]/8
|
101 |
*** Failers
|
102 |
\x{100}
|
103 |
|
104 |
/(?<=aXb)cd/8
|
105 |
aXbcd
|
106 |
|
107 |
/(?<=a\x{100}b)cd/8
|
108 |
a\x{100}bcd
|
109 |
|
110 |
/(?<=a\x{100000}b)cd/8
|
111 |
a\x{100000}bcd
|
112 |
|
113 |
/(?:\x{100}){3}b/8
|
114 |
\x{100}\x{100}\x{100}b
|
115 |
*** Failers
|
116 |
\x{100}\x{100}b
|
117 |
|
118 |
/\x{ab}/8
|
119 |
\x{ab}
|
120 |
\xc2\xab
|
121 |
*** Failers
|
122 |
\x00{ab}
|
123 |
|
124 |
/(?<=(.))X/8
|
125 |
WXYZ
|
126 |
\x{256}XYZ
|
127 |
*** Failers
|
128 |
XYZ
|
129 |
|
130 |
/X(\C{3})/8
|
131 |
X\x{1234}
|
132 |
|
133 |
/X(\C{4})/8
|
134 |
X\x{1234}YZ
|
135 |
|
136 |
/X\C*/8
|
137 |
XYZabcdce
|
138 |
|
139 |
/X\C*?/8
|
140 |
XYZabcde
|
141 |
|
142 |
/X\C{3,5}/8
|
143 |
Xabcdefg
|
144 |
X\x{1234}
|
145 |
X\x{1234}YZ
|
146 |
X\x{1234}\x{512}
|
147 |
X\x{1234}\x{512}YZ
|
148 |
|
149 |
/X\C{3,5}?/8
|
150 |
Xabcdefg
|
151 |
X\x{1234}
|
152 |
X\x{1234}YZ
|
153 |
X\x{1234}\x{512}
|
154 |
|
155 |
/[^a]+/8g
|
156 |
bcd
|
157 |
\x{100}aY\x{256}Z
|
158 |
|
159 |
/^[^a]{2}/8
|
160 |
\x{100}bc
|
161 |
|
162 |
/^[^a]{2,}/8
|
163 |
\x{100}bcAa
|
164 |
|
165 |
/^[^a]{2,}?/8
|
166 |
\x{100}bca
|
167 |
|
168 |
/[^a]+/8ig
|
169 |
bcd
|
170 |
\x{100}aY\x{256}Z
|
171 |
|
172 |
/^[^a]{2}/8i
|
173 |
\x{100}bc
|
174 |
|
175 |
/^[^a]{2,}/8i
|
176 |
\x{100}bcAa
|
177 |
|
178 |
/^[^a]{2,}?/8i
|
179 |
\x{100}bca
|
180 |
|
181 |
/\x{100}{0,0}/8
|
182 |
abcd
|
183 |
|
184 |
/\x{100}?/8
|
185 |
abcd
|
186 |
\x{100}\x{100}
|
187 |
|
188 |
/\x{100}{0,3}/8
|
189 |
\x{100}\x{100}
|
190 |
\x{100}\x{100}\x{100}\x{100}
|
191 |
|
192 |
/\x{100}*/8
|
193 |
abce
|
194 |
\x{100}\x{100}\x{100}\x{100}
|
195 |
|
196 |
/\x{100}{1,1}/8
|
197 |
abcd\x{100}\x{100}\x{100}\x{100}
|
198 |
|
199 |
/\x{100}{1,3}/8
|
200 |
abcd\x{100}\x{100}\x{100}\x{100}
|
201 |
|
202 |
/\x{100}+/8
|
203 |
abcd\x{100}\x{100}\x{100}\x{100}
|
204 |
|
205 |
/\x{100}{3}/8
|
206 |
abcd\x{100}\x{100}\x{100}XX
|
207 |
|
208 |
/\x{100}{3,5}/8
|
209 |
abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
|
210 |
|
211 |
/\x{100}{3,}/8
|
212 |
abcd\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}XX
|
213 |
|
214 |
/(?<=a\x{100}{2}b)X/8+
|
215 |
Xyyya\x{100}\x{100}bXzzz
|
216 |
|
217 |
/\D*/8
|
218 |
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
219 |
|
220 |
/\D*/8
|
221 |
\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}\x{100}
|
222 |
|
223 |
/\D/8
|
224 |
1X2
|
225 |
1\x{100}2
|
226 |
|
227 |
/>\S/8
|
228 |
> >X Y
|
229 |
> >\x{100} Y
|
230 |
|
231 |
/\W/8
|
232 |
A.B
|
233 |
A\x{100}B
|
234 |
|
235 |
/\d/8
|
236 |
\x{100}3
|
237 |
|
238 |
/\s/8
|
239 |
\x{100} X
|
240 |
|
241 |
/\w/8
|
242 |
\x{100}X
|
243 |
|
244 |
/\D+/8
|
245 |
12abcd34
|
246 |
*** Failers
|
247 |
1234
|
248 |
|
249 |
/\D{2,3}/8
|
250 |
12abcd34
|
251 |
12ab34
|
252 |
*** Failers
|
253 |
1234
|
254 |
12a34
|
255 |
|
256 |
/\D{2,3}?/8
|
257 |
12abcd34
|
258 |
12ab34
|
259 |
*** Failers
|
260 |
1234
|
261 |
12a34
|
262 |
|
263 |
/\d+/8
|
264 |
12abcd34
|
265 |
*** Failers
|
266 |
|
267 |
/\d{2,3}/8
|
268 |
12abcd34
|
269 |
1234abcd
|
270 |
*** Failers
|
271 |
1.4
|
272 |
|
273 |
/\d{2,3}?/8
|
274 |
12abcd34
|
275 |
1234abcd
|
276 |
*** Failers
|
277 |
1.4
|
278 |
|
279 |
/\S+/8
|
280 |
12abcd34
|
281 |
*** Failers
|
282 |
\ \
|
283 |
|
284 |
/\S{2,3}/8
|
285 |
12abcd34
|
286 |
1234abcd
|
287 |
*** Failers
|
288 |
\ \
|
289 |
|
290 |
/\S{2,3}?/8
|
291 |
12abcd34
|
292 |
1234abcd
|
293 |
*** Failers
|
294 |
\ \
|
295 |
|
296 |
/>\s+</8+
|
297 |
12> <34
|
298 |
*** Failers
|
299 |
|
300 |
/>\s{2,3}</8+
|
301 |
ab> <cd
|
302 |
ab> <ce
|
303 |
*** Failers
|
304 |
ab> <cd
|
305 |
|
306 |
/>\s{2,3}?</8+
|
307 |
ab> <cd
|
308 |
ab> <ce
|
309 |
*** Failers
|
310 |
ab> <cd
|
311 |
|
312 |
/\w+/8
|
313 |
12 34
|
314 |
*** Failers
|
315 |
+++=*!
|
316 |
|
317 |
/\w{2,3}/8
|
318 |
ab cd
|
319 |
abcd ce
|
320 |
*** Failers
|
321 |
a.b.c
|
322 |
|
323 |
/\w{2,3}?/8
|
324 |
ab cd
|
325 |
abcd ce
|
326 |
*** Failers
|
327 |
a.b.c
|
328 |
|
329 |
/\W+/8
|
330 |
12====34
|
331 |
*** Failers
|
332 |
abcd
|
333 |
|
334 |
/\W{2,3}/8
|
335 |
ab====cd
|
336 |
ab==cd
|
337 |
*** Failers
|
338 |
a.b.c
|
339 |
|
340 |
/\W{2,3}?/8
|
341 |
ab====cd
|
342 |
ab==cd
|
343 |
*** Failers
|
344 |
a.b.c
|
345 |
|
346 |
/[\x{100}]/8
|
347 |
\x{100}
|
348 |
Z\x{100}
|
349 |
\x{100}Z
|
350 |
*** Failers
|
351 |
|
352 |
/[Z\x{100}]/8
|
353 |
Z\x{100}
|
354 |
\x{100}
|
355 |
\x{100}Z
|
356 |
*** Failers
|
357 |
|
358 |
/[\x{100}\x{200}]/8
|
359 |
ab\x{100}cd
|
360 |
ab\x{200}cd
|
361 |
*** Failers
|
362 |
|
363 |
/[\x{100}-\x{200}]/8
|
364 |
ab\x{100}cd
|
365 |
ab\x{200}cd
|
366 |
ab\x{111}cd
|
367 |
*** Failers
|
368 |
|
369 |
/[z-\x{200}]/8
|
370 |
ab\x{100}cd
|
371 |
ab\x{200}cd
|
372 |
ab\x{111}cd
|
373 |
abzcd
|
374 |
ab|cd
|
375 |
*** Failers
|
376 |
|
377 |
/[Q\x{100}\x{200}]/8
|
378 |
ab\x{100}cd
|
379 |
ab\x{200}cd
|
380 |
Q?
|
381 |
*** Failers
|
382 |
|
383 |
/[Q\x{100}-\x{200}]/8
|
384 |
ab\x{100}cd
|
385 |
ab\x{200}cd
|
386 |
ab\x{111}cd
|
387 |
Q?
|
388 |
*** Failers
|
389 |
|
390 |
/[Qz-\x{200}]/8
|
391 |
ab\x{100}cd
|
392 |
ab\x{200}cd
|
393 |
ab\x{111}cd
|
394 |
abzcd
|
395 |
ab|cd
|
396 |
Q?
|
397 |
*** Failers
|
398 |
|
399 |
/[\x{100}\x{200}]{1,3}/8
|
400 |
ab\x{100}cd
|
401 |
ab\x{200}cd
|
402 |
ab\x{200}\x{100}\x{200}\x{100}cd
|
403 |
*** Failers
|
404 |
|
405 |
/[\x{100}\x{200}]{1,3}?/8
|
406 |
ab\x{100}cd
|
407 |
ab\x{200}cd
|
408 |
ab\x{200}\x{100}\x{200}\x{100}cd
|
409 |
*** Failers
|
410 |
|
411 |
/[Q\x{100}\x{200}]{1,3}/8
|
412 |
ab\x{100}cd
|
413 |
ab\x{200}cd
|
414 |
ab\x{200}\x{100}\x{200}\x{100}cd
|
415 |
*** Failers
|
416 |
|
417 |
/[Q\x{100}\x{200}]{1,3}?/8
|
418 |
ab\x{100}cd
|
419 |
ab\x{200}cd
|
420 |
ab\x{200}\x{100}\x{200}\x{100}cd
|
421 |
*** Failers
|
422 |
|
423 |
/(?<=[\x{100}\x{200}])X/8
|
424 |
abc\x{200}X
|
425 |
abc\x{100}X
|
426 |
*** Failers
|
427 |
X
|
428 |
|
429 |
/(?<=[Q\x{100}\x{200}])X/8
|
430 |
abc\x{200}X
|
431 |
abc\x{100}X
|
432 |
abQX
|
433 |
*** Failers
|
434 |
X
|
435 |
|
436 |
/(?<=[\x{100}\x{200}]{3})X/8
|
437 |
abc\x{100}\x{200}\x{100}X
|
438 |
*** Failers
|
439 |
abc\x{200}X
|
440 |
X
|
441 |
|
442 |
/[^\x{100}\x{200}]X/8
|
443 |
AX
|
444 |
\x{150}X
|
445 |
\x{500}X
|
446 |
*** Failers
|
447 |
\x{100}X
|
448 |
\x{200}X
|
449 |
|
450 |
/[^Q\x{100}\x{200}]X/8
|
451 |
AX
|
452 |
\x{150}X
|
453 |
\x{500}X
|
454 |
*** Failers
|
455 |
\x{100}X
|
456 |
\x{200}X
|
457 |
QX
|
458 |
|
459 |
/[^\x{100}-\x{200}]X/8
|
460 |
AX
|
461 |
\x{500}X
|
462 |
*** Failers
|
463 |
\x{100}X
|
464 |
\x{150}X
|
465 |
\x{200}X
|
466 |
|
467 |
/a\Cb/
|
468 |
aXb
|
469 |
a\nb
|
470 |
|
471 |
/a\Cb/8
|
472 |
aXb
|
473 |
a\nb
|
474 |
*** Failers
|
475 |
a\x{100}b
|
476 |
|
477 |
/[z-\x{100}]/8i
|
478 |
z
|
479 |
Z
|
480 |
\x{100}
|
481 |
*** Failers
|
482 |
\x{101}
|
483 |
y
|
484 |
|
485 |
/[\xFF]/
|
486 |
>\xff<
|
487 |
|
488 |
/[\xff]/8
|
489 |
>\x{ff}<
|
490 |
|
491 |
/[^\xFF]/
|
492 |
XYZ
|
493 |
|
494 |
/[^\xff]/8
|
495 |
XYZ
|
496 |
\x{123}
|
497 |
|
498 |
/^[ac]*b/8
|
499 |
xb
|
500 |
|
501 |
/^[ac\x{100}]*b/8
|
502 |
xb
|
503 |
|
504 |
/^[^x]*b/8i
|
505 |
xb
|
506 |
|
507 |
/^[^x]*b/8
|
508 |
xb
|
509 |
|
510 |
/^\d*b/8
|
511 |
xb
|
512 |
|
513 |
/(|a)/g8
|
514 |
catac
|
515 |
a\x{256}a
|
516 |
|
517 |
/ End of testinput4 /
|