diff --git a/cmd/main.go b/cmd/main.go index 62d962e..1aa8eda 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -126,7 +126,7 @@ func main() { matchIndices = append(matchIndices, tmp) } } else { - matchIndices = reg.FindAllMatches(regComp, test_str) + matchIndices = regComp.FindAllSubmatch(test_str) } if *printMatchesFlag {