Debian Codegraph @

.cargo/vendor/regex/testdata/multiline.toml

raw
1 [[test]]
2 name = "basic1"
3 regex = '(?m)^[a-z]+$'
4 haystack = "abc\ndef\nxyz"
5 matches = [[0, 3], [4, 7], [8, 11]]
6
7 [[test]]
8 name = "basic1-crlf"
9 regex = '(?Rm)^[a-z]+$'
10 haystack = "abc\ndef\nxyz"
11 matches = [[0, 3], [4, 7], [8, 11]]
12
13 [[test]]
14 name = "basic1-crlf-cr"
15 regex = '(?Rm)^[a-z]+$'
16 haystack = "abc\rdef\rxyz"
17 matches = [[0, 3], [4, 7], [8, 11]]
18
19 [[test]]
20 name = "basic2"
21 regex = '(?m)^$'
22 haystack = "abc\ndef\nxyz"
23 matches = []
24
25 [[test]]
26 name = "basic2-crlf"
27 regex = '(?Rm)^$'
28 haystack = "abc\ndef\nxyz"
29 matches = []
30
31 [[test]]
32 name = "basic2-crlf-cr"
33 regex = '(?Rm)^$'
34 haystack = "abc\rdef\rxyz"
35 matches = []
36
37 [[test]]
38 name = "basic3"
39 regex = '(?m)^'
40 haystack = "abc\ndef\nxyz"
41 matches = [[0, 0], [4, 4], [8, 8]]
42
43 [[test]]
44 name = "basic3-crlf"
45 regex = '(?Rm)^'
46 haystack = "abc\ndef\nxyz"
47 matches = [[0, 0], [4, 4], [8, 8]]
48
49 [[test]]
50 name = "basic3-crlf-cr"
51 regex = '(?Rm)^'
52 haystack = "abc\rdef\rxyz"
53 matches = [[0, 0], [4, 4], [8, 8]]
54
55 [[test]]
56 name = "basic4"
57 regex = '(?m)$'
58 haystack = "abc\ndef\nxyz"
59 matches = [[3, 3], [7, 7], [11, 11]]
60
61 [[test]]
62 name = "basic4-crlf"
63 regex = '(?Rm)$'
64 haystack = "abc\ndef\nxyz"
65 matches = [[3, 3], [7, 7], [11, 11]]
66
67 [[test]]
68 name = "basic4-crlf-cr"
69 regex = '(?Rm)$'
70 haystack = "abc\rdef\rxyz"
71 matches = [[3, 3], [7, 7], [11, 11]]
72
73 [[test]]
74 name = "basic5"
75 regex = '(?m)^[a-z]'
76 haystack = "abc\ndef\nxyz"
77 matches = [[0, 1], [4, 5], [8, 9]]
78
79 [[test]]
80 name = "basic5-crlf"
81 regex = '(?Rm)^[a-z]'
82 haystack = "abc\ndef\nxyz"
83 matches = [[0, 1], [4, 5], [8, 9]]
84
85 [[test]]
86 name = "basic5-crlf-cr"
87 regex = '(?Rm)^[a-z]'
88 haystack = "abc\rdef\rxyz"
89 matches = [[0, 1], [4, 5], [8, 9]]
90
91 [[test]]
92 name = "basic6"
93 regex = '(?m)[a-z]^'
94 haystack = "abc\ndef\nxyz"
95 matches = []
96
97 [[test]]
98 name = "basic6-crlf"
99 regex = '(?Rm)[a-z]^'
100 haystack = "abc\ndef\nxyz"
101 matches = []
102
103 [[test]]
104 name = "basic6-crlf-cr"
105 regex = '(?Rm)[a-z]^'
106 haystack = "abc\rdef\rxyz"
107 matches = []
108
109 [[test]]
110 name = "basic7"
111 regex = '(?m)[a-z]$'
112 haystack = "abc\ndef\nxyz"
113 matches = [[2, 3], [6, 7], [10, 11]]
114
115 [[test]]
116 name = "basic7-crlf"
117 regex = '(?Rm)[a-z]$'
118 haystack = "abc\ndef\nxyz"
119 matches = [[2, 3], [6, 7], [10, 11]]
120
121 [[test]]
122 name = "basic7-crlf-cr"
123 regex = '(?Rm)[a-z]$'
124 haystack = "abc\rdef\rxyz"
125 matches = [[2, 3], [6, 7], [10, 11]]
126
127 [[test]]
128 name = "basic8"
129 regex = '(?m)$[a-z]'
130 haystack = "abc\ndef\nxyz"
131 matches = []
132
133 [[test]]
134 name = "basic8-crlf"
135 regex = '(?Rm)$[a-z]'
136 haystack = "abc\ndef\nxyz"
137 matches = []
138
139 [[test]]
140 name = "basic8-crlf-cr"
141 regex = '(?Rm)$[a-z]'
142 haystack = "abc\rdef\rxyz"
143 matches = []
144
145 [[test]]
146 name = "basic9"
147 regex = '(?m)^$'
148 haystack = ""
149 matches = [[0, 0]]
150
151 [[test]]
152 name = "basic9-crlf"
153 regex = '(?Rm)^$'
154 haystack = ""
155 matches = [[0, 0]]
156
157 [[test]]
158 name = "repeat1"
159 regex = '(?m)(?:^$)*'
160 haystack = "a\nb\nc"
161 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
162
163 [[test]]
164 name = "repeat1-crlf"
165 regex = '(?Rm)(?:^$)*'
166 haystack = "a\nb\nc"
167 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
168
169 [[test]]
170 name = "repeat1-crlf-cr"
171 regex = '(?Rm)(?:^$)*'
172 haystack = "a\rb\rc"
173 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
174
175 [[test]]
176 name = "repeat1-no-multi"
177 regex = '(?:^$)*'
178 haystack = "a\nb\nc"
179 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
180
181 [[test]]
182 name = "repeat1-no-multi-crlf"
183 regex = '(?R)(?:^$)*'
184 haystack = "a\nb\nc"
185 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
186
187 [[test]]
188 name = "repeat1-no-multi-crlf-cr"
189 regex = '(?R)(?:^$)*'
190 haystack = "a\rb\rc"
191 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]]
192
193 [[test]]
194 name = "repeat2"
195 regex = '(?m)(?:^|a)+'
196 haystack = "a\naaa\n"
197 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
198
199 [[test]]
200 name = "repeat2-crlf"
201 regex = '(?Rm)(?:^|a)+'
202 haystack = "a\naaa\n"
203 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
204
205 [[test]]
206 name = "repeat2-crlf-cr"
207 regex = '(?Rm)(?:^|a)+'
208 haystack = "a\raaa\r"
209 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
210
211 [[test]]
212 name = "repeat2-no-multi"
213 regex = '(?:^|a)+'
214 haystack = "a\naaa\n"
215 matches = [[0, 0], [2, 5]]
216
217 [[test]]
218 name = "repeat2-no-multi-crlf"
219 regex = '(?R)(?:^|a)+'
220 haystack = "a\naaa\n"
221 matches = [[0, 0], [2, 5]]
222
223 [[test]]
224 name = "repeat2-no-multi-crlf-cr"
225 regex = '(?R)(?:^|a)+'
226 haystack = "a\raaa\r"
227 matches = [[0, 0], [2, 5]]
228
229 [[test]]
230 name = "repeat3"
231 regex = '(?m)(?:^|a)*'
232 haystack = "a\naaa\n"
233 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
234
235 [[test]]
236 name = "repeat3-crlf"
237 regex = '(?Rm)(?:^|a)*'
238 haystack = "a\naaa\n"
239 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
240
241 [[test]]
242 name = "repeat3-crlf-cr"
243 regex = '(?Rm)(?:^|a)*'
244 haystack = "a\raaa\r"
245 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
246
247 [[test]]
248 name = "repeat3-no-multi"
249 regex = '(?:^|a)*'
250 haystack = "a\naaa\n"
251 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
252
253 [[test]]
254 name = "repeat3-no-multi-crlf"
255 regex = '(?R)(?:^|a)*'
256 haystack = "a\naaa\n"
257 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
258
259 [[test]]
260 name = "repeat3-no-multi-crlf-cr"
261 regex = '(?R)(?:^|a)*'
262 haystack = "a\raaa\r"
263 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
264
265 [[test]]
266 name = "repeat4"
267 regex = '(?m)(?:^|a+)'
268 haystack = "a\naaa\n"
269 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
270
271 [[test]]
272 name = "repeat4-crlf"
273 regex = '(?Rm)(?:^|a+)'
274 haystack = "a\naaa\n"
275 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
276
277 [[test]]
278 name = "repeat4-crlf-cr"
279 regex = '(?Rm)(?:^|a+)'
280 haystack = "a\raaa\r"
281 matches = [[0, 0], [2, 2], [3, 5], [6, 6]]
282
283 [[test]]
284 name = "repeat4-no-multi"
285 regex = '(?:^|a+)'
286 haystack = "a\naaa\n"
287 matches = [[0, 0], [2, 5]]
288
289 [[test]]
290 name = "repeat4-no-multi-crlf"
291 regex = '(?R)(?:^|a+)'
292 haystack = "a\naaa\n"
293 matches = [[0, 0], [2, 5]]
294
295 [[test]]
296 name = "repeat4-no-multi-crlf-cr"
297 regex = '(?R)(?:^|a+)'
298 haystack = "a\raaa\r"
299 matches = [[0, 0], [2, 5]]
300
301 [[test]]
302 name = "repeat5"
303 regex = '(?m)(?:^|a*)'
304 haystack = "a\naaa\n"
305 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
306
307 [[test]]
308 name = "repeat5-crlf"
309 regex = '(?Rm)(?:^|a*)'
310 haystack = "a\naaa\n"
311 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
312
313 [[test]]
314 name = "repeat5-crlf-cr"
315 regex = '(?Rm)(?:^|a*)'
316 haystack = "a\raaa\r"
317 matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]]
318
319 [[test]]
320 name = "repeat5-no-multi"
321 regex = '(?:^|a*)'
322 haystack = "a\naaa\n"
323 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
324
325 [[test]]
326 name = "repeat5-no-multi-crlf"
327 regex = '(?R)(?:^|a*)'
328 haystack = "a\naaa\n"
329 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
330
331 [[test]]
332 name = "repeat5-no-multi-crlf-cr"
333 regex = '(?R)(?:^|a*)'
334 haystack = "a\raaa\r"
335 matches = [[0, 0], [1, 1], [2, 5], [6, 6]]
336
337 [[test]]
338 name = "repeat6"
339 regex = '(?m)(?:^[a-z])+'
340 haystack = "abc\ndef\nxyz"
341 matches = [[0, 1], [4, 5], [8, 9]]
342
343 [[test]]
344 name = "repeat6-crlf"
345 regex = '(?Rm)(?:^[a-z])+'
346 haystack = "abc\ndef\nxyz"
347 matches = [[0, 1], [4, 5], [8, 9]]
348
349 [[test]]
350 name = "repeat6-crlf-cr"
351 regex = '(?Rm)(?:^[a-z])+'
352 haystack = "abc\rdef\rxyz"
353 matches = [[0, 1], [4, 5], [8, 9]]
354
355 [[test]]
356 name = "repeat6-no-multi"
357 regex = '(?:^[a-z])+'
358 haystack = "abc\ndef\nxyz"
359 matches = [[0, 1]]
360
361 [[test]]
362 name = "repeat6-no-multi-crlf"
363 regex = '(?R)(?:^[a-z])+'
364 haystack = "abc\ndef\nxyz"
365 matches = [[0, 1]]
366
367 [[test]]
368 name = "repeat6-no-multi-crlf-cr"
369 regex = '(?R)(?:^[a-z])+'
370 haystack = "abc\rdef\rxyz"
371 matches = [[0, 1]]
372
373 [[test]]
374 name = "repeat7"
375 regex = '(?m)(?:^[a-z]{3}\n?)+'
376 haystack = "abc\ndef\nxyz"
377 matches = [[0, 11]]
378
379 [[test]]
380 name = "repeat7-crlf"
381 regex = '(?Rm)(?:^[a-z]{3}\n?)+'
382 haystack = "abc\ndef\nxyz"
383 matches = [[0, 11]]
384
385 [[test]]
386 name = "repeat7-crlf-cr"
387 regex = '(?Rm)(?:^[a-z]{3}\r?)+'
388 haystack = "abc\rdef\rxyz"
389 matches = [[0, 11]]
390
391 [[test]]
392 name = "repeat7-no-multi"
393 regex = '(?:^[a-z]{3}\n?)+'
394 haystack = "abc\ndef\nxyz"
395 matches = [[0, 4]]
396
397 [[test]]
398 name = "repeat7-no-multi-crlf"
399 regex = '(?R)(?:^[a-z]{3}\n?)+'
400 haystack = "abc\ndef\nxyz"
401 matches = [[0, 4]]
402
403 [[test]]
404 name = "repeat7-no-multi-crlf-cr"
405 regex = '(?R)(?:^[a-z]{3}\r?)+'
406 haystack = "abc\rdef\rxyz"
407 matches = [[0, 4]]
408
409 [[test]]
410 name = "repeat8"
411 regex = '(?m)(?:^[a-z]{3}\n?)*'
412 haystack = "abc\ndef\nxyz"
413 matches = [[0, 11]]
414
415 [[test]]
416 name = "repeat8-crlf"
417 regex = '(?Rm)(?:^[a-z]{3}\n?)*'
418 haystack = "abc\ndef\nxyz"
419 matches = [[0, 11]]
420
421 [[test]]
422 name = "repeat8-crlf-cr"
423 regex = '(?Rm)(?:^[a-z]{3}\r?)*'
424 haystack = "abc\rdef\rxyz"
425 matches = [[0, 11]]
426
427 [[test]]
428 name = "repeat8-no-multi"
429 regex = '(?:^[a-z]{3}\n?)*'
430 haystack = "abc\ndef\nxyz"
431 matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]
432
433 [[test]]
434 name = "repeat8-no-multi-crlf"
435 regex = '(?R)(?:^[a-z]{3}\n?)*'
436 haystack = "abc\ndef\nxyz"
437 matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]
438
439 [[test]]
440 name = "repeat8-no-multi-crlf-cr"
441 regex = '(?R)(?:^[a-z]{3}\r?)*'
442 haystack = "abc\rdef\rxyz"
443 matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]]
444
445 [[test]]
446 name = "repeat9"
447 regex = '(?m)(?:\n?[a-z]{3}$)+'
448 haystack = "abc\ndef\nxyz"
449 matches = [[0, 11]]
450
451 [[test]]
452 name = "repeat9-crlf"
453 regex = '(?Rm)(?:\n?[a-z]{3}$)+'
454 haystack = "abc\ndef\nxyz"
455 matches = [[0, 11]]
456
457 [[test]]
458 name = "repeat9-crlf-cr"
459 regex = '(?Rm)(?:\r?[a-z]{3}$)+'
460 haystack = "abc\rdef\rxyz"
461 matches = [[0, 11]]
462
463 [[test]]
464 name = "repeat9-no-multi"
465 regex = '(?:\n?[a-z]{3}$)+'
466 haystack = "abc\ndef\nxyz"
467 matches = [[7, 11]]
468
469 [[test]]
470 name = "repeat9-no-multi-crlf"
471 regex = '(?R)(?:\n?[a-z]{3}$)+'
472 haystack = "abc\ndef\nxyz"
473 matches = [[7, 11]]
474
475 [[test]]
476 name = "repeat9-no-multi-crlf-cr"
477 regex = '(?R)(?:\r?[a-z]{3}$)+'
478 haystack = "abc\rdef\rxyz"
479 matches = [[7, 11]]
480
481 [[test]]
482 name = "repeat10"
483 regex = '(?m)(?:\n?[a-z]{3}$)*'
484 haystack = "abc\ndef\nxyz"
485 matches = [[0, 11]]
486
487 [[test]]
488 name = "repeat10-crlf"
489 regex = '(?Rm)(?:\n?[a-z]{3}$)*'
490 haystack = "abc\ndef\nxyz"
491 matches = [[0, 11]]
492
493 [[test]]
494 name = "repeat10-crlf-cr"
495 regex = '(?Rm)(?:\r?[a-z]{3}$)*'
496 haystack = "abc\rdef\rxyz"
497 matches = [[0, 11]]
498
499 [[test]]
500 name = "repeat10-no-multi"
501 regex = '(?:\n?[a-z]{3}$)*'
502 haystack = "abc\ndef\nxyz"
503 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]]
504
505 [[test]]
506 name = "repeat10-no-multi-crlf"
507 regex = '(?R)(?:\n?[a-z]{3}$)*'
508 haystack = "abc\ndef\nxyz"
509 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]]
510
511 [[test]]
512 name = "repeat10-no-multi-crlf-cr"
513 regex = '(?R)(?:\r?[a-z]{3}$)*'
514 haystack = "abc\rdef\rxyz"
515 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]]
516
517 [[test]]
518 name = "repeat11"
519 regex = '(?m)^*'
520 haystack = "\naa\n"
521 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
522
523 [[test]]
524 name = "repeat11-crlf"
525 regex = '(?Rm)^*'
526 haystack = "\naa\n"
527 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
528
529 [[test]]
530 name = "repeat11-crlf-cr"
531 regex = '(?Rm)^*'
532 haystack = "\raa\r"
533 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
534
535 [[test]]
536 name = "repeat11-no-multi"
537 regex = '^*'
538 haystack = "\naa\n"
539 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
540
541 [[test]]
542 name = "repeat11-no-multi-crlf"
543 regex = '(?R)^*'
544 haystack = "\naa\n"
545 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
546
547 [[test]]
548 name = "repeat11-no-multi-crlf-cr"
549 regex = '(?R)^*'
550 haystack = "\raa\r"
551 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
552
553 [[test]]
554 name = "repeat12"
555 regex = '(?m)^+'
556 haystack = "\naa\n"
557 matches = [[0, 0], [1, 1], [4, 4]]
558
559 [[test]]
560 name = "repeat12-crlf"
561 regex = '(?Rm)^+'
562 haystack = "\naa\n"
563 matches = [[0, 0], [1, 1], [4, 4]]
564
565 [[test]]
566 name = "repeat12-crlf-cr"
567 regex = '(?Rm)^+'
568 haystack = "\raa\r"
569 matches = [[0, 0], [1, 1], [4, 4]]
570
571 [[test]]
572 name = "repeat12-no-multi"
573 regex = '^+'
574 haystack = "\naa\n"
575 matches = [[0, 0]]
576
577 [[test]]
578 name = "repeat12-no-multi-crlf"
579 regex = '(?R)^+'
580 haystack = "\naa\n"
581 matches = [[0, 0]]
582
583 [[test]]
584 name = "repeat12-no-multi-crlf-cr"
585 regex = '(?R)^+'
586 haystack = "\raa\r"
587 matches = [[0, 0]]
588
589 [[test]]
590 name = "repeat13"
591 regex = '(?m)$*'
592 haystack = "\naa\n"
593 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
594
595 [[test]]
596 name = "repeat13-crlf"
597 regex = '(?Rm)$*'
598 haystack = "\naa\n"
599 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
600
601 [[test]]
602 name = "repeat13-crlf-cr"
603 regex = '(?Rm)$*'
604 haystack = "\raa\r"
605 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
606
607 [[test]]
608 name = "repeat13-no-multi"
609 regex = '$*'
610 haystack = "\naa\n"
611 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
612
613 [[test]]
614 name = "repeat13-no-multi-crlf"
615 regex = '(?R)$*'
616 haystack = "\naa\n"
617 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
618
619 [[test]]
620 name = "repeat13-no-multi-crlf-cr"
621 regex = '(?R)$*'
622 haystack = "\raa\r"
623 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]]
624
625 [[test]]
626 name = "repeat14"
627 regex = '(?m)$+'
628 haystack = "\naa\n"
629 matches = [[0, 0], [3, 3], [4, 4]]
630
631 [[test]]
632 name = "repeat14-crlf"
633 regex = '(?Rm)$+'
634 haystack = "\naa\n"
635 matches = [[0, 0], [3, 3], [4, 4]]
636
637 [[test]]
638 name = "repeat14-crlf-cr"
639 regex = '(?Rm)$+'
640 haystack = "\raa\r"
641 matches = [[0, 0], [3, 3], [4, 4]]
642
643 [[test]]
644 name = "repeat14-no-multi"
645 regex = '$+'
646 haystack = "\naa\n"
647 matches = [[4, 4]]
648
649 [[test]]
650 name = "repeat14-no-multi-crlf"
651 regex = '(?R)$+'
652 haystack = "\naa\n"
653 matches = [[4, 4]]
654
655 [[test]]
656 name = "repeat14-no-multi-crlf-cr"
657 regex = '(?R)$+'
658 haystack = "\raa\r"
659 matches = [[4, 4]]
660
661 [[test]]
662 name = "repeat15"
663 regex = '(?m)(?:$\n)+'
664 haystack = "\n\naaa\n\n"
665 matches = [[0, 2], [5, 7]]
666
667 [[test]]
668 name = "repeat15-crlf"
669 regex = '(?Rm)(?:$\n)+'
670 haystack = "\n\naaa\n\n"
671 matches = [[0, 2], [5, 7]]
672
673 [[test]]
674 name = "repeat15-crlf-cr"
675 regex = '(?Rm)(?:$\r)+'
676 haystack = "\r\raaa\r\r"
677 matches = [[0, 2], [5, 7]]
678
679 [[test]]
680 name = "repeat15-no-multi"
681 regex = '(?:$\n)+'
682 haystack = "\n\naaa\n\n"
683 matches = []
684
685 [[test]]
686 name = "repeat15-no-multi-crlf"
687 regex = '(?R)(?:$\n)+'
688 haystack = "\n\naaa\n\n"
689 matches = []
690
691 [[test]]
692 name = "repeat15-no-multi-crlf-cr"
693 regex = '(?R)(?:$\r)+'
694 haystack = "\r\raaa\r\r"
695 matches = []
696
697 [[test]]
698 name = "repeat16"
699 regex = '(?m)(?:$\n)*'
700 haystack = "\n\naaa\n\n"
701 matches = [[0, 2], [3, 3], [4, 4], [5, 7]]
702
703 [[test]]
704 name = "repeat16-crlf"
705 regex = '(?Rm)(?:$\n)*'
706 haystack = "\n\naaa\n\n"
707 matches = [[0, 2], [3, 3], [4, 4], [5, 7]]
708
709 [[test]]
710 name = "repeat16-crlf-cr"
711 regex = '(?Rm)(?:$\r)*'
712 haystack = "\r\raaa\r\r"
713 matches = [[0, 2], [3, 3], [4, 4], [5, 7]]
714
715 [[test]]
716 name = "repeat16-no-multi"
717 regex = '(?:$\n)*'
718 haystack = "\n\naaa\n\n"
719 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]
720
721 [[test]]
722 name = "repeat16-no-multi-crlf"
723 regex = '(?R)(?:$\n)*'
724 haystack = "\n\naaa\n\n"
725 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]
726
727 [[test]]
728 name = "repeat16-no-multi-crlf-cr"
729 regex = '(?R)(?:$\r)*'
730 haystack = "\r\raaa\r\r"
731 matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]]
732
733 [[test]]
734 name = "repeat17"
735 regex = '(?m)(?:$\n^)+'
736 haystack = "\n\naaa\n\n"
737 matches = [[0, 2], [5, 7]]
738
739 [[test]]
740 name = "repeat17-crlf"
741 regex = '(?Rm)(?:$\n^)+'
742 haystack = "\n\naaa\n\n"
743 matches = [[0, 2], [5, 7]]
744
745 [[test]]
746 name = "repeat17-crlf-cr"
747 regex = '(?Rm)(?:$\r^)+'
748 haystack = "\r\raaa\r\r"
749 matches = [[0, 2], [5, 7]]
750
751 [[test]]
752 name = "repeat17-no-multi"
753 regex = '(?:$\n^)+'
754 haystack = "\n\naaa\n\n"
755 matches = []
756
757 [[test]]
758 name = "repeat17-no-multi-crlf"
759 regex = '(?R)(?:$\n^)+'
760 haystack = "\n\naaa\n\n"
761 matches = []
762
763 [[test]]
764 name = "repeat17-no-multi-crlf-cr"
765 regex = '(?R)(?:$\r^)+'
766 haystack = "\r\raaa\r\r"
767 matches = []
768
769 [[test]]
770 name = "repeat18"
771 regex = '(?m)(?:^|$)+'
772 haystack = "\n\naaa\n\n"
773 matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]]
774
775 [[test]]
776 name = "repeat18-crlf"
777 regex = '(?Rm)(?:^|$)+'
778 haystack = "\n\naaa\n\n"
779 matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]]
780
781 [[test]]
782 name = "repeat18-crlf-cr"
783 regex = '(?Rm)(?:^|$)+'
784 haystack = "\r\raaa\r\r"
785 matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]]
786
787 [[test]]
788 name = "repeat18-no-multi"
789 regex = '(?:^|$)+'
790 haystack = "\n\naaa\n\n"
791 matches = [[0, 0], [7, 7]]
792
793 [[test]]
794 name = "repeat18-no-multi-crlf"
795 regex = '(?R)(?:^|$)+'
796 haystack = "\n\naaa\n\n"
797 matches = [[0, 0], [7, 7]]
798
799 [[test]]
800 name = "repeat18-no-multi-crlf-cr"
801 regex = '(?R)(?:^|$)+'
802 haystack = "\r\raaa\r\r"
803 matches = [[0, 0], [7, 7]]
804
805 [[test]]
806 name = "match-line-100"
807 regex = '(?m)^.+$'
808 haystack = "aa\naaaaaaaaaaaaaaaaaaa\n"
809 matches = [[0, 2], [3, 22]]
810
811 [[test]]
812 name = "match-line-100-crlf"
813 regex = '(?Rm)^.+$'
814 haystack = "aa\naaaaaaaaaaaaaaaaaaa\n"
815 matches = [[0, 2], [3, 22]]
816
817 [[test]]
818 name = "match-line-100-crlf-cr"
819 regex = '(?Rm)^.+$'
820 haystack = "aa\raaaaaaaaaaaaaaaaaaa\r"
821 matches = [[0, 2], [3, 22]]
822
823 [[test]]
824 name = "match-line-200"
825 regex = '(?m)^.+$'
826 haystack = "aa\naaaaaaaaaaaaaaaaaaa\n"
827 matches = [[0, 2], [3, 22]]
828 unicode = false
829 utf8 = false
830
831 [[test]]
832 name = "match-line-200-crlf"
833 regex = '(?Rm)^.+$'
834 haystack = "aa\naaaaaaaaaaaaaaaaaaa\n"
835 matches = [[0, 2], [3, 22]]
836 unicode = false
837 utf8 = false
838
839 [[test]]
840 name = "match-line-200-crlf-cr"
841 regex = '(?Rm)^.+$'
842 haystack = "aa\raaaaaaaaaaaaaaaaaaa\r"
843 matches = [[0, 2], [3, 22]]
844 unicode = false
845 utf8 = false