转义不起作用哈
```golang
package main
import (
"fmt"
"regexp"
)
var reg = "^c`.*\.$"
var emailRegexp = regexp.MustCompile(reg)
func CheckEmail(name string) bool {
return emailRegexp.MatchString(name)
}
func main() {
ok := CheckEmail("wcd`wcd")
fmt.Println(ok)
}
```
有疑问加站长微信联系(非本文作者)