Regex FindAllString in Go
GoCompile a regex and pull every match out of a string.
package main
import (
"fmt"
"regexp"
)
func main() {
re := regexp.MustCompile(`\b[A-Z][a-z]+`)
matches := re.FindAllString("Alice and Bob met Eve.", -1)
fmt.Println(matches)
}