|
|
@ -119,12 +119,12 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
matchIndices := make([]Match, 0)
|
|
|
|
matchIndices := make([]Match, 0)
|
|
|
|
if matchNumFlagEnabled {
|
|
|
|
if matchNumFlagEnabled {
|
|
|
|
tmp, err := findNthMatch(regComp, test_str, *matchNum)
|
|
|
|
tmp, err := FindNthMatch(regComp, test_str, *matchNum)
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
|
matchIndices = append(matchIndices, tmp)
|
|
|
|
matchIndices = append(matchIndices, tmp)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
matchIndices = findAllMatches(regComp, test_str)
|
|
|
|
matchIndices = FindAllMatches(regComp, test_str)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if *printMatchesFlag {
|
|
|
|
if *printMatchesFlag {
|
|
|
|