regExp
找出字串
myRegex, _ := regexp.Compile("c([a-z]+)ll")
found := myRegex.FindAllString("Can golang be called godlang?", -1)
fmt.Printf("found =%v\n", found)
Last updated
Was this helpful?
找出字串
myRegex, _ := regexp.Compile("c([a-z]+)ll")
found := myRegex.FindAllString("Can golang be called godlang?", -1)
fmt.Printf("found =%v\n", found)
Last updated
Was this helpful?