validID := regexp.MustCompile("[a-z]m+") fmt.Println(validID.MatchString("httml"))
Go 的正则表达式规则:https://code.google.com/p/re2/wiki/Syntax 中,x+ 表示 one or more x, prefer more ,“httml” 中,h 后并没有 m 啊,为什么返回true ?
2,348
社区成员
923
社区内容
加载中
试试用AI创作助手写篇文章吧