regexp: FindAllStringIndex doesn't return overlapping matches #7643
What does 'go version' print? go version go1.2 darwin/amd64 What steps reproduce the problem? http://play.golang.org/p/bcm1BeQ9r2 re := regexp.MustCompile("aaa") fmt.Println(re.FindAllStringIndex("aaaaa", -1)) What happened? program printed [[0 3]] What should have happened instead? expected output: [[0 3], [1 4], [2 5]] Please provide any additional information below. Even if this behavior is expected (which is somewhat counter-intuitive), it should be documented at http://golang.org/pkg/regexp/#Regexp.FindAllStringIndex
The text was updated successfully, but these errors were encountered:
This issue was closed.