blob: 2b631ef23414e6d85857f44c04d1d4708b823ed5 [file] [log] [blame]
[[tests]]
name = "1"
regex = "(?i)abc"
input = "ABC"
matches = [[0, 3]]
[[tests]]
name = "2"
regex = "(?i)a(?-i)bc"
input = "Abc"
matches = [[0, 3]]
[[tests]]
name = "3"
regex = "(?i)a(?-i)bc"
input = "ABC"
matches = []
[[tests]]
name = "4"
regex = "(?is)a."
input = "A\n"
matches = [[0, 2]]
[[tests]]
name = "5"
regex = "(?is)a.(?-is)a."
input = "A\nab"
matches = [[0, 4]]
[[tests]]
name = "6"
regex = "(?is)a.(?-is)a."
input = "A\na\n"
matches = []
[[tests]]
name = "7"
regex = "(?is)a.(?-is:a.)?"
input = "A\na\n"
matches = [[0, 2]]
match_limit = 1
[[tests]]
name = "8"
regex = "(?U)a+"
input = "aa"
matches = [[0, 1]]
match_limit = 1
[[tests]]
name = "9"
regex = "(?U)a+?"
input = "aa"
matches = [[0, 2]]
[[tests]]
name = "10"
regex = "(?U)(?-U)a+"
input = "aa"
matches = [[0, 2]]
[[tests]]
name = "11"
regex = '(?m)(?:^\d+$\n?)+'
input = "123\n456\n789"
matches = [[0, 11]]