|
|
@ -71,7 +71,7 @@ var reTests = []struct {
|
|
|
|
{`\w`, ";';';';';'qwe12", []matchIndex{{10, 11}, {11, 12}, {12, 13}, {13, 14}, {14, 15}}},
|
|
|
|
{`\w`, ";';';';';'qwe12", []matchIndex{{10, 11}, {11, 12}, {12, 13}, {13, 14}, {14, 15}}},
|
|
|
|
{`\s`, "a b c d", []matchIndex{{1, 2}, {3, 4}, {5, 6}, {6, 7}}},
|
|
|
|
{`\s`, "a b c d", []matchIndex{{1, 2}, {3, 4}, {5, 6}, {6, 7}}},
|
|
|
|
{`\<`, "<HTML><body>", []matchIndex{{0, 1}, {6, 7}}},
|
|
|
|
{`\<`, "<HTML><body>", []matchIndex{{0, 1}, {6, 7}}},
|
|
|
|
{`\(.+\)`, "Not (paranthesized), (so) is (this) not", []matchIndex{{4, 18}, {21, 24}, {29, 34}}},
|
|
|
|
{`\(.+\)`, "Not (paranthesized), (so) is (this) not", []matchIndex{{4, 35}}},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestFindAllMatches(t *testing.T) {
|
|
|
|
func TestFindAllMatches(t *testing.T) {
|
|
|
|