摘要: b := []byte("abc1def1") pat := `abc1|abc1def1` reg1 := regexp.MustCompile(pat) // 第一匹配 reg2 := regexp.MustCompilePOSIX(pat) // 最长匹配 fmt.Printf("%s\n", 阅读全文
posted @ 2020-04-10 11:08 柠檬abcd 阅读(124) 评论(0) 推荐(0) 编辑