Code Snippets

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)
}