diff --git a/re_test.go b/re_test.go index 14f3892..90c1f0e 100644 --- a/re_test.go +++ b/re_test.go @@ -152,6 +152,8 @@ var reTests = []struct { {"^((3[7-9])|([4-9][0-9])|([1-9][0-9][0-9])|(1000))$", "400", []Group{{0, 3}}}, {"^((3[7-9])|([4-9][0-9])|([1-9][0-9][0-9])|(1000))$", "4000", []Group{}}, {"a{1,3}", "aaaaa", []Group{{0, 3}, {3, 5}}}, + {`\\[ab\\]`, "a", []Group{}}, + {`\\[ab\\]`, `\a`, []Group{{0, 2}}}, // Lookaround tests {"(?<=bo)y", "boy", []Group{{2, 3}}},