| [[test]] |
| name = "basic1" |
| regex = '(?m)^[a-z]+$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 3], [4, 7], [8, 11]] |
| |
| [[test]] |
| name = "basic1-crlf" |
| regex = '(?Rm)^[a-z]+$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 3], [4, 7], [8, 11]] |
| |
| [[test]] |
| name = "basic1-crlf-cr" |
| regex = '(?Rm)^[a-z]+$' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 3], [4, 7], [8, 11]] |
| |
| [[test]] |
| name = "basic2" |
| regex = '(?m)^$' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic2-crlf" |
| regex = '(?Rm)^$' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic2-crlf-cr" |
| regex = '(?Rm)^$' |
| haystack = "abc\rdef\rxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic3" |
| regex = '(?m)^' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 0], [4, 4], [8, 8]] |
| |
| [[test]] |
| name = "basic3-crlf" |
| regex = '(?Rm)^' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 0], [4, 4], [8, 8]] |
| |
| [[test]] |
| name = "basic3-crlf-cr" |
| regex = '(?Rm)^' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 0], [4, 4], [8, 8]] |
| |
| [[test]] |
| name = "basic4" |
| regex = '(?m)$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[3, 3], [7, 7], [11, 11]] |
| |
| [[test]] |
| name = "basic4-crlf" |
| regex = '(?Rm)$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[3, 3], [7, 7], [11, 11]] |
| |
| [[test]] |
| name = "basic4-crlf-cr" |
| regex = '(?Rm)$' |
| haystack = "abc\rdef\rxyz" |
| matches = [[3, 3], [7, 7], [11, 11]] |
| |
| [[test]] |
| name = "basic5" |
| regex = '(?m)^[a-z]' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "basic5-crlf" |
| regex = '(?Rm)^[a-z]' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "basic5-crlf-cr" |
| regex = '(?Rm)^[a-z]' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "basic6" |
| regex = '(?m)[a-z]^' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic6-crlf" |
| regex = '(?Rm)[a-z]^' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic6-crlf-cr" |
| regex = '(?Rm)[a-z]^' |
| haystack = "abc\rdef\rxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic7" |
| regex = '(?m)[a-z]$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[2, 3], [6, 7], [10, 11]] |
| |
| [[test]] |
| name = "basic7-crlf" |
| regex = '(?Rm)[a-z]$' |
| haystack = "abc\ndef\nxyz" |
| matches = [[2, 3], [6, 7], [10, 11]] |
| |
| [[test]] |
| name = "basic7-crlf-cr" |
| regex = '(?Rm)[a-z]$' |
| haystack = "abc\rdef\rxyz" |
| matches = [[2, 3], [6, 7], [10, 11]] |
| |
| [[test]] |
| name = "basic8" |
| regex = '(?m)$[a-z]' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic8-crlf" |
| regex = '(?Rm)$[a-z]' |
| haystack = "abc\ndef\nxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic8-crlf-cr" |
| regex = '(?Rm)$[a-z]' |
| haystack = "abc\rdef\rxyz" |
| matches = [] |
| |
| [[test]] |
| name = "basic9" |
| regex = '(?m)^$' |
| haystack = "" |
| matches = [[0, 0]] |
| |
| [[test]] |
| name = "basic9-crlf" |
| regex = '(?Rm)^$' |
| haystack = "" |
| matches = [[0, 0]] |
| |
| [[test]] |
| name = "repeat1" |
| regex = '(?m)(?:^$)*' |
| haystack = "a\nb\nc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat1-crlf" |
| regex = '(?Rm)(?:^$)*' |
| haystack = "a\nb\nc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat1-crlf-cr" |
| regex = '(?Rm)(?:^$)*' |
| haystack = "a\rb\rc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat1-no-multi" |
| regex = '(?:^$)*' |
| haystack = "a\nb\nc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat1-no-multi-crlf" |
| regex = '(?R)(?:^$)*' |
| haystack = "a\nb\nc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat1-no-multi-crlf-cr" |
| regex = '(?R)(?:^$)*' |
| haystack = "a\rb\rc" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5]] |
| |
| [[test]] |
| name = "repeat2" |
| regex = '(?m)(?:^|a)+' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat2-crlf" |
| regex = '(?Rm)(?:^|a)+' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat2-crlf-cr" |
| regex = '(?Rm)(?:^|a)+' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat2-no-multi" |
| regex = '(?:^|a)+' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat2-no-multi-crlf" |
| regex = '(?R)(?:^|a)+' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat2-no-multi-crlf-cr" |
| regex = '(?R)(?:^|a)+' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat3" |
| regex = '(?m)(?:^|a)*' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat3-crlf" |
| regex = '(?Rm)(?:^|a)*' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat3-crlf-cr" |
| regex = '(?Rm)(?:^|a)*' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat3-no-multi" |
| regex = '(?:^|a)*' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat3-no-multi-crlf" |
| regex = '(?R)(?:^|a)*' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat3-no-multi-crlf-cr" |
| regex = '(?R)(?:^|a)*' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat4" |
| regex = '(?m)(?:^|a+)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat4-crlf" |
| regex = '(?Rm)(?:^|a+)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat4-crlf-cr" |
| regex = '(?Rm)(?:^|a+)' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat4-no-multi" |
| regex = '(?:^|a+)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat4-no-multi-crlf" |
| regex = '(?R)(?:^|a+)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat4-no-multi-crlf-cr" |
| regex = '(?R)(?:^|a+)' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [2, 5]] |
| |
| [[test]] |
| name = "repeat5" |
| regex = '(?m)(?:^|a*)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat5-crlf" |
| regex = '(?Rm)(?:^|a*)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat5-crlf-cr" |
| regex = '(?Rm)(?:^|a*)' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat5-no-multi" |
| regex = '(?:^|a*)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat5-no-multi-crlf" |
| regex = '(?R)(?:^|a*)' |
| haystack = "a\naaa\n" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat5-no-multi-crlf-cr" |
| regex = '(?R)(?:^|a*)' |
| haystack = "a\raaa\r" |
| matches = [[0, 0], [1, 1], [2, 5], [6, 6]] |
| |
| [[test]] |
| name = "repeat6" |
| regex = '(?m)(?:^[a-z])+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "repeat6-crlf" |
| regex = '(?Rm)(?:^[a-z])+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "repeat6-crlf-cr" |
| regex = '(?Rm)(?:^[a-z])+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 1], [4, 5], [8, 9]] |
| |
| [[test]] |
| name = "repeat6-no-multi" |
| regex = '(?:^[a-z])+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1]] |
| |
| [[test]] |
| name = "repeat6-no-multi-crlf" |
| regex = '(?R)(?:^[a-z])+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 1]] |
| |
| [[test]] |
| name = "repeat6-no-multi-crlf-cr" |
| regex = '(?R)(?:^[a-z])+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 1]] |
| |
| [[test]] |
| name = "repeat7" |
| regex = '(?m)(?:^[a-z]{3}\n?)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat7-crlf" |
| regex = '(?Rm)(?:^[a-z]{3}\n?)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat7-crlf-cr" |
| regex = '(?Rm)(?:^[a-z]{3}\r?)+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat7-no-multi" |
| regex = '(?:^[a-z]{3}\n?)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 4]] |
| |
| [[test]] |
| name = "repeat7-no-multi-crlf" |
| regex = '(?R)(?:^[a-z]{3}\n?)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 4]] |
| |
| [[test]] |
| name = "repeat7-no-multi-crlf-cr" |
| regex = '(?R)(?:^[a-z]{3}\r?)+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 4]] |
| |
| [[test]] |
| name = "repeat8" |
| regex = '(?m)(?:^[a-z]{3}\n?)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat8-crlf" |
| regex = '(?Rm)(?:^[a-z]{3}\n?)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat8-crlf-cr" |
| regex = '(?Rm)(?:^[a-z]{3}\r?)*' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat8-no-multi" |
| regex = '(?:^[a-z]{3}\n?)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]] |
| |
| [[test]] |
| name = "repeat8-no-multi-crlf" |
| regex = '(?R)(?:^[a-z]{3}\n?)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]] |
| |
| [[test]] |
| name = "repeat8-no-multi-crlf-cr" |
| regex = '(?R)(?:^[a-z]{3}\r?)*' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10, 10], [11, 11]] |
| |
| [[test]] |
| name = "repeat9" |
| regex = '(?m)(?:\n?[a-z]{3}$)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat9-crlf" |
| regex = '(?Rm)(?:\n?[a-z]{3}$)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat9-crlf-cr" |
| regex = '(?Rm)(?:\r?[a-z]{3}$)+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat9-no-multi" |
| regex = '(?:\n?[a-z]{3}$)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[7, 11]] |
| |
| [[test]] |
| name = "repeat9-no-multi-crlf" |
| regex = '(?R)(?:\n?[a-z]{3}$)+' |
| haystack = "abc\ndef\nxyz" |
| matches = [[7, 11]] |
| |
| [[test]] |
| name = "repeat9-no-multi-crlf-cr" |
| regex = '(?R)(?:\r?[a-z]{3}$)+' |
| haystack = "abc\rdef\rxyz" |
| matches = [[7, 11]] |
| |
| [[test]] |
| name = "repeat10" |
| regex = '(?m)(?:\n?[a-z]{3}$)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat10-crlf" |
| regex = '(?Rm)(?:\n?[a-z]{3}$)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat10-crlf-cr" |
| regex = '(?Rm)(?:\r?[a-z]{3}$)*' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 11]] |
| |
| [[test]] |
| name = "repeat10-no-multi" |
| regex = '(?:\n?[a-z]{3}$)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]] |
| |
| [[test]] |
| name = "repeat10-no-multi-crlf" |
| regex = '(?R)(?:\n?[a-z]{3}$)*' |
| haystack = "abc\ndef\nxyz" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]] |
| |
| [[test]] |
| name = "repeat10-no-multi-crlf-cr" |
| regex = '(?R)(?:\r?[a-z]{3}$)*' |
| haystack = "abc\rdef\rxyz" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 11]] |
| |
| [[test]] |
| name = "repeat11" |
| regex = '(?m)^*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat11-crlf" |
| regex = '(?Rm)^*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat11-crlf-cr" |
| regex = '(?Rm)^*' |
| haystack = "\raa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat11-no-multi" |
| regex = '^*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat11-no-multi-crlf" |
| regex = '(?R)^*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat11-no-multi-crlf-cr" |
| regex = '(?R)^*' |
| haystack = "\raa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat12" |
| regex = '(?m)^+' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [4, 4]] |
| |
| [[test]] |
| name = "repeat12-crlf" |
| regex = '(?Rm)^+' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [4, 4]] |
| |
| [[test]] |
| name = "repeat12-crlf-cr" |
| regex = '(?Rm)^+' |
| haystack = "\raa\r" |
| matches = [[0, 0], [1, 1], [4, 4]] |
| |
| [[test]] |
| name = "repeat12-no-multi" |
| regex = '^+' |
| haystack = "\naa\n" |
| matches = [[0, 0]] |
| |
| [[test]] |
| name = "repeat12-no-multi-crlf" |
| regex = '(?R)^+' |
| haystack = "\naa\n" |
| matches = [[0, 0]] |
| |
| [[test]] |
| name = "repeat12-no-multi-crlf-cr" |
| regex = '(?R)^+' |
| haystack = "\raa\r" |
| matches = [[0, 0]] |
| |
| [[test]] |
| name = "repeat13" |
| regex = '(?m)$*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat13-crlf" |
| regex = '(?Rm)$*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat13-crlf-cr" |
| regex = '(?Rm)$*' |
| haystack = "\raa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat13-no-multi" |
| regex = '$*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat13-no-multi-crlf" |
| regex = '(?R)$*' |
| haystack = "\naa\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat13-no-multi-crlf-cr" |
| regex = '(?R)$*' |
| haystack = "\raa\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat14" |
| regex = '(?m)$+' |
| haystack = "\naa\n" |
| matches = [[0, 0], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat14-crlf" |
| regex = '(?Rm)$+' |
| haystack = "\naa\n" |
| matches = [[0, 0], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat14-crlf-cr" |
| regex = '(?Rm)$+' |
| haystack = "\raa\r" |
| matches = [[0, 0], [3, 3], [4, 4]] |
| |
| [[test]] |
| name = "repeat14-no-multi" |
| regex = '$+' |
| haystack = "\naa\n" |
| matches = [[4, 4]] |
| |
| [[test]] |
| name = "repeat14-no-multi-crlf" |
| regex = '(?R)$+' |
| haystack = "\naa\n" |
| matches = [[4, 4]] |
| |
| [[test]] |
| name = "repeat14-no-multi-crlf-cr" |
| regex = '(?R)$+' |
| haystack = "\raa\r" |
| matches = [[4, 4]] |
| |
| [[test]] |
| name = "repeat15" |
| regex = '(?m)(?:$\n)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat15-crlf" |
| regex = '(?Rm)(?:$\n)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat15-crlf-cr" |
| regex = '(?Rm)(?:$\r)+' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat15-no-multi" |
| regex = '(?:$\n)+' |
| haystack = "\n\naaa\n\n" |
| matches = [] |
| |
| [[test]] |
| name = "repeat15-no-multi-crlf" |
| regex = '(?R)(?:$\n)+' |
| haystack = "\n\naaa\n\n" |
| matches = [] |
| |
| [[test]] |
| name = "repeat15-no-multi-crlf-cr" |
| regex = '(?R)(?:$\r)+' |
| haystack = "\r\raaa\r\r" |
| matches = [] |
| |
| [[test]] |
| name = "repeat16" |
| regex = '(?m)(?:$\n)*' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [3, 3], [4, 4], [5, 7]] |
| |
| [[test]] |
| name = "repeat16-crlf" |
| regex = '(?Rm)(?:$\n)*' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [3, 3], [4, 4], [5, 7]] |
| |
| [[test]] |
| name = "repeat16-crlf-cr" |
| regex = '(?Rm)(?:$\r)*' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 2], [3, 3], [4, 4], [5, 7]] |
| |
| [[test]] |
| name = "repeat16-no-multi" |
| regex = '(?:$\n)*' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat16-no-multi-crlf" |
| regex = '(?R)(?:$\n)*' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat16-no-multi-crlf-cr" |
| regex = '(?R)(?:$\r)*' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat17" |
| regex = '(?m)(?:$\n^)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat17-crlf" |
| regex = '(?Rm)(?:$\n^)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat17-crlf-cr" |
| regex = '(?Rm)(?:$\r^)+' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 2], [5, 7]] |
| |
| [[test]] |
| name = "repeat17-no-multi" |
| regex = '(?:$\n^)+' |
| haystack = "\n\naaa\n\n" |
| matches = [] |
| |
| [[test]] |
| name = "repeat17-no-multi-crlf" |
| regex = '(?R)(?:$\n^)+' |
| haystack = "\n\naaa\n\n" |
| matches = [] |
| |
| [[test]] |
| name = "repeat17-no-multi-crlf-cr" |
| regex = '(?R)(?:$\r^)+' |
| haystack = "\r\raaa\r\r" |
| matches = [] |
| |
| [[test]] |
| name = "repeat18" |
| regex = '(?m)(?:^|$)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat18-crlf" |
| regex = '(?Rm)(?:^|$)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat18-crlf-cr" |
| regex = '(?Rm)(?:^|$)+' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 0], [1, 1], [2, 2], [5, 5], [6, 6], [7, 7]] |
| |
| [[test]] |
| name = "repeat18-no-multi" |
| regex = '(?:^|$)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [7, 7]] |
| |
| [[test]] |
| name = "repeat18-no-multi-crlf" |
| regex = '(?R)(?:^|$)+' |
| haystack = "\n\naaa\n\n" |
| matches = [[0, 0], [7, 7]] |
| |
| [[test]] |
| name = "repeat18-no-multi-crlf-cr" |
| regex = '(?R)(?:^|$)+' |
| haystack = "\r\raaa\r\r" |
| matches = [[0, 0], [7, 7]] |
| |
| [[test]] |
| name = "match-line-100" |
| regex = '(?m)^.+$' |
| haystack = "aa\naaaaaaaaaaaaaaaaaaa\n" |
| matches = [[0, 2], [3, 22]] |
| |
| [[test]] |
| name = "match-line-100-crlf" |
| regex = '(?Rm)^.+$' |
| haystack = "aa\naaaaaaaaaaaaaaaaaaa\n" |
| matches = [[0, 2], [3, 22]] |
| |
| [[test]] |
| name = "match-line-100-crlf-cr" |
| regex = '(?Rm)^.+$' |
| haystack = "aa\raaaaaaaaaaaaaaaaaaa\r" |
| matches = [[0, 2], [3, 22]] |
| |
| [[test]] |
| name = "match-line-200" |
| regex = '(?m)^.+$' |
| haystack = "aa\naaaaaaaaaaaaaaaaaaa\n" |
| matches = [[0, 2], [3, 22]] |
| unicode = false |
| utf8 = false |
| |
| [[test]] |
| name = "match-line-200-crlf" |
| regex = '(?Rm)^.+$' |
| haystack = "aa\naaaaaaaaaaaaaaaaaaa\n" |
| matches = [[0, 2], [3, 22]] |
| unicode = false |
| utf8 = false |
| |
| [[test]] |
| name = "match-line-200-crlf-cr" |
| regex = '(?Rm)^.+$' |
| haystack = "aa\raaaaaaaaaaaaaaaaaaa\r" |
| matches = [[0, 2], [3, 22]] |
| unicode = false |
| utf8 = false |