Go by Example: Regular Expressions ; This tests whether a pattern matches a string. match, _ := regexp.MatchString("p([a-z]+)ch", "peach") fmt.Println(match).
確定! 回上一頁