Debian Codegraph @

.cargo/vendor/regex/testdata/fowler/basic.toml

raw
1 # !!! DO NOT EDIT !!!
2 # Automatically generated by 'regex-cli generate fowler'.
3 # Numbers in the test names correspond to the line number of the test from
4 # the original dat file.
5
6 [[test]]
7 name = "basic3"
8 regex = '''abracadabra$'''
9 haystack = '''abracadabracadabra'''
10 matches = [[[7, 18]]]
11 match-limit = 1
12
13 [[test]]
14 name = "basic4"
15 regex = '''a...b'''
16 haystack = '''abababbb'''
17 matches = [[[2, 7]]]
18 match-limit = 1
19
20 [[test]]
21 name = "basic5"
22 regex = '''XXXXXX'''
23 haystack = '''..XXXXXX'''
24 matches = [[[2, 8]]]
25 match-limit = 1
26
27 [[test]]
28 name = "basic6"
29 regex = '''\)'''
30 haystack = '''()'''
31 matches = [[[1, 2]]]
32 match-limit = 1
33
34 [[test]]
35 name = "basic7"
36 regex = '''a]'''
37 haystack = '''a]a'''
38 matches = [[[0, 2]]]
39 match-limit = 1
40 anchored = true
41
42 [[test]]
43 name = "basic9"
44 regex = '''\}'''
45 haystack = '''}'''
46 matches = [[[0, 1]]]
47 match-limit = 1
48 anchored = true
49
50 [[test]]
51 name = "basic10"
52 regex = '''\]'''
53 haystack = ''']'''
54 matches = [[[0, 1]]]
55 match-limit = 1
56 anchored = true
57
58 [[test]]
59 name = "basic12"
60 regex = ''']'''
61 haystack = ''']'''
62 matches = [[[0, 1]]]
63 match-limit = 1
64 anchored = true
65
66 [[test]]
67 name = "basic15"
68 regex = '''^a'''
69 haystack = '''ax'''
70 matches = [[[0, 1]]]
71 match-limit = 1
72 anchored = true
73
74 [[test]]
75 name = "basic16"
76 regex = '''\^a'''
77 haystack = '''a^a'''
78 matches = [[[1, 3]]]
79 match-limit = 1
80
81 [[test]]
82 name = "basic17"
83 regex = '''a\^'''
84 haystack = '''a^'''
85 matches = [[[0, 2]]]
86 match-limit = 1
87 anchored = true
88
89 [[test]]
90 name = "basic18"
91 regex = '''a$'''
92 haystack = '''aa'''
93 matches = [[[1, 2]]]
94 match-limit = 1
95
96 [[test]]
97 name = "basic19"
98 regex = '''a\$'''
99 haystack = '''a$'''
100 matches = [[[0, 2]]]
101 match-limit = 1
102 anchored = true
103
104 [[test]]
105 name = "basic20"
106 regex = '''^$'''
107 haystack = ''''''
108 matches = [[[0, 0]]]
109 match-limit = 1
110 anchored = true
111
112 [[test]]
113 name = "basic21"
114 regex = '''$^'''
115 haystack = ''''''
116 matches = [[[0, 0]]]
117 match-limit = 1
118 anchored = true
119
120 [[test]]
121 name = "basic22"
122 regex = '''a($)'''
123 haystack = '''aa'''
124 matches = [[[1, 2], [2, 2]]]
125 match-limit = 1
126
127 [[test]]
128 name = "basic23"
129 regex = '''a*(^a)'''
130 haystack = '''aa'''
131 matches = [[[0, 1], [0, 1]]]
132 match-limit = 1
133 anchored = true
134
135 [[test]]
136 name = "basic24"
137 regex = '''(..)*(...)*'''
138 haystack = '''a'''
139 matches = [[[0, 0], [], []]]
140 match-limit = 1
141 anchored = true
142
143 [[test]]
144 name = "basic25"
145 regex = '''(..)*(...)*'''
146 haystack = '''abcd'''
147 matches = [[[0, 4], [2, 4], []]]
148 match-limit = 1
149 anchored = true
150
151 [[test]]
152 name = "basic26"
153 regex = '''(ab|a)(bc|c)'''
154 haystack = '''abc'''
155 matches = [[[0, 3], [0, 2], [2, 3]]]
156 match-limit = 1
157 anchored = true
158
159 [[test]]
160 name = "basic27"
161 regex = '''(ab)c|abc'''
162 haystack = '''abc'''
163 matches = [[[0, 3], [0, 2]]]
164 match-limit = 1
165 anchored = true
166
167 [[test]]
168 name = "basic28"
169 regex = '''a{0}b'''
170 haystack = '''ab'''
171 matches = [[[1, 2]]]
172 match-limit = 1
173
174 [[test]]
175 name = "basic29"
176 regex = '''(a*)(b?)(b+)b{3}'''
177 haystack = '''aaabbbbbbb'''
178 matches = [[[0, 10], [0, 3], [3, 4], [4, 7]]]
179 match-limit = 1
180 anchored = true
181
182 [[test]]
183 name = "basic30"
184 regex = '''(a*)(b{0,1})(b{1,})b{3}'''
185 haystack = '''aaabbbbbbb'''
186 matches = [[[0, 10], [0, 3], [3, 4], [4, 7]]]
187 match-limit = 1
188 anchored = true
189
190 [[test]]
191 name = "basic32"
192 regex = '''((a|a)|a)'''
193 haystack = '''a'''
194 matches = [[[0, 1], [0, 1], [0, 1]]]
195 match-limit = 1
196 anchored = true
197
198 [[test]]
199 name = "basic33"
200 regex = '''(a*)(a|aa)'''
201 haystack = '''aaaa'''
202 matches = [[[0, 4], [0, 3], [3, 4]]]
203 match-limit = 1
204 anchored = true
205
206 [[test]]
207 name = "basic34"
208 regex = '''a*(a.|aa)'''
209 haystack = '''aaaa'''
210 matches = [[[0, 4], [2, 4]]]
211 match-limit = 1
212 anchored = true
213
214 [[test]]
215 name = "basic35"
216 regex = '''a(b)|c(d)|a(e)f'''
217 haystack = '''aef'''
218 matches = [[[0, 3], [], [], [1, 2]]]
219 match-limit = 1
220 anchored = true
221
222 [[test]]
223 name = "basic36"
224 regex = '''(a|b)?.*'''
225 haystack = '''b'''
226 matches = [[[0, 1], [0, 1]]]
227 match-limit = 1
228 anchored = true
229
230 [[test]]
231 name = "basic37"
232 regex = '''(a|b)c|a(b|c)'''
233 haystack = '''ac'''
234 matches = [[[0, 2], [0, 1], []]]
235 match-limit = 1
236 anchored = true
237
238 [[test]]
239 name = "basic38"
240 regex = '''(a|b)c|a(b|c)'''
241 haystack = '''ab'''
242 matches = [[[0, 2], [], [1, 2]]]
243 match-limit = 1
244 anchored = true
245
246 [[test]]
247 name = "basic39"
248 regex = '''(a|b)*c|(a|ab)*c'''
249 haystack = '''abc'''
250 matches = [[[0, 3], [1, 2], []]]
251 match-limit = 1
252 anchored = true
253
254 [[test]]
255 name = "basic40"
256 regex = '''(a|b)*c|(a|ab)*c'''
257 haystack = '''xc'''
258 matches = [[[1, 2], [], []]]
259 match-limit = 1
260
261 [[test]]
262 name = "basic41"
263 regex = '''(.a|.b).*|.*(.a|.b)'''
264 haystack = '''xa'''
265 matches = [[[0, 2], [0, 2], []]]
266 match-limit = 1
267 anchored = true
268
269 [[test]]
270 name = "basic42"
271 regex = '''a?(ab|ba)ab'''
272 haystack = '''abab'''
273 matches = [[[0, 4], [0, 2]]]
274 match-limit = 1
275 anchored = true
276
277 [[test]]
278 name = "basic43"
279 regex = '''a?(ac{0}b|ba)ab'''
280 haystack = '''abab'''
281 matches = [[[0, 4], [0, 2]]]
282 match-limit = 1
283 anchored = true
284
285 [[test]]
286 name = "basic44"
287 regex = '''ab|abab'''
288 haystack = '''abbabab'''
289 matches = [[[0, 2]]]
290 match-limit = 1
291 anchored = true
292
293 [[test]]
294 name = "basic45"
295 regex = '''aba|bab|bba'''
296 haystack = '''baaabbbaba'''
297 matches = [[[5, 8]]]
298 match-limit = 1
299
300 [[test]]
301 name = "basic46"
302 regex = '''aba|bab'''
303 haystack = '''baaabbbaba'''
304 matches = [[[6, 9]]]
305 match-limit = 1
306
307 [[test]]
308 name = "basic47"
309 regex = '''(aa|aaa)*|(a|aaaaa)'''
310 haystack = '''aa'''
311 matches = [[[0, 2], [0, 2], []]]
312 match-limit = 1
313 anchored = true
314
315 [[test]]
316 name = "basic48"
317 regex = '''(a.|.a.)*|(a|.a...)'''
318 haystack = '''aa'''
319 matches = [[[0, 2], [0, 2], []]]
320 match-limit = 1
321 anchored = true
322
323 [[test]]
324 name = "basic49"
325 regex = '''ab|a'''
326 haystack = '''xabc'''
327 matches = [[[1, 3]]]
328 match-limit = 1
329
330 [[test]]
331 name = "basic50"
332 regex = '''ab|a'''
333 haystack = '''xxabc'''
334 matches = [[[2, 4]]]
335 match-limit = 1
336
337 [[test]]
338 name = "basic51"
339 regex = '''(Ab|cD)*'''
340 haystack = '''aBcD'''
341 matches = [[[0, 4], [2, 4]]]
342 match-limit = 1
343 anchored = true
344 case-insensitive = true
345
346 [[test]]
347 name = "basic52"
348 regex = '''[^-]'''
349 haystack = '''--a'''
350 matches = [[[2, 3]]]
351 match-limit = 1
352
353 [[test]]
354 name = "basic53"
355 regex = '''[a-]*'''
356 haystack = '''--a'''
357 matches = [[[0, 3]]]
358 match-limit = 1
359 anchored = true
360
361 [[test]]
362 name = "basic54"
363 regex = '''[a-m-]*'''
364 haystack = '''--amoma--'''
365 matches = [[[0, 4]]]
366 match-limit = 1
367 anchored = true
368
369 [[test]]
370 name = "basic55"
371 regex = ''':::1:::0:|:::1:1:0:'''
372 haystack = ''':::0:::1:::1:::0:'''
373 matches = [[[8, 17]]]
374 match-limit = 1
375
376 [[test]]
377 name = "basic56"
378 regex = ''':::1:::0:|:::1:1:1:'''
379 haystack = ''':::0:::1:::1:::0:'''
380 matches = [[[8, 17]]]
381 match-limit = 1
382
383 [[test]]
384 name = "basic57"
385 regex = '''[[:upper:]]'''
386 haystack = '''A'''
387 matches = [[[0, 1]]]
388 match-limit = 1
389 anchored = true
390
391 [[test]]
392 name = "basic58"
393 regex = '''[[:lower:]]+'''
394 haystack = '''`az{'''
395 matches = [[[1, 3]]]
396 match-limit = 1
397
398 [[test]]
399 name = "basic59"
400 regex = '''[[:upper:]]+'''
401 haystack = '''@AZ['''
402 matches = [[[1, 3]]]
403 match-limit = 1
404
405 [[test]]
406 name = "basic65"
407 regex = '''\n'''
408 haystack = '''\n'''
409 matches = [[[0, 1]]]
410 match-limit = 1
411 anchored = true
412 unescape = true
413
414 [[test]]
415 name = "basic66"
416 regex = '''\n'''
417 haystack = '''\n'''
418 matches = [[[0, 1]]]
419 match-limit = 1
420 anchored = true
421 unescape = true
422
423 [[test]]
424 name = "basic67"
425 regex = '''[^a]'''
426 haystack = '''\n'''
427 matches = [[[0, 1]]]
428 match-limit = 1
429 anchored = true
430 unescape = true
431
432 [[test]]
433 name = "basic68"
434 regex = '''\na'''
435 haystack = '''\na'''
436 matches = [[[0, 2]]]
437 match-limit = 1
438 anchored = true
439 unescape = true
440
441 [[test]]
442 name = "basic69"
443 regex = '''(a)(b)(c)'''
444 haystack = '''abc'''
445 matches = [[[0, 3], [0, 1], [1, 2], [2, 3]]]
446 match-limit = 1
447 anchored = true
448
449 [[test]]
450 name = "basic70"
451 regex = '''xxx'''
452 haystack = '''xxx'''
453 matches = [[[0, 3]]]
454 match-limit = 1
455 anchored = true
456
457 # Test added by Rust regex project.
458 [[test]]
459 name = "basic72"
460 regex = '''(?:^|[ (,;])(?:(?:(?:[Ff]eb[^ ]* *|0*2/|\* */?)0*[6-7]))(?:[^0-9]|$)'''
461 haystack = '''feb 6,'''
462 matches = [[[0, 6]]]
463 match-limit = 1
464 anchored = true
465
466 # Test added by Rust regex project.
467 [[test]]
468 name = "basic74"
469 regex = '''(?:^|[ (,;])(?:(?:(?:[Ff]eb[^ ]* *|0*2/|\* */?)0*[6-7]))(?:[^0-9]|$)'''
470 haystack = '''2/7'''
471 matches = [[[0, 3]]]
472 match-limit = 1
473 anchored = true
474
475 # Test added by Rust regex project.
476 [[test]]
477 name = "basic76"
478 regex = '''(?:^|[ (,;])(?:(?:(?:[Ff]eb[^ ]* *|0*2/|\* */?)0*[6-7]))(?:[^0-9]|$)'''
479 haystack = '''feb 1,Feb 6'''
480 matches = [[[5, 11]]]
481 match-limit = 1
482
483 # Test added by Rust regex project.
484 [[test]]
485 name = "basic78"
486 regex = '''(((?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:x))))))))))))))))))))))))))))))'''
487 haystack = '''x'''
488 matches = [[[0, 1], [0, 1], [0, 1]]]
489 match-limit = 1
490 anchored = true
491
492 # Test added by Rust regex project.
493 [[test]]
494 name = "basic80"
495 regex = '''(((?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:(?:x))))))))))))))))))))))))))))))*'''
496 haystack = '''xx'''
497 matches = [[[0, 2], [1, 2], [1, 2]]]
498 match-limit = 1
499 anchored = true
500
501 [[test]]
502 name = "basic81"
503 regex = '''a?(ab|ba)*'''
504 haystack = '''ababababababababababababababababababababababababababababababababababababababababa'''
505 matches = [[[0, 81], [79, 81]]]
506 match-limit = 1
507 anchored = true
508
509 [[test]]
510 name = "basic82"
511 regex = '''abaa|abbaa|abbbaa|abbbbaa'''
512 haystack = '''ababbabbbabbbabbbbabbbbaa'''
513 matches = [[[18, 25]]]
514 match-limit = 1
515
516 [[test]]
517 name = "basic83"
518 regex = '''abaa|abbaa|abbbaa|abbbbaa'''
519 haystack = '''ababbabbbabbbabbbbabaa'''
520 matches = [[[18, 22]]]
521 match-limit = 1
522
523 [[test]]
524 name = "basic84"
525 regex = '''aaac|aabc|abac|abbc|baac|babc|bbac|bbbc'''
526 haystack = '''baaabbbabac'''
527 matches = [[[7, 11]]]
528 match-limit = 1
529
530 # Test added by Rust regex project.
531 [[test]]
532 name = "basic86"
533 regex = '''.*'''
534 haystack = '''\x01\x7f'''
535 matches = [[[0, 2]]]
536 match-limit = 1
537 anchored = true
538 unescape = true
539
540 [[test]]
541 name = "basic87"
542 regex = '''aaaa|bbbb|cccc|ddddd|eeeeee|fffffff|gggg|hhhh|iiiii|jjjjj|kkkkk|llll'''
543 haystack = '''XaaaXbbbXcccXdddXeeeXfffXgggXhhhXiiiXjjjXkkkXlllXcbaXaaaa'''
544 matches = [[[53, 57]]]
545 match-limit = 1
546
547 [[test]]
548 name = "basic89"
549 regex = '''a*a*a*a*a*b'''
550 haystack = '''aaaaaaaaab'''
551 matches = [[[0, 10]]]
552 match-limit = 1
553 anchored = true
554
555 [[test]]
556 name = "basic90"
557 regex = '''^'''
558 haystack = ''''''
559 matches = [[[0, 0]]]
560 match-limit = 1
561 anchored = true
562
563 [[test]]
564 name = "basic91"
565 regex = '''$'''
566 haystack = ''''''
567 matches = [[[0, 0]]]
568 match-limit = 1
569 anchored = true
570
571 [[test]]
572 name = "basic92"
573 regex = '''^$'''
574 haystack = ''''''
575 matches = [[[0, 0]]]
576 match-limit = 1
577 anchored = true
578
579 [[test]]
580 name = "basic93"
581 regex = '''^a$'''
582 haystack = '''a'''
583 matches = [[[0, 1]]]
584 match-limit = 1
585 anchored = true
586
587 [[test]]
588 name = "basic94"
589 regex = '''abc'''
590 haystack = '''abc'''
591 matches = [[[0, 3]]]
592 match-limit = 1
593 anchored = true
594
595 [[test]]
596 name = "basic95"
597 regex = '''abc'''
598 haystack = '''xabcy'''
599 matches = [[[1, 4]]]
600 match-limit = 1
601
602 [[test]]
603 name = "basic96"
604 regex = '''abc'''
605 haystack = '''ababc'''
606 matches = [[[2, 5]]]
607 match-limit = 1
608
609 [[test]]
610 name = "basic97"
611 regex = '''ab*c'''
612 haystack = '''abc'''
613 matches = [[[0, 3]]]
614 match-limit = 1
615 anchored = true
616
617 [[test]]
618 name = "basic98"
619 regex = '''ab*bc'''
620 haystack = '''abc'''
621 matches = [[[0, 3]]]
622 match-limit = 1
623 anchored = true
624
625 [[test]]
626 name = "basic99"
627 regex = '''ab*bc'''
628 haystack = '''abbc'''
629 matches = [[[0, 4]]]
630 match-limit = 1
631 anchored = true
632
633 [[test]]
634 name = "basic100"
635 regex = '''ab*bc'''
636 haystack = '''abbbbc'''
637 matches = [[[0, 6]]]
638 match-limit = 1
639 anchored = true
640
641 [[test]]
642 name = "basic101"
643 regex = '''ab+bc'''
644 haystack = '''abbc'''
645 matches = [[[0, 4]]]
646 match-limit = 1
647 anchored = true
648
649 [[test]]
650 name = "basic102"
651 regex = '''ab+bc'''
652 haystack = '''abbbbc'''
653 matches = [[[0, 6]]]
654 match-limit = 1
655 anchored = true
656
657 [[test]]
658 name = "basic103"
659 regex = '''ab?bc'''
660 haystack = '''abbc'''
661 matches = [[[0, 4]]]
662 match-limit = 1
663 anchored = true
664
665 [[test]]
666 name = "basic104"
667 regex = '''ab?bc'''
668 haystack = '''abc'''
669 matches = [[[0, 3]]]
670 match-limit = 1
671 anchored = true
672
673 [[test]]
674 name = "basic105"
675 regex = '''ab?c'''
676 haystack = '''abc'''
677 matches = [[[0, 3]]]
678 match-limit = 1
679 anchored = true
680
681 [[test]]
682 name = "basic106"
683 regex = '''^abc$'''
684 haystack = '''abc'''
685 matches = [[[0, 3]]]
686 match-limit = 1
687 anchored = true
688
689 [[test]]
690 name = "basic107"
691 regex = '''^abc'''
692 haystack = '''abcc'''
693 matches = [[[0, 3]]]
694 match-limit = 1
695 anchored = true
696
697 [[test]]
698 name = "basic108"
699 regex = '''abc$'''
700 haystack = '''aabc'''
701 matches = [[[1, 4]]]
702 match-limit = 1
703
704 [[test]]
705 name = "basic109"
706 regex = '''^'''
707 haystack = '''abc'''
708 matches = [[[0, 0]]]
709 match-limit = 1
710 anchored = true
711
712 [[test]]
713 name = "basic110"
714 regex = '''$'''
715 haystack = '''abc'''
716 matches = [[[3, 3]]]
717 match-limit = 1
718
719 [[test]]
720 name = "basic111"
721 regex = '''a.c'''
722 haystack = '''abc'''
723 matches = [[[0, 3]]]
724 match-limit = 1
725 anchored = true
726
727 [[test]]
728 name = "basic112"
729 regex = '''a.c'''
730 haystack = '''axc'''
731 matches = [[[0, 3]]]
732 match-limit = 1
733 anchored = true
734
735 [[test]]
736 name = "basic113"
737 regex = '''a.*c'''
738 haystack = '''axyzc'''
739 matches = [[[0, 5]]]
740 match-limit = 1
741 anchored = true
742
743 [[test]]
744 name = "basic114"
745 regex = '''a[bc]d'''
746 haystack = '''abd'''
747 matches = [[[0, 3]]]
748 match-limit = 1
749 anchored = true
750
751 [[test]]
752 name = "basic115"
753 regex = '''a[b-d]e'''
754 haystack = '''ace'''
755 matches = [[[0, 3]]]
756 match-limit = 1
757 anchored = true
758
759 [[test]]
760 name = "basic116"
761 regex = '''a[b-d]'''
762 haystack = '''aac'''
763 matches = [[[1, 3]]]
764 match-limit = 1
765
766 [[test]]
767 name = "basic117"
768 regex = '''a[-b]'''
769 haystack = '''a-'''
770 matches = [[[0, 2]]]
771 match-limit = 1
772 anchored = true
773
774 [[test]]
775 name = "basic118"
776 regex = '''a[b-]'''
777 haystack = '''a-'''
778 matches = [[[0, 2]]]
779 match-limit = 1
780 anchored = true
781
782 [[test]]
783 name = "basic119"
784 regex = '''a]'''
785 haystack = '''a]'''
786 matches = [[[0, 2]]]
787 match-limit = 1
788 anchored = true
789
790 [[test]]
791 name = "basic120"
792 regex = '''a[]]b'''
793 haystack = '''a]b'''
794 matches = [[[0, 3]]]
795 match-limit = 1
796 anchored = true
797
798 [[test]]
799 name = "basic121"
800 regex = '''a[^bc]d'''
801 haystack = '''aed'''
802 matches = [[[0, 3]]]
803 match-limit = 1
804 anchored = true
805
806 [[test]]
807 name = "basic122"
808 regex = '''a[^-b]c'''
809 haystack = '''adc'''
810 matches = [[[0, 3]]]
811 match-limit = 1
812 anchored = true
813
814 [[test]]
815 name = "basic123"
816 regex = '''a[^]b]c'''
817 haystack = '''adc'''
818 matches = [[[0, 3]]]
819 match-limit = 1
820 anchored = true
821
822 [[test]]
823 name = "basic124"
824 regex = '''ab|cd'''
825 haystack = '''abc'''
826 matches = [[[0, 2]]]
827 match-limit = 1
828 anchored = true
829
830 [[test]]
831 name = "basic125"
832 regex = '''ab|cd'''
833 haystack = '''abcd'''
834 matches = [[[0, 2]]]
835 match-limit = 1
836 anchored = true
837
838 [[test]]
839 name = "basic126"
840 regex = '''a\(b'''
841 haystack = '''a(b'''
842 matches = [[[0, 3]]]
843 match-limit = 1
844 anchored = true
845
846 [[test]]
847 name = "basic127"
848 regex = '''a\(*b'''
849 haystack = '''ab'''
850 matches = [[[0, 2]]]
851 match-limit = 1
852 anchored = true
853
854 [[test]]
855 name = "basic128"
856 regex = '''a\(*b'''
857 haystack = '''a((b'''
858 matches = [[[0, 4]]]
859 match-limit = 1
860 anchored = true
861
862 [[test]]
863 name = "basic129"
864 regex = '''((a))'''
865 haystack = '''abc'''
866 matches = [[[0, 1], [0, 1], [0, 1]]]
867 match-limit = 1
868 anchored = true
869
870 [[test]]
871 name = "basic130"
872 regex = '''(a)b(c)'''
873 haystack = '''abc'''
874 matches = [[[0, 3], [0, 1], [2, 3]]]
875 match-limit = 1
876 anchored = true
877
878 [[test]]
879 name = "basic131"
880 regex = '''a+b+c'''
881 haystack = '''aabbabc'''
882 matches = [[[4, 7]]]
883 match-limit = 1
884
885 [[test]]
886 name = "basic132"
887 regex = '''a*'''
888 haystack = '''aaa'''
889 matches = [[[0, 3]]]
890 match-limit = 1
891 anchored = true
892
893 [[test]]
894 name = "basic133"
895 regex = '''(a*)*'''
896 haystack = '''-'''
897 matches = [[[0, 0], [0, 0]]]
898 match-limit = 1
899 anchored = true
900
901 [[test]]
902 name = "basic134"
903 regex = '''(a*)+'''
904 haystack = '''-'''
905 matches = [[[0, 0], [0, 0]]]
906 match-limit = 1
907 anchored = true
908
909 [[test]]
910 name = "basic135"
911 regex = '''(a*|b)*'''
912 haystack = '''-'''
913 matches = [[[0, 0], [0, 0]]]
914 match-limit = 1
915 anchored = true
916
917 [[test]]
918 name = "basic136"
919 regex = '''(a+|b)*'''
920 haystack = '''ab'''
921 matches = [[[0, 2], [1, 2]]]
922 match-limit = 1
923 anchored = true
924
925 [[test]]
926 name = "basic137"
927 regex = '''(a+|b)+'''
928 haystack = '''ab'''
929 matches = [[[0, 2], [1, 2]]]
930 match-limit = 1
931 anchored = true
932
933 [[test]]
934 name = "basic138"
935 regex = '''(a+|b)?'''
936 haystack = '''ab'''
937 matches = [[[0, 1], [0, 1]]]
938 match-limit = 1
939 anchored = true
940
941 [[test]]
942 name = "basic139"
943 regex = '''[^ab]*'''
944 haystack = '''cde'''
945 matches = [[[0, 3]]]
946 match-limit = 1
947 anchored = true
948
949 [[test]]
950 name = "basic140"
951 regex = '''(^)*'''
952 haystack = '''-'''
953 matches = [[[0, 0], [0, 0]]]
954 match-limit = 1
955 anchored = true
956
957 [[test]]
958 name = "basic141"
959 regex = '''a*'''
960 haystack = ''''''
961 matches = [[[0, 0]]]
962 match-limit = 1
963 anchored = true
964
965 [[test]]
966 name = "basic142"
967 regex = '''([abc])*d'''
968 haystack = '''abbbcd'''
969 matches = [[[0, 6], [4, 5]]]
970 match-limit = 1
971 anchored = true
972
973 [[test]]
974 name = "basic143"
975 regex = '''([abc])*bcd'''
976 haystack = '''abcd'''
977 matches = [[[0, 4], [0, 1]]]
978 match-limit = 1
979 anchored = true
980
981 [[test]]
982 name = "basic144"
983 regex = '''a|b|c|d|e'''
984 haystack = '''e'''
985 matches = [[[0, 1]]]
986 match-limit = 1
987 anchored = true
988
989 [[test]]
990 name = "basic145"
991 regex = '''(a|b|c|d|e)f'''
992 haystack = '''ef'''
993 matches = [[[0, 2], [0, 1]]]
994 match-limit = 1
995 anchored = true
996
997 [[test]]
998 name = "basic146"
999 regex = '''((a*|b))*'''
1000 haystack = '''-'''
1001 matches = [[[0, 0], [0, 0], [0, 0]]]
1002 match-limit = 1
1003 anchored = true
1004
1005 [[test]]
1006 name = "basic147"
1007 regex = '''abcd*efg'''
1008 haystack = '''abcdefg'''
1009 matches = [[[0, 7]]]
1010 match-limit = 1
1011 anchored = true
1012
1013 [[test]]
1014 name = "basic148"
1015 regex = '''ab*'''
1016 haystack = '''xabyabbbz'''
1017 matches = [[[1, 3]]]
1018 match-limit = 1
1019
1020 [[test]]
1021 name = "basic149"
1022 regex = '''ab*'''
1023 haystack = '''xayabbbz'''
1024 matches = [[[1, 2]]]
1025 match-limit = 1
1026
1027 [[test]]
1028 name = "basic150"
1029 regex = '''(ab|cd)e'''
1030 haystack = '''abcde'''
1031 matches = [[[2, 5], [2, 4]]]
1032 match-limit = 1
1033
1034 [[test]]
1035 name = "basic151"
1036 regex = '''[abhgefdc]ij'''
1037 haystack = '''hij'''
1038 matches = [[[0, 3]]]
1039 match-limit = 1
1040 anchored = true
1041
1042 [[test]]
1043 name = "basic152"
1044 regex = '''(a|b)c*d'''
1045 haystack = '''abcd'''
1046 matches = [[[1, 4], [1, 2]]]
1047 match-limit = 1
1048
1049 [[test]]
1050 name = "basic153"
1051 regex = '''(ab|ab*)bc'''
1052 haystack = '''abc'''
1053 matches = [[[0, 3], [0, 1]]]
1054 match-limit = 1
1055 anchored = true
1056
1057 [[test]]
1058 name = "basic154"
1059 regex = '''a([bc]*)c*'''
1060 haystack = '''abc'''
1061 matches = [[[0, 3], [1, 3]]]
1062 match-limit = 1
1063 anchored = true
1064
1065 [[test]]
1066 name = "basic155"
1067 regex = '''a([bc]*)(c*d)'''
1068 haystack = '''abcd'''
1069 matches = [[[0, 4], [1, 3], [3, 4]]]
1070 match-limit = 1
1071 anchored = true
1072
1073 [[test]]
1074 name = "basic156"
1075 regex = '''a([bc]+)(c*d)'''
1076 haystack = '''abcd'''
1077 matches = [[[0, 4], [1, 3], [3, 4]]]
1078 match-limit = 1
1079 anchored = true
1080
1081 [[test]]
1082 name = "basic157"
1083 regex = '''a([bc]*)(c+d)'''
1084 haystack = '''abcd'''
1085 matches = [[[0, 4], [1, 2], [2, 4]]]
1086 match-limit = 1
1087 anchored = true
1088
1089 [[test]]
1090 name = "basic158"
1091 regex = '''a[bcd]*dcdcde'''
1092 haystack = '''adcdcde'''
1093 matches = [[[0, 7]]]
1094 match-limit = 1
1095 anchored = true
1096
1097 [[test]]
1098 name = "basic159"
1099 regex = '''(ab|a)b*c'''
1100 haystack = '''abc'''
1101 matches = [[[0, 3], [0, 2]]]
1102 match-limit = 1
1103 anchored = true
1104
1105 [[test]]
1106 name = "basic160"
1107 regex = '''((a)(b)c)(d)'''
1108 haystack = '''abcd'''
1109 matches = [[[0, 4], [0, 3], [0, 1], [1, 2], [3, 4]]]
1110 match-limit = 1
1111 anchored = true
1112
1113 [[test]]
1114 name = "basic161"
1115 regex = '''[A-Za-z_][A-Za-z0-9_]*'''
1116 haystack = '''alpha'''
1117 matches = [[[0, 5]]]
1118 match-limit = 1
1119 anchored = true
1120
1121 [[test]]
1122 name = "basic162"
1123 regex = '''^a(bc+|b[eh])g|.h$'''
1124 haystack = '''abh'''
1125 matches = [[[1, 3], []]]
1126 match-limit = 1
1127
1128 [[test]]
1129 name = "basic163"
1130 regex = '''(bc+d$|ef*g.|h?i(j|k))'''
1131 haystack = '''effgz'''
1132 matches = [[[0, 5], [0, 5], []]]
1133 match-limit = 1
1134 anchored = true
1135
1136 [[test]]
1137 name = "basic164"
1138 regex = '''(bc+d$|ef*g.|h?i(j|k))'''
1139 haystack = '''ij'''
1140 matches = [[[0, 2], [0, 2], [1, 2]]]
1141 match-limit = 1
1142 anchored = true
1143
1144 [[test]]
1145 name = "basic165"
1146 regex = '''(bc+d$|ef*g.|h?i(j|k))'''
1147 haystack = '''reffgz'''
1148 matches = [[[1, 6], [1, 6], []]]
1149 match-limit = 1
1150
1151 [[test]]
1152 name = "basic166"
1153 regex = '''(((((((((a)))))))))'''
1154 haystack = '''a'''
1155 matches = [[[0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1], [0, 1]]]
1156 match-limit = 1
1157 anchored = true
1158
1159 [[test]]
1160 name = "basic167"
1161 regex = '''multiple words'''
1162 haystack = '''multiple words yeah'''
1163 matches = [[[0, 14]]]
1164 match-limit = 1
1165 anchored = true
1166
1167 [[test]]
1168 name = "basic168"
1169 regex = '''(.*)c(.*)'''
1170 haystack = '''abcde'''
1171 matches = [[[0, 5], [0, 2], [3, 5]]]
1172 match-limit = 1
1173 anchored = true
1174
1175 [[test]]
1176 name = "basic169"
1177 regex = '''abcd'''
1178 haystack = '''abcd'''
1179 matches = [[[0, 4]]]
1180 match-limit = 1
1181 anchored = true
1182
1183 [[test]]
1184 name = "basic170"
1185 regex = '''a(bc)d'''
1186 haystack = '''abcd'''
1187 matches = [[[0, 4], [1, 3]]]
1188 match-limit = 1
1189 anchored = true
1190
1191 [[test]]
1192 name = "basic171"
1193 regex = '''a[\x01-\x03]?c'''
1194 haystack = '''a\x02c'''
1195 matches = [[[0, 3]]]
1196 match-limit = 1
1197 anchored = true
1198 unescape = true
1199
1200 [[test]]
1201 name = "basic172"
1202 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1203 haystack = '''Muammar Qaddafi'''
1204 matches = [[[0, 15], [], [10, 12]]]
1205 match-limit = 1
1206 anchored = true
1207
1208 [[test]]
1209 name = "basic173"
1210 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1211 haystack = '''Mo'ammar Gadhafi'''
1212 matches = [[[0, 16], [], [11, 13]]]
1213 match-limit = 1
1214 anchored = true
1215
1216 [[test]]
1217 name = "basic174"
1218 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1219 haystack = '''Muammar Kaddafi'''
1220 matches = [[[0, 15], [], [10, 12]]]
1221 match-limit = 1
1222 anchored = true
1223
1224 [[test]]
1225 name = "basic175"
1226 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1227 haystack = '''Muammar Qadhafi'''
1228 matches = [[[0, 15], [], [10, 12]]]
1229 match-limit = 1
1230 anchored = true
1231
1232 [[test]]
1233 name = "basic176"
1234 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1235 haystack = '''Muammar Gadafi'''
1236 matches = [[[0, 14], [], [10, 11]]]
1237 match-limit = 1
1238 anchored = true
1239
1240 [[test]]
1241 name = "basic177"
1242 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1243 haystack = '''Mu'ammar Qadafi'''
1244 matches = [[[0, 15], [], [11, 12]]]
1245 match-limit = 1
1246 anchored = true
1247
1248 [[test]]
1249 name = "basic178"
1250 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1251 haystack = '''Moamar Gaddafi'''
1252 matches = [[[0, 14], [], [9, 11]]]
1253 match-limit = 1
1254 anchored = true
1255
1256 [[test]]
1257 name = "basic179"
1258 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1259 haystack = '''Mu'ammar Qadhdhafi'''
1260 matches = [[[0, 18], [], [13, 15]]]
1261 match-limit = 1
1262 anchored = true
1263
1264 [[test]]
1265 name = "basic180"
1266 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1267 haystack = '''Muammar Khaddafi'''
1268 matches = [[[0, 16], [], [11, 13]]]
1269 match-limit = 1
1270 anchored = true
1271
1272 [[test]]
1273 name = "basic181"
1274 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1275 haystack = '''Muammar Ghaddafy'''
1276 matches = [[[0, 16], [], [11, 13]]]
1277 match-limit = 1
1278 anchored = true
1279
1280 [[test]]
1281 name = "basic182"
1282 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1283 haystack = '''Muammar Ghadafi'''
1284 matches = [[[0, 15], [], [11, 12]]]
1285 match-limit = 1
1286 anchored = true
1287
1288 [[test]]
1289 name = "basic183"
1290 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1291 haystack = '''Muammar Ghaddafi'''
1292 matches = [[[0, 16], [], [11, 13]]]
1293 match-limit = 1
1294 anchored = true
1295
1296 [[test]]
1297 name = "basic184"
1298 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1299 haystack = '''Muamar Kaddafi'''
1300 matches = [[[0, 14], [], [9, 11]]]
1301 match-limit = 1
1302 anchored = true
1303
1304 [[test]]
1305 name = "basic185"
1306 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1307 haystack = '''Muammar Quathafi'''
1308 matches = [[[0, 16], [], [11, 13]]]
1309 match-limit = 1
1310 anchored = true
1311
1312 [[test]]
1313 name = "basic186"
1314 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1315 haystack = '''Muammar Gheddafi'''
1316 matches = [[[0, 16], [], [11, 13]]]
1317 match-limit = 1
1318 anchored = true
1319
1320 [[test]]
1321 name = "basic187"
1322 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1323 haystack = '''Moammar Khadafy'''
1324 matches = [[[0, 15], [], [11, 12]]]
1325 match-limit = 1
1326 anchored = true
1327
1328 [[test]]
1329 name = "basic188"
1330 regex = '''M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]'''
1331 haystack = '''Moammar Qudhafi'''
1332 matches = [[[0, 15], [], [10, 12]]]
1333 match-limit = 1
1334 anchored = true
1335
1336 [[test]]
1337 name = "basic189"
1338 regex = '''a+(b|c)*d+'''
1339 haystack = '''aabcdd'''
1340 matches = [[[0, 6], [3, 4]]]
1341 match-limit = 1
1342 anchored = true
1343
1344 [[test]]
1345 name = "basic190"
1346 regex = '''^.+$'''
1347 haystack = '''vivi'''
1348 matches = [[[0, 4]]]
1349 match-limit = 1
1350 anchored = true
1351
1352 [[test]]
1353 name = "basic191"
1354 regex = '''^(.+)$'''
1355 haystack = '''vivi'''
1356 matches = [[[0, 4], [0, 4]]]
1357 match-limit = 1
1358 anchored = true
1359
1360 [[test]]
1361 name = "basic192"
1362 regex = '''^([^!.]+).att.com!(.+)$'''
1363 haystack = '''gryphon.att.com!eby'''
1364 matches = [[[0, 19], [0, 7], [16, 19]]]
1365 match-limit = 1
1366 anchored = true
1367
1368 [[test]]
1369 name = "basic193"
1370 regex = '''^([^!]+!)?([^!]+)$'''
1371 haystack = '''bas'''
1372 matches = [[[0, 3], [], [0, 3]]]
1373 match-limit = 1
1374 anchored = true
1375
1376 [[test]]
1377 name = "basic194"
1378 regex = '''^([^!]+!)?([^!]+)$'''
1379 haystack = '''bar!bas'''
1380 matches = [[[0, 7], [0, 4], [4, 7]]]
1381 match-limit = 1
1382 anchored = true
1383
1384 [[test]]
1385 name = "basic195"
1386 regex = '''^([^!]+!)?([^!]+)$'''
1387 haystack = '''foo!bas'''
1388 matches = [[[0, 7], [0, 4], [4, 7]]]
1389 match-limit = 1
1390 anchored = true
1391
1392 [[test]]
1393 name = "basic196"
1394 regex = '''^.+!([^!]+!)([^!]+)$'''
1395 haystack = '''foo!bar!bas'''
1396 matches = [[[0, 11], [4, 8], [8, 11]]]
1397 match-limit = 1
1398 anchored = true
1399
1400 [[test]]
1401 name = "basic197"
1402 regex = '''((foo)|(bar))!bas'''
1403 haystack = '''bar!bas'''
1404 matches = [[[0, 7], [0, 3], [], [0, 3]]]
1405 match-limit = 1
1406 anchored = true
1407
1408 [[test]]
1409 name = "basic198"
1410 regex = '''((foo)|(bar))!bas'''
1411 haystack = '''foo!bar!bas'''
1412 matches = [[[4, 11], [4, 7], [], [4, 7]]]
1413 match-limit = 1
1414
1415 [[test]]
1416 name = "basic199"
1417 regex = '''((foo)|(bar))!bas'''
1418 haystack = '''foo!bas'''
1419 matches = [[[0, 7], [0, 3], [0, 3], []]]
1420 match-limit = 1
1421 anchored = true
1422
1423 [[test]]
1424 name = "basic200"
1425 regex = '''((foo)|bar)!bas'''
1426 haystack = '''bar!bas'''
1427 matches = [[[0, 7], [0, 3], []]]
1428 match-limit = 1
1429 anchored = true
1430
1431 [[test]]
1432 name = "basic201"
1433 regex = '''((foo)|bar)!bas'''
1434 haystack = '''foo!bar!bas'''
1435 matches = [[[4, 11], [4, 7], []]]
1436 match-limit = 1
1437
1438 [[test]]
1439 name = "basic202"
1440 regex = '''((foo)|bar)!bas'''
1441 haystack = '''foo!bas'''
1442 matches = [[[0, 7], [0, 3], [0, 3]]]
1443 match-limit = 1
1444 anchored = true
1445
1446 [[test]]
1447 name = "basic203"
1448 regex = '''(foo|(bar))!bas'''
1449 haystack = '''bar!bas'''
1450 matches = [[[0, 7], [0, 3], [0, 3]]]
1451 match-limit = 1
1452 anchored = true
1453
1454 [[test]]
1455 name = "basic204"
1456 regex = '''(foo|(bar))!bas'''
1457 haystack = '''foo!bar!bas'''
1458 matches = [[[4, 11], [4, 7], [4, 7]]]
1459 match-limit = 1
1460
1461 [[test]]
1462 name = "basic205"
1463 regex = '''(foo|(bar))!bas'''
1464 haystack = '''foo!bas'''
1465 matches = [[[0, 7], [0, 3], []]]
1466 match-limit = 1
1467 anchored = true
1468
1469 [[test]]
1470 name = "basic206"
1471 regex = '''(foo|bar)!bas'''
1472 haystack = '''bar!bas'''
1473 matches = [[[0, 7], [0, 3]]]
1474 match-limit = 1
1475 anchored = true
1476
1477 [[test]]
1478 name = "basic207"
1479 regex = '''(foo|bar)!bas'''
1480 haystack = '''foo!bar!bas'''
1481 matches = [[[4, 11], [4, 7]]]
1482 match-limit = 1
1483
1484 [[test]]
1485 name = "basic208"
1486 regex = '''(foo|bar)!bas'''
1487 haystack = '''foo!bas'''
1488 matches = [[[0, 7], [0, 3]]]
1489 match-limit = 1
1490 anchored = true
1491
1492 [[test]]
1493 name = "basic209"
1494 regex = '''^(([^!]+!)?([^!]+)|.+!([^!]+!)([^!]+))$'''
1495 haystack = '''foo!bar!bas'''
1496 matches = [[[0, 11], [0, 11], [], [], [4, 8], [8, 11]]]
1497 match-limit = 1
1498 anchored = true
1499
1500 [[test]]
1501 name = "basic210"
1502 regex = '''^([^!]+!)?([^!]+)$|^.+!([^!]+!)([^!]+)$'''
1503 haystack = '''bas'''
1504 matches = [[[0, 3], [], [0, 3], [], []]]
1505 match-limit = 1
1506 anchored = true
1507
1508 [[test]]
1509 name = "basic211"
1510 regex = '''^([^!]+!)?([^!]+)$|^.+!([^!]+!)([^!]+)$'''
1511 haystack = '''bar!bas'''
1512 matches = [[[0, 7], [0, 4], [4, 7], [], []]]
1513 match-limit = 1
1514 anchored = true
1515
1516 [[test]]
1517 name = "basic212"
1518 regex = '''^([^!]+!)?([^!]+)$|^.+!([^!]+!)([^!]+)$'''
1519 haystack = '''foo!bar!bas'''
1520 matches = [[[0, 11], [], [], [4, 8], [8, 11]]]
1521 match-limit = 1
1522 anchored = true
1523
1524 [[test]]
1525 name = "basic213"
1526 regex = '''^([^!]+!)?([^!]+)$|^.+!([^!]+!)([^!]+)$'''
1527 haystack = '''foo!bas'''
1528 matches = [[[0, 7], [0, 4], [4, 7], [], []]]
1529 match-limit = 1
1530 anchored = true
1531
1532 [[test]]
1533 name = "basic214"
1534 regex = '''^(([^!]+!)?([^!]+)|.+!([^!]+!)([^!]+))$'''
1535 haystack = '''bas'''
1536 matches = [[[0, 3], [0, 3], [], [0, 3], [], []]]
1537 match-limit = 1
1538 anchored = true
1539
1540 [[test]]
1541 name = "basic215"
1542 regex = '''^(([^!]+!)?([^!]+)|.+!([^!]+!)([^!]+))$'''
1543 haystack = '''bar!bas'''
1544 matches = [[[0, 7], [0, 7], [0, 4], [4, 7], [], []]]
1545 match-limit = 1
1546 anchored = true
1547
1548 [[test]]
1549 name = "basic216"
1550 regex = '''^(([^!]+!)?([^!]+)|.+!([^!]+!)([^!]+))$'''
1551 haystack = '''foo!bar!bas'''
1552 matches = [[[0, 11], [0, 11], [], [], [4, 8], [8, 11]]]
1553 match-limit = 1
1554 anchored = true
1555
1556 [[test]]
1557 name = "basic217"
1558 regex = '''^(([^!]+!)?([^!]+)|.+!([^!]+!)([^!]+))$'''
1559 haystack = '''foo!bas'''
1560 matches = [[[0, 7], [0, 7], [0, 4], [4, 7], [], []]]
1561 match-limit = 1
1562 anchored = true
1563
1564 [[test]]
1565 name = "basic218"
1566 regex = '''.*(/XXX).*'''
1567 haystack = '''/XXX'''
1568 matches = [[[0, 4], [0, 4]]]
1569 match-limit = 1
1570 anchored = true
1571
1572 [[test]]
1573 name = "basic219"
1574 regex = '''.*(\\XXX).*'''
1575 haystack = '''\XXX'''
1576 matches = [[[0, 4], [0, 4]]]
1577 match-limit = 1
1578 anchored = true
1579
1580 [[test]]
1581 name = "basic220"
1582 regex = '''\\XXX'''
1583 haystack = '''\XXX'''
1584 matches = [[[0, 4]]]
1585 match-limit = 1
1586 anchored = true
1587
1588 [[test]]
1589 name = "basic221"
1590 regex = '''.*(/000).*'''
1591 haystack = '''/000'''
1592 matches = [[[0, 4], [0, 4]]]
1593 match-limit = 1
1594 anchored = true
1595
1596 [[test]]
1597 name = "basic222"
1598 regex = '''.*(\\000).*'''
1599 haystack = '''\000'''
1600 matches = [[[0, 4], [0, 4]]]
1601 match-limit = 1
1602 anchored = true
1603
1604 [[test]]
1605 name = "basic223"
1606 regex = '''\\000'''
1607 haystack = '''\000'''
1608 matches = [[[0, 4]]]
1609 match-limit = 1
1610 anchored = true
1611