1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
[[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]]
|